several doubts about the quick start guide of Creating your fist plugin

Answered

All the doubts are related to URL:

http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/setting_up_environment.html

Doubt 01 - IntelliJ IDEA Community Edition as the home directory

In the “preliminary steps”, you can read that you need a IntelliJ IDEA version 9.0 or later (either Community Edition or Ultimate). So I’m using an Ultimate Edition.

A few lines below you are told to “Specify the installation folder of IntelliJ IDEA Community Edition as the home directory”.

If I’m using an Ultimate Edition, I have to install also a Community Edition only to select it as the home directory for the IntelliJ Platform Plugin SDK?

 

Doubt 02 –IDEA jdk (Selection)

You are told to “Select the IDEA jdk created in Check Out And Build Community Edition as the default Java SDK”.

If I go to “File à Project Structure à Platform Settings à SDK” you can see that an “IDEA jdk” is created:

 

But when I have to select the java SDK to be used for IntelliJ Platform Plugin SDK…I only have the choice of “1.8”:

Why I can’t select the “IDEA jdk” SDK?

Doubt 03 –IDEA jdk (Creation)

Continuing with the same subject as the previous question, when I was creating the SDK “IDEA jdk” in the section “Check Out And Build Community Edition” you can read:

  • Configure a JSDK named “IDEA jdk” (case sensitive), pointing to an installation of JDK 1.6.

But in the image below shown as an example you can see they are pointing to an JDK 1.8 (not 1.6):

This happends again in the “Setting Up a Development Environment” section. In an image they show you the “IDEA jdk” selected an in the Sourcepath you can see that is pointing to a 1.8 jdk:

 

So in several texts you can read that the SDK named “IDEA jdk” has to be pointing to an installation of JDK 1.6……but in the images you can see a 1.8 JDK.

What is the proper configuration?

Doubt 04 –Warning using IDEA Ultimate

In the “Setting Up a Development Environment” section you can read the following warning message:

  • “You may use IntelliJ IDEA Ultimate as an alternative, but debugging the core code will only work with the Community Edition.”

If I’m using the Ultimate Edition to create my plugin, I can not debug the core code?

Thanks in advance.

3
5 comments

Regarding your questions:

1. Here you need to specify a directory where binary distribution of IDEA Community or IDEA Ultimate is installed.

2. In fact you need to select JDK 1.8. If 'IDEA jdk' is 1.6 it cannot be used to run the IDE, because since IDEA 2016.1 Java 1.8 is required for that.

3. In fact it's possible to setup the both 'IDEA jdk' and '1.8' to point to the same installation of Java 8. 'IDEA jdk' is used in some modules which need to be compatible with Java 6, but if you don't plan to modify sources of such modules you may setup Java 8 as 'IDEA jdk'.

4. Yes, in IDEA Ultimate Edition all classes from idea.jar are scrambled (e.g. names of private fields and methods are shortened), even classes which belong to Community Edition. So actually you can debug the core code, but it isn't convenient.

We'll correct the documentation pages, thank you for reporting.

2
Avatar
Permanently deleted user

I see that documentation pages at:

http://www.jetbrains.org/intellij/sdk/docs/basics/checkout_and_build_community.html

 

are still not updated.

2
Avatar
Permanently deleted user

hi Nikolay,

i have same issue following the manual to learn how to setup this up.

i have no issue until following the instruction until "Configure a JSDK named “IDEA jdk” (case sensitive), pointing to an installation of JDK 1.6." on this document (http://www.jetbrains.org/intellij/sdk/docs/basics/checkout_and_build_community.html)

so by following your reply on below

===============================================================================
2. In fact you need to select JDK 1.8. If 'IDEA jdk' is 1.6 it cannot be used to run the IDE, because since IDEA 2016.1 Java 1.8 is required for that.

3. In fact it's possible to setup the both 'IDEA jdk' and '1.8' to point to the same installation of Java 8. 'IDEA jdk' is used in some modules which need to be compatible with Java 6, but if you don't plan to modify sources of such modules you may setup Java 8 as 'IDEA jdk'.
===============================================================================

i have setup like below 'IDEA jdk' and '1.8' to point to the same installation of Java 8
and also "/lib/tools.jar" to both setting on the bottom.



instruction says "Use Build | Make Project to build the code." but "Make Project" isn't there so done "Build | Build Project" instead and get 3 errors and bunch of warnings like below. can you kindly help how to fix this?

Errors:

C:\Users\sharuhar\IdeaProjects\community\android\android\src\com\android\tools\idea\profiling\view\CapturesToolWindow.java
Error:(57, 8) java: com.android.tools.idea.profiling.view.CapturesToolWindow is not abstract and does not override abstract method before(java.util.List<? extends com.intellij.openapi.vfs.newvfs.events.VFileEvent>) in com.intellij.openapi.vfs.newvfs.BulkFileListener


C:\Users\sharuhar\IdeaProjects\community\android\android\src\com\android\tools\idea\navigator\AndroidProjectTreeBuilder.java
Error:(56, 81) java: <anonymous com.android.tools.idea.navigator.AndroidProjectTreeBuilder$1> is not abstract and does not override abstract method before(java.util.List<? extends com.intellij.openapi.vfs.newvfs.events.VFileEvent>) in com.intellij.openapi.vfs.newvfs.BulkFileListener


C:\Users\sharuhar\IdeaProjects\community\android\android\src\org\jetbrains\android\facet\AndroidResourceFilesListener.java
Error:(52, 8) java: org.jetbrains.android.facet.AndroidResourceFilesListener is not abstract and does not override abstract method before(java.util.List<? extends com.intellij.openapi.vfs.newvfs.events.VFileEvent>) in com.intellij.openapi.vfs.newvfs.BulkFileListener

 

warnings: 3,591 warnings so uploaded to a file

https://dl.dropboxusercontent.com/u/1636076/error%20and%20warrings.txt

kind regards,

 

1

I recently updated the intellij-community README and intellij-sdk-docs setting_up_environment pages. I hope these address your concerns.

 

0

Please sign in to leave a comment.