If I do a clean build, and while building I open a file, I may get spurious errors (values not found). One example in the scala compiler:
- close all editors
- start a clean build (background build)
- open IMain.scala
- see lots of spurious errors involving ```repldbg```
The presentation compiler has an outdated classpath (and package symbols) pointing to the output directory, where all the classfiles have been removed. When it tries to typecheck the source, these classes have disappeared.
The presentation compiler needs to be restarted whenever files on its classpath appear or disappear. Another manifestation seems to be triggered when changing branches in git-managed projects (if files are added/removed).