-
-
Notifications
You must be signed in to change notification settings - Fork 391
Prelude.head: empty list
makes hls unusable until restart
#1618
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
Comments
Prelude.head: empty list
makes hls unusable until restart
Thanks for the bug report. Is it reproduced after building the project with
It is a fake path hls is using to load the cradle iirc //cc @fendor |
@jneira, yep, that path should be fine. |
is this still a problem? |
I just ran into the exact same issue:
Relevant version info:
Why would anyone use |
I think this should be fixed by now, reopen if still an issue! |
Uh oh!
There was an error while loading. Please reload this page.
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:Which lsp-client do you use:
lsp-mode in emacs
Describe your project (alternative: link to the project):
n/a
Steps to reproduce
I'm not quite sure.
Expected behaviour
HLS should not die with a Prelude.head empty list error or at least report an error with call stack information
Actual behaviour
HLS seems "stuck" until restart
Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:I don't have time to take out information that I might be unable to share right now.
Debug output:
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs:
What is
/home/cody/work-proj/a
? ls shows me file not found. Is that something synthetic hls adds?The text was updated successfully, but these errors were encountered: