You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
It crashes; or
It reports 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 and B and import them from one another:
-- src/A.hsmoduleAwhereimportB
-- src/B.hsmoduleBwhereimportA
Run ghcid:
$ ghcid --command "cabal repl component-name"
Witness the issue.
Version information
❯ ghcid -V
Auto reloading GHCi daemon v0.8.7
The text was updated successfully, but these errors were encountered:
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: