Closed alanz closed 3 years ago
Was the error in the .y
file present before you started editing? In general, I think changes to .y
files will be entirely ignored other than when starting. Maybe hie-bios
should we equipped with the command to regenerate .hs files and that knowledge, if we want to support .y
files.
I don't think the issue is with .y
files(ghcide ignores them completely), it's with the fact that the cradle failure wasn't reported as a diagnostic.
Was the error in the .y file present before you started editing?
Yes. I had actually deliberately put an error in the .y file as a reminder where to carry on for my next work session on GHC. So this was a fresh startup of my IDE, where I loaded PostProcess.hs
to warm up HLS, as I normally do. And basically nothing happened, visibly.
I think ghcide has become better at reporting cradle failures. @alanz would you care to test this again?
I just tested this, it does now report the error.
Thanks.
If I have a Syntax error in Parser.y, and I start up editing another haskell file (e.g. PostProcess.hs), there is not indication that there is a problem, but no IDE features work.