-
Notifications
You must be signed in to change notification settings - Fork 842
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
stack run works, everything else does not #6371
Comments
I think your problem is indeed related to sub-libraries. However, I think if you switch to the On Windows 11, I cloned your repository, changed into its root directory and commanded With Stack 2.13.1, it fails with:
However, with the
|
Yes, with the latest git revision |
@Fabus1184, the short answer to your question is Yes. HLS support of Stack is a two-way street. The basic problem is described here #6154. Stack supports internal libraries and (a recent development) dependencies on public sub-libraries, but HLS does not fully support Stack supporting them. EDIT: One thing you might try is: (a) expanding your 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" with partial success; HLS works with the modules other than those that import modules from the internal library of the same package. |
I am closing this, as Stack 2.15.1, with public sublibrary support, has now been released. |
In my project
stack run
works fine, butstack repl
does not, and neither does the VS Code extension, I'm guessing it's the same error, probably something about the internal-libraries, but I can't figure it out.Output of
stack repl
:Details
Output of
haskell-language-server
:Details
link to repo: https://github.com/Fabus1184/advent-of-code
Stack version
Method of installation
The text was updated successfully, but these errors were encountered: