-
Notifications
You must be signed in to change notification settings - Fork 113
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
Crash/incorrect error message on circular dependency #377
Comments
Indeed I get It would be prettier if ghcid did not exit, it is a bit of a nuisance having to restart it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Sometimes during a refactor I might accidentally introduce a module import that causes a circular/cyclical dependency.
ghcid
might then fail in one of two ways:All good (X modules, at 19:12:42)
, where X is a number lower than the number of actual modules in the project, i.e. not all modules were typechecked.I'm not sure how to trigger one or the other, they seem to happen randomly/under unclear circumstances.
Since HLS manages to identify the cycle and report correctly, I believe this is a bug in
ghcid
.How to reproduce
Create two modules
A
andB
and import them from one another:Run
ghcid
:Witness the issue.
Version information
The text was updated successfully, but these errors were encountered: