IntelliJ IDEA 14.03 failed to browse JDK 1.8 source code - intellij-14

I added the latest JDK 1.8 into my projects in IntelliJ IDEA 14.03. But later I found that I can't jump to the source code of any class from JDK. IntelliJ always using the internal java decompiler showing the source code decompiled from .class, even I manually disable the decompiler plugin!
When I switch back to Oracle JDK 1.7, everyting is fine.
Anyone has the same issue?
I am using MacOS 10.10.2(Yosemite)

I found the anwser. After "Invalid cache and restart", everything is working again.

Related

Problem in running a project with aspectJ in IntelliJ IDEA 2022.2.3 (Community Edition)

I am trying to run a project with aspectJ, rather than Java, in IntelliJ IDEA. I had done it before by simply putting "aspectj-1.9.6" in a "Lib" folder and setting the folder "as Library". But I tried it again today and it is not working. I think it might be because I have updated my IntelliJ to version "2022.2.3". I saw in this link that for intelliJ version "2021.1", one should select "ajc" as the project compiler in IntellJ. But it seems that there is no such compiler option in IntelliJ version "2022.2" (as I looked at this link and also searched in this link).
I also tried to install and enable "AspectJ weaver" plugin, but I encounter the following error: "Plugin 'AspectJ weaver' failed to initialize and will be disabled. Please restart IntelliJ IDEA.". Someone has had the same problem in this post, but the answer doesn't work for me, as it refers to this link, which is not compatible with IntelliJ version 2022.2.3:
So, I wonder whether aspectJ is not supported any more in IntelliJ?
Does any one has any suggestion that I could use it with this version of IntelliJ? I do really appreciate any help.
Thanks in advance
IntelliJ IDEA is compatible with AspectJ. I am running the plugin on 2022.2.3 without any problems. But I use IDEA Ultimate, you use Community. Did you notice this in your screenshot?
Compatible with IntelliJ IDEA Ultimate

Downloaded PyCharm and now Java is broken in IntelliJ

Like the title says, I downloaded Pycharm and now my Java project in Intellij is broken. IntelliJ was totally fine beforehand. I know have errors in every file in random places. I also had errors on java imports such as "import java.util.List", (resolved now, see below).
In IntelliJ, I went to File > Project Structure and saw that the SDK was set to Python 3. I changed that JDK 1.8 that I already had set up. That resolved the import errors but I now have weird methods that can't resolve such as concat() or orElse().
Any ideas??
To fix this, I had to right click on the pom file and click "add as maven project"

Intellij idea compiles but displays lots of errors of missing dependencies on editor

I am using ultimate 2019.3
I am getting this weird thing that it shows lots of compilation errors on depnedenceis such as Spring, Vertx, Guava and stuff like this, but gradle clean build and cmd + F9 works fine.
I tried stuff I found here:
invalidate caches and restart
delete both .m2 and .gradle/cahces
delete .idea (didn't find any *.iml
delete the repository and clone it again from GIT, importing it again to IntelliJ.
project structure -> set to Java 1.8 and checked structure and libraries - nothing out of the ordinary.
installed plugin - choose runtime and set IntelliJ to run on Java 1.8
nothing worked!
Maybe its JDK issue? I see my java -version returns 1.8 but IntelliJ runs with JDK 11.
I am completely lost and have no idea what to do.
Please help.
Regards,
Ido
Fixed it like this:
I deleted .gradle/cahces
I removed IntelliJ 2019.3
I also deleted my local repository
Tried to remove all old installations/version/repos.
Downloaded and installed 2020.1
git cloned my reposotory again
imported my project
**And it works !! **
I hanve no idea why...
maybe the new version.
maybe its the uninstall and remove all caches and versions.
Thanks to all of you who helped me.
Regards,
Ido

cannot find symbol "var" in Intellij Idea

Whenever I try to run my application from Intellij Idea I get the following error..
If I build the application via Maven it works fine.
Take a look at my module settings the JDK is v10, the language is v10 as well for both the project and module.
Any idea why this would be happening?
I have no idea how this ever got set wrong but I had the Java compiler bytecode version settings set wrong in the IDE preferences...

How to enable and configure decompilation feature in Intellij 14?

IJ 14 advertised as having automatic decompilation. But that feature is not working for me (IJ ultimate 14.0.2)
Also - presuming that the decompilation not working can be fixed - I presume there were a way to optionally decompile classes? Maybe not every class do we want to have automatically decompiled.
Update the screenshot shows the Java Bytecode decompiler is enabled.
Maybe you have an old decompiler installed as well? I had the JD-IntelliJ plugin installed (it shows up in the plugin list as "Java Decompiler IntelliJ Plugin"), and did not get any files decompiled after I upgraded from IDEA 13. Once I deactivated JD-IntelliJ, however, the decompilation started working again. I guess the two decompilers got in each other's way.