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.
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 (File ⃗ Project Structure ⃗ Project) 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With