-
-
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
VSCode: Haskell language server fails when internal-libraries is used in package.yaml #2953
Comments
Stack's support for internal libraries is lacking: commercialhaskell/stack#4564 In other words, |
@fendor, on "stack repl doesn't work for internal libraries" things may have moved on. For example, with the However, I do have a problem. I am using cradle:
stack:
- path: "./src"
component: "pantry:lib"
- path: "./int"
component: "pantry:lib"
- path: "./app"
component: "pantry:exe:test-pretty-exceptions"
- path: "./test"
component: "pantry:test:spec" All the modules (including those modules of the internal library) 'work' with HLS except those modules that import modules from the internal library. For those exceptions, the HLS error is:
|
I built stack from latest master, but
|
@fendor, thanks for digging into this. I was trying |
As a small addition, since we don't have component based builds yet, it's likely to overbuild/overwork frequently to "apply whatever you asked me to do to all the libraries (main or sub)" |
Does that mean we can now close this issue? |
Yes, but the stack version supporting this is not released yet (although it should be released soon), for anyone interested in this issue you can track the relevant stack release at commercialhaskell/stack#6397 |
I have a haskell project that I created using stack. The VSCode haskell extension works fine until I add "internal-libraries" component in stack's package.yaml file.
Below is error that I see in output section of VSCode:
Below is the content of package.yaml that cause extension to fail:
The text was updated successfully, but these errors were encountered: