-
-
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
Template Haskell + HLS = Unexpected usage error ld-linux-x86-64.so.2: cannot open shared object file #1841
Comments
hi, thanks for the detailed bug report. |
Thank you again for the workaround :) |
What is the workaround? As far as I understand the issue is not fixed. |
Both things are true 🙂 : it is not fixed and we have a workaround until the definitive fix lands. The workaround is:
To see how to build hls itself with dynamic linking enabled you can take a look to the README: https://github.com/haskell/haskell-language-server#problems-with-dynamic-linking |
@chris-martin thank you for confirming it (i was not totally sure if it was going to work with this one) |
I am gonna close this issue as all compiler crashes seems to have the same root cause:
If any of you think the issue should not be included generically feel free to reopen it (with a brief explanation if possible) |
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:Not applicable, vscode extension installs it itself
Which OS do you use: NixOS
Which lsp-client do you use: VS Codium
Describe your project (alternative: link to the project): Reproduceable with the MWE https://github.com/FinleyMcIlwaine/hls-issue (contains
hie.yaml
, cabal file, cabal project)Steps to reproduce
Create a typechecking file using template haskell
Expected behaviour
No error
Actual behaviour
On the first line, HLS says there is a typecheck error:
Other modules dependent on this file don't get HLS started. Modules not dependent on this file work without problems.
Include debug information
Note: I've manually installed a
haskell-language-server
version 1.0.0.0, but not sure whether that's the same as is installed via the VSCode extension.Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:Debug output:
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs:
The text was updated successfully, but these errors were encountered: