Help, IntelliJ seems unable to find any Java classes after crash

I was using IntelliJ 9.0.2 hapily this morning, but then there a problem with our electricity supply and my computer got rebooted 3 times, when I open my project again almost every class was highlighted in red as if it couldnt be found.
I assumed my project had been corrupted so I create a new projects, same problem
I then reinstalled Java, no improvement
I then installed IntelliJ 9.0.4, no improvement.

Ive fiddled around with various settings, If I go to Module Settings/Sources/Language Level and change if from 5.0 to 6.0 (or from 6.0 back to 5.0) all the red highlighting disappears temporarily but once the reindxing has complete dit all comes back again.

Ive run out of ideas now, anybody ?

EDIT:I then tried open another project that I wasnt using at the time of the crash and that is also exhibiting the same problem

6 comments
Comment actions Permalink

Hi Paul,

Make sure your JDK setup is correct (Project Settings -> Project -> Project SDK)

Regards, Denis

0
Comment actions Permalink

Yeah Ive checked this, and Ive tried both Java5 and Java6 that I have available without any improvement. I can actually compile the code, the source is shown with hundreds of errors as if I cannot

0
Comment actions Permalink

Try to extract minimal but complete standalone reproducible example (small IJ project that shows those errors) from the problem project and post it here

0
Comment actions Permalink

Its not the code that is wrong, its the environment somehow so I really dont see how thats going to help.
I think i hit this problem some time in the distant past, I cant be the only one. What would allow the code to compile but the editor to indicate that it cannot find the classes ?

0
Comment actions Permalink

Did you try File -> Invalidate Caches?

Its not the code that is wrong, its the environment somehow so I
really dont see how thats going to help.

I think i hit this problem some time in the distant past, I cant be
the only one. What would allow the code to compile but the editor to
indicate that it cannot find the classes ?



0
Comment actions Permalink

Thanks Chris, Lifesaver

Never noticed that option, funny how the caches were still incorrect for a new project, maybe the problem was that the Java installation was corrupt and Java wasnt reinstalled until after Id recreated the project.

0

Please sign in to leave a comment.