tfausak / purple-yolk

:hatching_chick: A Haskell IDE for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=taylorfausak.purple-yolk
MIT License
26 stars 2 forks source link

Import cycles not reported #15

Closed tfausak closed 3 years ago

tfausak commented 4 years ago

If there is an import cycle, Purple Yolk stops doing anything interesting and doesn't report the error. The output from GHCi looks like this:

2020-06-11T15:21:07.527Z [ghci/stdout] {"span": null,"doc": "Module imports form a cycle:\n  module `Example' (.../Example.hs) imports itself","severity": "SevFatal","reason": null}

I think no spans are included because cycles may involve arbitrarily many modules.

tfausak commented 3 years ago

This was kind of accidentally addressed by #16:

image

Unfortunately it's (a) not associated with any particular file and (b) reported as "info" rather than "error". But at least it's reported!