-
-
Notifications
You must be signed in to change notification settings - Fork 389
"Program error: typecheck" with no additional information #1410
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
This might be related to: #1024 |
Hi, thanks for the bug report, hls uses This reminds me #330 which also arise in the stack codebase |
@jneira Yes, |
I can also confirm that removing the TemplateHaskell fixes the problem. As a workaround, I ran
and manually inserted the generated code code in place of the TH code. (I also used this hack https://www.tweag.io/blog/2021-01-07-haskell-dark-arts-part-i/ when fixing the TH generated code, since it contained references to hidden/non-exported code. That worked without any issues.) |
Thanks for confirming it, this looks like #330 but maybe no enough to close as duplicate |
I have such an issue as well, on Linux (Ubuntu) in my nix environment for a larger project: Using right-click -> Copy in VSCode:
Further up in the
|
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
:Which lsp-client do you use:
VS Code
Describe your project (alternative: link to the project):
https://github.com/commercialhaskell/stack/
Contents of
hie.yaml
:Steps to reproduce
Expected behaviour
Get a useful error message and/or don't crash.
Actual behaviour
At first this error is shown in the "Problems" panel:
but as soon as I interact with anything, that message disappears and is replaced with just
Include debug information
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: