-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
failed to parse result of calling cabal (better error message) #1812
Comments
Hi, thanks for the bug report and agree the error message could be improved. However cabal can fail for several different reasons (and not always its error messages are too good)
It would be helpful to know some approximation to the message you would expect. |
Perhaps something
When HLS works, it is really helpful. |
I think it would be a general improvement showing the error message produced by |
yeah, we could even add the suggestion, with the cli invocation if possible |
Perhaps something along the lines:
Including the When HLS works, it is really helpful. |
I see the error |
I could only get rid of the error message with restarting the vscode - I would guess that vscode keeps somewhere inodes (which are still valid after moving a file or deleting=moving to trash). |
I got the same problem, the error message is scary even if it only means “local library depndency target didn’t compile”. It will happen during normal development, basically any time you open It will also stay around indefinitely, even after fixing |
I get in
Problems
the messagefailed to parse result of calling cabal
which is hinting an internal problem. The cause was most mundane: the library in the project did not compile and in consequence the executable could not compile - strange enough, the other executable did not produce any error.Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:Which OS do you use: debian bullseye AMD64
Which lsp-client do you use: vs code
Describe your project (alternative: link to the project):
two executables, a library,
Steps to reproduce
I am not certain that this can be reproduced - I have not seen it in other similar cases.
Expected behaviour
I expect a reasonable error message
Actual behaviour
The message 'failed ..' persists even after the code compile ok. It disappeared after I run the executable.
If this is more than a fluke I can probably give more information and try to reproduce.
The text was updated successfully, but these errors were encountered: