Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

"Didn't get typechecked module" message #416

Open

Description

@nponeccop

From what I understand the cache of typechecked modules is supposed to be "monotonic": once completion works for a module, it never stops working.

But apparently it's not the case. I load a haskell file in neovim and completion works. But after some time it stops working, and when I try to complete something there is the following message in hie.log:

 setTypecheckedModule: Didn't get typechecked module for: "/home/foo/bar/Main.hs"

The message is produced by hie-ghc-mod:

setTypecheckedModule :: Uri -> IdeM (IdeResponse (Diagnostics, AdditionalErrs))
setTypecheckedModule uri =
pluginGetFile "setTypecheckedModule: " uri $ \fp -> do
rfm <- GM.mkRevRedirMapFunc
((diags', errs), mtm) <- GM.getTypecheckedModuleGhc' (myLogger rfm) fp
let diags = Map.insertWith Set.union uri Set.empty diags'
case mtm of
Nothing -> do
debugm $ "setTypecheckedModule: Didn't get typechecked module for: " ++ show fp
return $ IdeResponseOk (diags,errs)

Activity

  1. meck commented on Dec 23, 2017

    @meck
    Contributor

    I've been looking at this as well. I have the same messages, but I think its related to Language Client, it seems to correspond to the errors there:
    Some arguments are missing, requesting from vim. Keys: ["buftype", "filename", "line"]. Exps: ["&buftype", "s:Expand(\'%:p\')", "line(\'.\') - 1"]

    I am thinking the rust wrapper maybe failing to expand those properly and confusing ghc-mod, but I've not had time to look at it further. Perhaps @autozimu has a insight? The completion was working before the new rust based version

  2. autozimu commented on Dec 23, 2017

    @autozimu

    No, that’s not an error and that message is totally fine. The message basically says those information are not included in the request, languageclient needs to ask vim to fulfill those info though RPC call.

  3. nponeccop commented on Dec 23, 2017

    @nponeccop
    ContributorAuthor

    @autozimu You definitely need to have it at INFO log level so people don't get misleaded

  4. added this to the 2019-01 milestone on Dec 24, 2018
  5. modified the milestones: 2019-01, 2019-02 on Feb 2, 2019
  6. modified the milestones: 2019-02, 2019-03 on Mar 2, 2019
  7. modified the milestones: 2019-03, 2019-04 on Apr 6, 2019
  8. modified the milestones: 2019-04, 2019-05 on May 4, 2019
  9. modified the milestones: 2019-05, 2019-06 on Jun 1, 2019
  10. modified the milestones: 2019-06, Some time on Jul 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions