Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

haskell-language-server language server for Haskell was closed with code: 1 #2

Open
tdiesler opened this issue May 8, 2021 · 4 comments

Comments

@tdiesler
Copy link

tdiesler commented May 8, 2021

With ide-haskell-hls-0.0.6 I keep getting the above error. Is there a see why the haskell-language-server is crashing?
This is with Atom on MacOS

@lierdakil
Copy link
Contributor

lierdakil commented May 13, 2021

Terribly sorry for the late reply, I missed the notification.

If you run window:toggle-dev-tools from the command palette, and open the console tab, you will see a lot of debug information from HLS printed to console as warnings. In most cases this should be enough to get the general idea of what's going on at least.

P.S. You can get even more verbose logging if you add debugLSP: true to Atom config under core (NB: you need to add it manually, it's not exposed in the GUI). But in most cases you shouldn't need this.

@tdiesler
Copy link
Author

In the console I see messages like this ...

image

The various projects are here

@lierdakil
Copy link
Contributor

Welp, apparently HLS "just segfaults", which is entirely unhelpful. I was able to eventually make it crash on this project, but it took a while, and I can't really reproduce the issue reliably (or frankly at all for the past half an hour), so this seems to be a heisenbug in HLS -- at least from what I can tell. I don't think I'll be able to help with that much. FWIW after a cursory Google search, it appears building HLS from source (as opposed to installing prebuilts via ghcup) can help with at least some of these segfaults.

If you decide to open an issue upstream, remember to include the output of haskell-language-server-wrapper --probe-tools and haskell-language-server-wrapper --debug code/payout/src/Astor/Payout.hs in addition to the output from dev. console.

@tdiesler
Copy link
Author

Ok, thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants