-
-
Notifications
You must be signed in to change notification settings - Fork 369
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
HLS fails for unpublished dependency version #3657
Comments
Hi, thank you for your bug report! Can you include the logs of the invocation I presume, |
The logs of the
I confirm that If you want, you can reproduce the issue with the repository I linked in the issue (https://github.com/marcosh/wrong-dependency-version-test) |
The logs you linked do not demonstrate an error. Locally, I can reproduce, but Linking this issue to commercialhaskell/stack#6154, to make this kind of issue seen in the new mega ticket. |
@fendor as I mentioned in the issue, the error appears only when I use HLS through vscode. I guess |
I got it to compile with the nix expression After that, it just worked. Proof: Stack version: > stack --version
Version 2.9.3, Git revision 6cf638947a863f49857f9cfbf72a38a48b183e7e x86_64 hpack-0.35.1 The only other thing I can imagine are poisoned caches. Make sure to delete the cache in |
@fendor probably it was really a cache issue. I cleared Thanks a lot for your help |
My project depends on a fork of a library which has a version number which is not published on Hackage. While this is not a problem for Stack, it appears to be a problem for HLS when used inside VScode
Your environment
Which OS do you use?
Manjaro Linux
Which version of GHC do you use and how did you install it?
GHC 9.2.7 installed with ghcup
How is your project built (alternative: link to the project)?
https://github.com/marcosh/wrong-dependency-version-test
Which LSP client (editor/plugin) do you use?
VSCode
Which version of HLS do you use and how did you install it?
2.0.0 from ghcup
Have you configured HLS in any way (especially: a
hie.yaml
file)?I have the following
hie.yaml
What's wrong?
Building the project with
stack build
works fine.Inspecting the project with
haskell-language-server-wrapper
works fine.Opening the
src/Foo.hs
file with Visual Studio Code produces the following error:Debug information
The
Output
section of VSCode produces the following outputThe text was updated successfully, but these errors were encountered: