Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Project jdk is not defined" in an IntelliJ's 2016.3 JavaScript Project

After update to IntelliJ IDEA 2016.3 I get the warning: "project jdk is not defined" in a JavaScript/Node/React project. Have I overseen something? How to solve it? Under "Setup JDK" link I cannot find any notes that fit.

like image 415
Adam Bogdan Boczek Avatar asked Nov 26 '16 12:11

Adam Bogdan Boczek


1 Answers

This is a known issue with the Scala Plugin for IntelliJ IDEA, see this issue on the JetBrains bug tracker: https://youtrack.jetbrains.com/issue/SCL-11105

Quoting from the bug report:

After upgrading to 2016.3 Ultimate, the editor windows show a yellow bar at the top that says "Project JDK is not defined" with a link to "Setup JDK" on my non-Java project. I don't want a JDK associated with this project because it's not a Java project. It's a small Docker project with Git version control. Please turn the message off.

User's comments:

It turns out that the issue is related to the Scala plug-in. (...) I can confirm that disabling the Scala plugin made the error vanish.

If you don't want to disable the Scala plugin, as a workaround you can set up the project's SDK (even though it is not a Java project) by going to the project settings menu (FileProject StructureProject) and selecting any SDK in the project SDK dropdown.

The bug ticket has been resolved, so the problem should not exist anymore if you have a recent version of IDEA and the Scala plugin.

like image 50
Patrick Hund Avatar answered Oct 15 '22 07:10

Patrick Hund