How to use the DevKit plugin in 3126?


How is one supposed to use the DevKit plugin in 3126?

- It's no longer available in the IDE Settings dialog
- There is no place to create a sandbox anymore
- I keep getting "wrong jdk type for plugin module" when I create a
plugin config.


Alain

30 comments

You have to create an IDEA Jdk (in JDK & Global Libraries) and use that
for your plugin modules. There you can specify the sandbox location too.

Alain Ravet wrote:


How is one supposed to use the DevKit plugin in 3126?

- It's no longer available in the IDE Settings dialog
- There is no place to create a sandbox anymore
- I keep getting "wrong jdk type for plugin module" when I create a
plugin config.


Alain

0

Martin,

(see the 4 attached images)

Excuse me for being a little thick today, but I don't understand. (This
project used to work with 3117, 2 hours ago).


In 3117, I used to

1/
IDE Settings.IDE.
DevKit plugin: create a sandbox, in a location chosen by me.

2/
Create a plugin configuration, where I would specify the sandbox to use.
This would invisibly add the required jars to the project


Now,

problem 1: the plugin has disappeared from the IDE setting.
see attached image:
1noMoreDevKitPluginEntry.png

problem 2
see attached images:
2libsConfig.png
3wrongJdkType.png
4missingLibraries.png

2:lib and jdk config (used to work, in 3117)




3/ "wrong jdk problem"


4/ result: missing libraries





Attachment(s):
_1_noMoreDevKitPluginEntry.png
_2_libsConfig.png
_3_wrongJdkType.png
_4_missingLibraries.png
0

In 3126 you have to

1.) Create an IDEA JDK with a sandbox location. All required jars are
attached to this JDK. (See attached image jdk.png)

2.) Specify this JDK for your plugin module. (See attached image module.png)

3.) Create a run configuration where you specify to take JDK and
classpath from your plugin module, i.e. from your IDEA JDK. (See
attached image run.png)

The DevKit plugin has disappeared from IDE settings because there's
nothing to configure anymore. All configuration is done through the IDEA
JDK, giving you much more flexibility than before.

Believe me, once you get it working it's absolutely cool. I have a
plugin where I support three different IDEA versions (4.0, 4.5, and
5.0). So beside the plugin module I just create three different java
modules with three different JDKs, and every module gets its correct set
of IDEA libraries. In order to test with different IDEA versions I just
switch the module JDK of the plugin module, which switches the sandbox
location behind the scenes. (Unfortunately it's currently not possible
to launch IDEA 4.0 this way, but 4.5 and 5.0 work great.)

Alain Ravet wrote:

Martin,

(see the 4 attached images)

Excuse me for being a little thick today, but I don't understand. (This
project used to work with 3117, 2 hours ago).


In 3117, I used to

1/
IDE Settings.IDE.
DevKit plugin: create a sandbox, in a location chosen by me.

2/
Create a plugin configuration, where I would specify the sandbox to use.
This would invisibly add the required jars to the project


Now,

problem 1: the plugin has disappeared from the IDE setting.
see attached image:
1noMoreDevKitPluginEntry.png

problem 2
see attached images:
2libsConfig.png
3wrongJdkType.png
4missingLibraries.png

2:lib and jdk config (used to work, in 3117)




3/ "wrong jdk problem"


4/ result: missing libraries




Attachment(s):
jdk.png
module.png
run.png
0

Well, I can't even create a new plugin module :/
http://www.intellij.net/tracker/idea/viewSCR?publicId=40903

Sascha

Alain Ravet wrote:


How is one supposed to use the DevKit plugin in 3126?

- It's no longer available in the IDE Settings dialog
- There is no place to create a sandbox anymore
- I keep getting "wrong jdk type for plugin module" when I create a
plugin config.


Alain

0

Works great here. What's going wrong?

Sascha Weinreuter wrote:

Well, I can't even create a new plugin module :/
http://www.intellij.net/tracker/idea/viewSCR?publicId=40903

