Open Source instead of decompiled class
Answered
Can I force Intellij IDEA to open source code of a library instead of showing decompiled class files?
I have set Intellij IDEA Maven to always download sources. My Maven repository contains the jar and sources of the library.
Yet in certain cases Intellij prefers to show me decompiled class files.
In this specific case I am clicking to jump to an autowired Spring Bean dependency.
Strangely if I enter the name of the class in the CTRL+N popup, then it will show me the sources immediately.
Please sign in to leave a comment.
Please make sure that <Module source> entry is the first one in the table at the Dependencies tab of each module (Project Structure dialog).
<Module source> is always listed at the top after the JDK. So that's not it.
Isn't <Module source> the sources of the current module? I'm talking about a Java class from a library.
@Robert try moving the library to the top in module dependencies.
I put the library on top, but that has no effect. I also don't know why it would have any effect, since the class is only available in that library.
I'll make a bug report.
For me module source on top was not enough. Invalidate caches & restart didn't work. However, the maven toolbox thingy had errors, and a maven reimport fixed it.