So I seem to hit this or that compiler bug relatively often, causing random errors to be reported within my code (usually related to type inference, but there has been some really weird/undecipherable stuff, too), which I can’t get rid of, making it hard to continue programming.
Usually, things go back to normal if I drop to command line and do something like
./gradlew clean test. But that takes a fairly long time (easily a few minutes), because it involves some subprojects in JS and whatnot.
Anyway, my question is - is there some way to achieve the same from within Idea? Looks like the bugs are related to incremental compilation and the idea is to make the compiler forget everything it knows, as it seems to do when the code is compiled anew externally… The “Rebuild project” action doesn’t seem to work that way…