Sascha

Alain Ravet wrote:

>>
>> How is one supposed to use the DevKit plugin in 3126?
>>
>> - It's no longer available in the IDE Settings dialog
>> - There is no place to create a sandbox anymore
>> - I keep getting "wrong jdk type for plugin module" when I create a
>> plugin config.
>>
>>
>> Alain

0

Martin Fuhrer wrote:

Works great here. What's going wrong?


See the link to the exception I posted. If it does work for others
though it may be a configuration problem. I'll try a clean install
and see what happens.

Sascha

0

Martin

In 3126 you have to

>

1.) Create an IDEA JDK with a sandbox location. All required jars are
attached to this JDK. (See attached image jdk.png)

>

Problem: I'm on Mac OX X, and there is no such thing as IDEA JDK. (see
attached image/below).
I tried many variations
- pointing to the system JDK
- cloning the system JDK to a user area, and pointing to it.
to no avail: each time, I get the error message below :




>

Believe me, once you get it working it's absolutely cool.


I believe you, but out of pure faith, as I can't see it with my own eyes :)

Alain



Attachment(s):
cantCreateIdeaJDKonMacOS.png
0

So I assume you already have a plugin module which has already a
(non-IDEA) jdk. At least I got the same exception in exactly this case.
You may change your project/module jdk manually by editing the ipr/iml
files by hand, or you have to recreate the project from scratch.

Sascha Weinreuter wrote:

Martin Fuhrer wrote:

>> Works great here. What's going wrong?


See the link to the exception I posted. If it does work for others
though it may be a configuration problem. I'll try a clean install
and see what happens.

Sascha

0

Hi,
the problem is that i try to find jre in the IDEA home path (right home path for IDEA JDK) (
IDEA JDK for Mac will be available in the next build only.
Sorry.

--
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

"Alain Ravet" <alain.ravet@biz.tiscali.be> wrote in message news:cp797l$nsp$1@is.intellij.net...
Martin


In 3126 you have to

1.) Create an IDEA JDK with a sandbox location. All required jars are attached to this JDK. (See attached image jdk.png)



Problem: I'm on Mac OX X, and there is no such thing as IDEA JDK. (see attached image/below).
I tried many variations
- pointing to the system JDK
- cloning the system JDK to a user area, and pointing to it.
to no avail: each time, I get the error message below :





Believe me, once you get it working it's absolutely cool.
I believe you, but out of pure faith, as I can't see it with my own eyes :)

Alain



Attachment(s):
cantCreateIdeaJDKonMacOS.png
0

Anna,

the problem is that i try to find jre in the IDEA home path (right
home path for IDEA JDK) (
IDEA JDK for Mac will be available in the next build only.
Sorry.




Based on that info, I put a copy of the JDK inside the app bundle, (see
attached image) but it didn't help.

Alain






Attachment(s):
innerJdkDontWorkEither.png
0

So how do you handle code in the plugin module that is not compatible
between different versions of the IDEA libraries? Do you keep different
library-dependent implementations of the same classes in the same module?

Thanks,

Vince.


0

Try to put jre under "jre" folder (not ideaJDKclones)
Thank you

--
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

"Alain Ravet" <alain.ravet@biz.tiscali.be> wrote in message
news:cp7c73$k5d$1@is.intellij.net...
Anna,

the problem is that i try to find jre in the IDEA home path (right home path
for IDEA JDK) (
IDEA JDK for Mac will be available in the next build only.
Sorry.


Based on that info, I put a copy of the JDK inside the app bundle, (see
attached image) but it didn't help.

Alain


0

Hi,
you have to define N plugin modules for N versions of IDEA and may be some
java modules.
For each plugin module you can have a couple of java modules. These java
modules can:
1) serve as utilities and be shared between plugin modules, or
2) contain dependant on IDEA version features and belongs to concrete plugin
module.
BTW, your plugin module can have no source at all - just couple some java
modules.

--
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"


