-
-
Notifications
You must be signed in to change notification settings - Fork 412
Description
I've had haskell-language-server crashing all the time for the past month over all my multicradle projects.
I've switched to using the flake (thanks for making that !) and I wonder if there are some guidelines somewhere as how to debug that.
I had to incrase the coredump ExternalSizeMax to get a full coredump (system grinds to a halt) via (on nixos)::
systemd.coredump.extraConfig = ''
ProcessSizeMax=20G
ExternalSizeMax=20G
'';
after a crash I run
coredumpctl debug
but gdb doesn't manage to load the coredump, it stays stuck as in an infinite loop:
Type "apropos word" to search for commands related to "word"...
Reading symbols from /nix/store/6kdhg6jmzlil02npp383jmckvqfx6q8z-haskell-language-server-1.1.0.1/bin/haskell-language-server...
(No debugging symbols found in /nix/store/6kdhg6jmzlil02npp383jmckvqfx6q8z-haskell-language-server-1.1.0.1/bin/haskell-language-server)
warning: core file may not match specified executable file.
warning: platform-specific solib_create_inferior_hook did not load initial shared libraries.
Reading symbols from /nix/store/v8q6nxyppy1myi3rxni2080bv8s9jxiy-glibc-2.32-40/lib/libpthread.so.0...
(No debugging symbols found in /nix/store/v8q6nxyppy1myi3rxni2080bv8s9jxiy-glibc-2.32-40/lib/libpthread.so.0)
and even if it could load it apparently the binary lacks synbols ? Would it be possible to provide a debug package in the flake ?
- add some instructions at https://github.com/haskell/haskell-language-server/blob/master/CONTRIBUTING.md
Steps to reproduce
Expected behaviour
Actual behaviour
Include debug information
Execute in the root of your project the command haskell-language-server --debug . and paste the logs here:
Debug output:
<paste your logs here>
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs:
<paste your logs here>