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
support for stack + hpack 0.35 #3006
Comments
Hi, thank you for your bug report! Please share the whole logs! |
Full logs for running
|
Ok, we are still missing some information, please rerun with debug output enabled: |
Running with output enabled gives:
|
From the logs we can see:
which is rather incorrect, especially the first two entries. |
Thanks for looking into this @fendor I'm not entirely sure what you mean by |
Can confirm,
I don't know why stack is so much chattier with new ghc versions? EDIT: The question now being, is that a stack bug or hie-bios bug? Seems like something you don't want to have in stack either. |
Your environment
Which OS do you use:
MacOS
Which LSP client (editor/plugin) do you use:
Just running haskell-language-server in terminal
Describe your project (alternative: link to the project):
stack.yaml + package.yaml using hpack 0.35 + GHC 9.2.3
Steps to reproduce
using ghcup to install
stack install hpack-0.35.0 --resolver=nightly-2022-06-30
ghcup compile hls -g master -j 20 --ghc 9.2.3
In a stack project, update it to use hpack 0.35 and generate a new cabal file:
add this line to stack.yaml:
update your package.yaml to use
GHC2021
by adding:run
stack ghci
once to make sure a new cabal file is generated (which should now include the linedefault-language: GHC2021
somewhere in it)try running
haskell-language-server
Expected behaviour
haskell-language-server should run
Actual behaviour
haskell-language-server fails on every file with this error:
Background
The reason for hpack 0.35 is to set the default language of all files in the project to GHC2021, so that a few useful extensions are enabled by default.
The text was updated successfully, but these errors were encountered: