-
-
Notifications
You must be signed in to change notification settings - Fork 367
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 keeps crashing (exit code -11, segfault, bus error, ..) with plutus pioneer program #1847
Comments
Hi, thanks for the nice bug report. For completeness, when you use "keeps" do you want to mean that previous versions of hls has been failing in the past? |
Here you go ... $ /Users/tdiesler/.ghcup/bin/haskell-language-server-8.10.4 "--debug" 2> hls-crash-debug.txt At first, it worked great and I learned a lot from the linting hints. Lately however, hls keeps crashing and I see a lot of annoying popups and no more useful hints. I installed my Haskell env with ghcup.
Atom makes repeated attempts to run HLS - they crash repeatedly - then Atom gives up. |
This forum post might be related ... https://forum.cardano.org/t/setting-up-hls-on-macos-for-plutus-development/57729 |
I may be facing a similar problem. I am running macOS 11.3.1. For the first few lessons, the HLS works well, but from lesson 4 onward HLS attempts to run 3-4 times, and it stops with the error message
Please advise. |
@hududed the segmentation fault suggests it's not HLS' fault; it's extremely hard to get Haskell to cause a segfault. |
There is a simple workaround as you have found: use Linux. If you are stuck with Mac OS, try building HLS locally using |
I built hls-1.2.0 on MacOS like this ...
... and unfortunately got the same error. |
The installation script doesn't support such arguments. It should work if you invoke |
Thanks, but same error unfortunately. |
The workaround fixes the issue for me. I add the line cabal clean # just to be sure
cabal build exe:haskell-language-server-wrapper
cabal install exe:haskell-language-server-wrapper --overwrite-policy=always |
Lovely, that works - Merci |
Afaik cabal should honour |
We've been having this same issue on our macOS environment, and I can confirm that |
Maybe the problem is |
I got this when trying to use this solution
|
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
:haskell-language-server version: 1.1.0.0 (GHC: 8.10.4) (PATH: .../.ghcup/bin/haskell-language-server-wrapper-1.1.0) (GIT hash: f1c096927186a93d8e3ccd4fe8385cc1b070350b) Tool versions found on the $PATH cabal: 3.4.0.0 stack: 2.5.1 ghc: 8.10.4
Which OS do you use: MacOS
Which lsp-client do you use: Atom
Cardano - Plutus Pioneer Program
https://github.com/tdiesler/plutus-pioneer-program/tree/mystuff/code
Contents of
hie.yaml
:Steps to reproduce
Open any file in Atom e.g.
https://github.com/tdiesler/plutus-pioneer-program/blob/mystuff/code/proj01/src/Proj01/Counter1.hs
Actual behaviour
Atom repeatedly reports haskell-language-server crash - then gives up.
Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:The text was updated successfully, but these errors were encountered: