ghcid
ghcid copied to clipboard
Reset errors in VSCode when updating package.yaml
Steps to reproduce:
- Try to import a module that is not added to package.yaml
- ghcid will mark that as an error and add a squiggly line
- Add the missing package to package.yaml dependencies
- Restart ghcid
- Error is no longer in ghcid terminal output
- The red squiggly is still in the output
Stackage snapshot: nightly-2019-06-08 ghcid version: Auto reloading GHCi daemon v0.7.4
I noticed there are a few other issues related to automatic restarting of ghcid when package.yaml changes. However, even if you manually close the ghcid terminal and run "Start Ghcid" again the error seems to be unaffected. If I delete the line and bring it back, VSCode somehow remembers that haskell-ghcid has marked it as bad.
Haven't found any other workarounds than restarting VSCode, which is getting quite annoying.
Having similar issues with errors persisting in the VSCode Problems list, even after they're fixed and ghcid says "All good".