IJ doesn't identify the Project JDK as the IDEA jdk for imported plugin.

I imported a plugins module 'xslt-debugger' source into the community edition project.
All the other plugins 'commander', 'spellchecker' etc have their JDK  set to the 'Project JDK', and a dependency on the IDEA jdk.
The 'xslt-debugger' plugin has its JDK set to the  'Project JDK', and a dependency on the IDEA jdk.

However I am getting the 'Wrong jdk type' error.

I don't see the difference and don't know why the 'Project JDK (IDEA jdk)' isn't resolved to the 'IDEA jdk' ?

1 comment

Hello Rob,

Plugin projects require an SDK of type 'IntelliJ IDEA SDK'. The SDK used
for the IDEA project itself is a regular Java SDK, and is not applicable
for plugin projects.

The best way to debug a plugin together with the IDEA code is to create a
regular Java module from the plugin source code, add dependencies to the
necessary modules of the IDEA code, and add the dependency from the module
'community-main' to the new module.

I imported a plugins module 'xslt-debugger' source into the community
edition project.

All the other plugins 'commander', 'spellchecker' etc have their JDK
set to the 'Project JDK', and a dependency on the IDEA jdk.

The 'xslt-debugger' plugin has its JDK set to the  'Project JDK', and
a dependency on the IDEA jdk.

However I am getting the 'Wrong jdk type' error.

I don't see the difference and don't know wht the 'Project JDK (IDEA
jdk)' isn't resolved to the 'IDEA jdk' ?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.