"Vincent Mallet" <xmalletva@tripos.com> wrote in message
news:cp7f0b$bbv$1@is.intellij.net...

So how do you handle code in the plugin module that is not compatible
between different versions of the IDEA libraries? Do you keep different
library-dependent implementations of the same classes in the same module?

>

Thanks,

>

Vince.

>
>


0

Martin Fuhrer wrote:

So I assume you already have a plugin module which has already a
(non-IDEA) jdk. At least I got the same exception in exactly this case.
You may change your project/module jdk manually by editing the ipr/iml
files by hand, or you have to recreate the project from scratch.


Thank you, I would have never thought that the project JDK may be a problem
here. Everything is working fine now after changing the JDK to the IDEA one.

Sascha

0

Or you can just edit it from "Settings/Paths/Libraries". Worked like a charm for me.

(No, I don't know why JDK settings are under "Libraries" either, or for that matter why they are under "Paths". It seems like a pretty essential project setting to mis-file.)

--Dave Griffith

0

Or you can just edit it from
"Settings/Paths/Libraries". Worked like a charm for
me.


Problem is that the exception is thrown when selecting Settings -> Paths, so no luck with that... :(

0

So how do you handle code in the plugin module that
is not compatible
between different versions of the IDEA libraries? Do
you keep different
library-dependent implementations of the same classes
in the same module?


I have one java module for each IDEA version and a common plugin module which contains only classes which are compatible for all versions.

0

Anna

>Try to put jre under "jre" folder (not ideaJDKclones)

>

Couldn't make it work. I tried many combination, but I keep getting this
error dialog:

title: " cannot detect jdk version"
msg: "Probagly JDK installed in /Users/aravet/Desktop/__dev__/IntelliJ
IDEA-3126.app/jre is corrupt."

Alain

0

That's because there is 'jre' as it would be on windows or linux on the mac,
there is no jre directory there like on windows or linux so it's looking for
something that doesn't exit.

I bet Maxim can reproduce it.

Also nice typo :) " msg: "Probagly JDK installed"

R


On 12/8/04 5:26 PM, in article cp7v30$op0$1@is.intellij.net, "Alain Ravet"
<alain.ravet@biz.tiscali.be> wrote:

Anna

>> Try to put jre under "jre" folder (not ideaJDKclones)
>>
>>


Couldn't make it work. I tried many combination, but I keep getting this
error dialog:

title: " cannot detect jdk version"
msg: "Probagly JDK installed in /Users/aravet/Desktop/__dev__/IntelliJ
IDEA-3126.app/jre is corrupt."

Alain


0

So to run your plugin configuration for different IDEA versions you have to
change IDEA JDK for your plugin module, haven't you?
I think it's better to have java module for "classes which are compatible
for all versions" and different plugin modules for different IDEA versions.

--
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

"Martin Fuhrer" <mf@fuhrer.com> wrote in message
news:32210021.1102537815555.JavaMail.itn@is.intellij.net...

So how do you handle code in the plugin module that
is not compatible
between different versions of the IDEA libraries? Do
you keep different
library-dependent implementations of the same classes
in the same module?

>

I have one java module for each IDEA version and a common plugin module

which contains only classes which are compatible for all versions.


0

Yes, I think you're right, that would be simpler. But don't forget, I didn't have much time to adjust my project structure to build 3126... :)

What currently hurts me the most is the missing support for IDEA 4.0. I already had to move the openapi.jar from lib/dev to lib in order to create an IDEA JDK. But running the plugin with this JDK completely failed.

0

Anna

What's the status on MacOS X?
I'm still on 3117.

Alain

0

It seems to work now (3136) :)

--
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

"Alain Ravet" <alain.ravet@biz.tiscali.be> wrote in message
news:cpsppn$vjg$1@is.intellij.net...

Anna

>

What's the status on MacOS X?
I'm still on 3117.

>

Alain



0

Anna Kozlova (JetBrains) wrote:

>It seems to work now (3136) :)
>

>
Great.
Could you briefly describe the official and clean way to create a
"IntelliJ IDEA SDK" on MacOS X?
TIA.

Alain

(note: there is a typo on the button tooltip: it says "Add ItelliJ IDEA
SDK")

0

You have to set the Idea Home directory as the home path for IntelliJ Idea
SDK.
After that you have to set up the "sandbox" where the config/system/plugins
folders for 'IDEA with your plugins' will be created.
The IntelliJ IDEA SDK is ready.

I agree that tooltips and other labels aren't 'easy to understand' ( I'll
try to make them more meaningful.
If you find that something is strange, please, let me know.
Thank you.

--
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"


"Alain Ravet" <alain.ravet@biz.tiscali.be> wrote in message
news:cpu8vi$t9c$1@is.intellij.net...

Anna Kozlova (JetBrains) wrote:

>

>It seems to work now (3136) :)
>
>
>
Great.
Could you briefly describe the official and clean way to create a
"IntelliJ IDEA SDK" on MacOS X?
TIA.

>

Alain

>

(note: there is a typo on the button tooltip: it says "Add ItelliJ IDEA
SDK")



0

Anna

>You have to..
>

Great. A LOT simpler than last time I tried.

1/
It's so simple it makes me wonder: why you don't pre-set it into the
standard distribution, like you include default live-templates in every
distribution?
A default IDEA SDK on every machine would make sure every - decent -
plugin project could just be downloaded and run, without any fiddling
being required.

2/
I've just posted a bug that I suspect is related:
"JUnit + IDEA SDK: "Cannot load class that xxx.Testyyy is dependant on" "
http://www.intellij.net/tracker/idea/viewSCR?publicId=41263

Alain

0

1/
It's so simple it makes me wonder: why you don't pre-set it into the
standard distribution, like you include default live-templates in every
distribution?
A default IDEA SDK on every machine would make sure every - decent -
plugin project could just be downloaded and run, without any fiddling
being required.


An interesting suggestion for open source plugins :)

--
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"


0

Plugin development is certainly not an every-day task for the common
IDEA user. So presetting IDEA with such a specific feature doesn't seem
very meaningful to me. And since a plugin developer should know slightly
more about IDEA than a 'normal' user it shouldn't be that hard for him
to first create an IDEA SDK...

Anna Kozlova (JetBrains) wrote:
>>1/
>>It's so simple it makes me wonder: why you don't pre-set it into the
>>standard distribution, like you include default live-templates in every
>>distribution?
>>A default IDEA SDK on every machine would make sure every - decent -
>>plugin project could just be downloaded and run, without any fiddling
>>being required.


An interesting suggestion for open source plugins :)

0

Martin

Plugin development is certainly not an every-day task for the common
IDEA user. So presetting IDEA with such a specific feature doesn't
seem very meaningful to me. And since a plugin developer should know
slightly more about IDEA than a 'normal' user it shouldn't be that
hard for him to first create an IDEA SDK...



IDEA has default file templates for J2EE, that I never use. Their
presence doesn't bother me.
Why would an extra entry in the JDK list, that you could just ignore and
never touch, annoy you?

Alain

0

Plugin development is certainly not an every-day

task for the common

IDEA user. So presetting IDEA with such a specific

feature doesn't

seem very meaningful to me. And since a plugin

developer should know

slightly more about IDEA than a 'normal' user it

shouldn't be that

hard for him to first create an IDEA SDK...


IDEA has default file templates for J2EE, that I
never use. Their
presence doesn't bother me.
Why would an extra entry in the JDK list, that you
could just ignore and
never touch, annoy you?


Because it would be the only one, causing more confusion for newbies than help for plugin developers. The J2EE file templates are well hidden until you're actively using them. So there's no place for confusion. But having a single JDK in the JDK list will lead to many people using it for normal development, thinking this is the 'standard' JDK to be used.

0

Please sign in to leave a comment.