-
-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module not found with custom hie.yaml and bazel #453
Comments
This seems unlikely to be correct. It should almost definitely not be a |
thanks for always taking the time to answer my issues. Not sure what "default" means there (implicit ?) |
Late answer (but better late than never I assume): Easiest way to check is to use
Default means basically: use straight "ghc" with no further options. With current changes to ghcide, this basically means, don't do anything, as we don't discover targets implicitly. |
@teto do you continue having this issue or did you find any workaround? From the comments i guess it should work with the correct explicit |
I've managed to squash some of the issues: explnation at haskell/hie-bios#275. Some other errors elude me but I think I can create more specific issues |
Subject of the issue
When opening files with atom/vscode, I have
Module not found
errors. I use a multicradle with a per-subfolder cradle similar to this one: haskell/hie-bios#250 (comment) , i.e., I have a list of flags in a file on a per-cradle basis. aka (.tmp/subfolder2.flags for the cradle matching path "./subproject2")If I open file/module A and vscode+hls says file/module B missing. If I run
hie-bios check A
, it returns 0 with no output (which I assume mean my flags are good and thus contradicts vscode output). the path to B appears inhie-bios flags A
.Now if I open B, the error about the missing B disappears :s
Your environment
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
>= 0.4.0.0
hie.yaml
: akin to silly question about none cradle hie-bios#250 (comment)Steps to reproduce
can't share the code sry :'(
Expected behaviour
No error about missing module
Actual behaviour
Error about missing module
Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:So I can't paste all the logs but here is an excerpt. Because I use bazel to build we don't have .cabal files and also my hie.yaml ignores all the files in bazel-out/ (where haskell packages can be stored) which points at my /home/teto/.cache/bazel/_bazel_teto/
Debug output:
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs:
The text was updated successfully, but these errors were encountered: