4
votes

I committed and pushed my changes business as usual and packed my laptop. As I docked it at the office and opened IntelliJ IDEA again. All the project classes were shouting red. As in No classes were found, all imports were red, as in not found. The project builds and deploys as usual.

Every class reference just gives the error "cannot resolve symbol..." and is red. Even the most basic sch as @Inject annotation (javax).

I tried the usual tricks such as maven reimport to no avail. What should I do to fix this? Clone the project again?

Using mercurial repository with external GUI HgTortoise, IDEA version is 15.0.4

2
You could start by giving IntelliJ a restart.Thibstars
@Thibstars I restarted IntelliJ twice and restarted Windows also. Usually this fixes this type of problems but not this time.Steve Waters

2 Answers

7
votes

Try File -> Invalidate Caches / Restart

1
votes

Delete .idea folder and .iml file, then reopen the project, as in my case.