-
-
Notifications
You must be signed in to change notification settings - Fork 388
No prefixes matched #3734
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
Comments
Have you tried an explicit cradle:
cabal: that should work in all cabal cases. |
Thanks, that seems to fix the problem as well. |
Closing in favour of #3695 |
@fendor I don't think that issue subsumes this. In this case the module location should be known to HLS, because it is listed in the cabal file: executable gpc-experiment2
import: common
main-is: Experiment2.hs
hs-source-dirs: experiments The problem seems to be that implicit-hie picks up the wrong location for |
Upstream issue: Avi-D-coder/implicit-hie#1 We aim to migrate away from implicit-hie, or at least generate smarter cradles in the future. That issue at least touches this topic. I will create a meta issue for implicit-hie. |
Your environment
NixOS
9.4.5 from nixpkgs
with cabal, see https://github.com/noughtmare/gigaparsec
VS Codium+vscode-haskell
haskell-language-server version: 1.10.0.0 (GHC: 9.4.5) (PATH: /nix/store/g3mjflh04dizbfgzq0rp6k61sjq6ggp4-haskell-language-server-1.10.0.0/bin/haskell-language-server-wrapper)
From nixpkgs
No
Steps to reproduce
optionally:
nix-shell -p haskell.compiler.ghc945 haskell.packages.ghc945.haskell-language-server
Unfortunately, I wasn't able to reproduce this on an even smaller project.
Expected behaviour
No prefix matching errors.
Actual behaviour
Especially that last line seems wrong.
Debug information
Notes
I found out that it works fine if I swap the order of the
main-is
andhs-source-dirs
fields of thegpc-experiment2
component.The text was updated successfully, but these errors were encountered: