Skip to content
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

Troubleshooting: Add solution from #1882 #2795

Closed
wants to merge 1 commit into from

Conversation

chris-martin
Copy link

No description provided.

@@ -215,3 +215,7 @@ Due to some limitations in the interaction between HLS and `stack`, there are [i

- The project has to be built succesfully *before* loading it with HLS to get components other than the library work.
- Changes in the library are not automatically propagated to other components, especially in the presence of errors in the library. So you have to restart HLS in order for those components to be loaded correctly. The usual symptom is the editor showing errors like `Could not load module ...` or `Cannot satisfy -package ...`.

### HLS stops with "Assertion failed"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could expand this to be more general. The issue is something like "HLS fails to start and displays an error from cabal, which seems to be persistent", and the potential fix is "delete the cabal state used by HLS". I'm not quite sure how to phrase it but this is something to try for various kinds of persistent issues with cabal.

@michaelpj
Copy link
Collaborator

I incorporated this into a recent PR.

@michaelpj michaelpj closed this Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants