-
Notifications
You must be signed in to change notification settings - Fork 63
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
Could not find module #302
Comments
Hi! Is Lib2 listed as a module target? (Not sure about hie-bios but HLS definitely does not just find Modules in the include directories.) What does the output of |
I'm not sure what you mean by "module target".
|
Just checking, your build process, e.g. I checked with just base flags, e.g. > ghc -package-id base-4.14.1.0 -package-id base-4.14.1.0 -optc-fno-stack-protector -ibackend/package-b/ -ibackend/package-a/ backend/package-b/src/Lib2.hs backend/package-a/src/Main.hs -Wwarn which worked fine. Going to try reproduce later with bazel. |
|
Replacing the
with
Is |
hie-bios is using |
Running
|
I did not forget this issue, I can reproduce it locally, however, I currently don't know what causes the issue :( |
Just mentioning @aherrmann in case he could shed some light on this. |
I'm currently trying to get haskell-language-server to work with a bazel built repo.
Failing project here: https://github.com/aveltras/haskell-bazel-nix/tree/4228d1ecf1ad362d04f11ee058d24f25aba61552
The debug outputs are at the bottom of the readme.
I have two bazel targets backend/package-a (executable) and backend/package-b (library) which I'm trying to setup haskell-language-server with. Running
hie-bios check
on the executable fails which a Could not find module ‘Lib2 even if the directory containing Lib2 is included with -ibackend/package-b/ in the .hie-bios script.The problem seems to be the same as #275 but I could not find a fix by reading the comments.
The text was updated successfully, but these errors were encountered: