Idea Stopped opening .java file.

Hi. I have the idea version 11.1.2 with java HotSpot 1.6.0_31.
Everything was good till yesterday, Now if i click java.util.List, it opens List.class instead of List.java.
Java Source code in jdk folder, I did not delete it.

How can i tell idea to open from source folder. It is happening for external libs too, it asks to attach source jar, I attach it, then Next time when I go to class, It opens again from .class file.


Thanks in advance

2 comments
Comment actions Permalink

elbek wrotewn

it asks to attach source jar, I attach it, then Next time when I go to class, It opens again from .class file.

It sounds as if indexing cache might be corrupt. Go to File > Invalidate caches in the menu. Select "Invalidate and Restart". After restarting, IntelliJ IDEA will reindex everything. (You will see the progress bar down in the status bar to the right of center.) Depending on how many libraries you have and the size of your project, it can take from sub second to a couple of minutes to do. Once done, give it a try.

0
Comment actions Permalink

You are the MAN,

It worked, Thank you!

If there is something worth in my comp, then it is Intellij Idea, if there are 2 then 2nd one maybe browser.

I can not imagine to be java developer without Idea(I would not be definitely with Eclipse).

0

Please sign in to leave a comment.