Plugin module question

Not sure if this question goes here or in openapi but... I have a plugin
module defined in Irida, when I go to Project Settings -> Paths ->
Plugin Tab the drop-down is empty. What should be there? Do I have
something wrong in my setup or is this not implemented yet?

14 comments

Add an entry to the DevKit panel in IDEA Settings, this should fix it.

0

Keith Lea wrote:

Add an entry to the DevKit panel in IDEA Settings, this should fix it.

Thank you.

0

Brad wrote:

Keith Lea wrote:

>> Add an entry to the DevKit panel in IDEA Settings, this should fix it.


Thank you.


BTW, did anyone successes using DevKit.
If yes, do you find it useful?
What other features you'd like to see there first?

--
Maxim Shafirov
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

I love it so far, I've just started using it for a plugin I'm starting. I have a few ideas for functionality:

1. Automatically add openapi.jar from the currently selected sandbox target to library paths
2. Wizards or GUI editor for modifying project.xml (maybe the wizard would be when you first create the project, with checkboxes "create project component" "create keyboard/mouse actions" and so on)

0

Keith Lea wrote:

I love it so far, I've just started using it for a plugin I'm starting. I have a few ideas for functionality:

1. Automatically add openapi.jar from the currently selected sandbox target to library paths
2. Wizards or GUI editor for modifying project.xml (maybe the wizard would be when you first create the project, with checkboxes "create project component" "create keyboard/mouse actions" and so on)


1. Already works that way actually.
2. On the way

--
Maxim Shafirov
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

#1 didn't work for me in 3084, I had to add it manually.

0

Keith Lea wrote:

#1 didn't work for me in 3084, I had to add it manually.

You have to shut down IDEA after creating the DevKit entry.

0

Well, you asked for it.

1) The Settings/DevKit panel and the Settings/Paths/Plugin panels are both incredibly unhelpful in getting the user up to speed, the Plugin panel almost comically so. I know that plugin authors are a hearty breed that needs no handholding from GUIs, but these are a bit ridiculous.

2) Once you've described a sandbox in the Settings/DevKit panel, there doesn't seem to be any way of editing it. I'll submit a Tracker item.

3) I get the same PicoContainer error that Keith describes here: http://intellij.net/forums/thread.jsp?forum=18&thread=114270&tstart=0&trange=15#3412016

when attempting to load a ProjectComponent whose constructor takes a Project argument. This is for a plugin and plugin.xml that I known has worked previously.

4) It should be possible to indicate that plugin run configuration should use the JRE that ships with the IDEA installation, rather than whatever JDK you built with. Or maybe I'm just annoyed because I had to download JDK1.4.2_04 because IDEA doesn't run with JDK1.4.2_05, which was what I used to build the plugin.

5)Plugin modules should start with openapi.jar and jdom.jar in their module libraries.

6)There should be a quick way to copy current IDEA configuration information into the sandbox on sandbox creation.

Good start, though, and it will certainly improve my life in the long run if I can develop plugins without constantly stopping and restarting IDEA.

--Dave Griffith

0

BTW, did anyone successes using DevKit.

No, I got a ClassCastException on deployment of a (dummy) ApplicationComponent, see http://www.intellij.net/tracker/idea/viewSCR?publicId=39121.

If yes, do you find it useful?

Yes, it looks promising.

What other features you'd like to see there first?

Hard to tell as long as I don't get it to work...

0

I finally got something to work, but not very consistently (one plugin works, another one doesn't...).

What I would like to have:

1.) Possiblity to easily test plugins with different IDEA versions, back to 4.0.0. Currently I have to specify a sandbox in the module properties (which by the way isn't remembered in one plugin), so the plugin seems to be stuck to that IDEA version.

2.) Automatic generation of deployable plugin archive, either as JAR or as ZIP file.

3.) Some improved support for editing plugin.xml file.

0

Hello, Maxim!
You wrote on Thu, 04 Nov 2004 21:54:39 +0300:

The plugin your created are very needed.
I can't use it for now (just not time to test Irida), but i look it
quickly - it the thing that i need for 2 years! :))

  • Before it we must setup debug (sandbox) running manualy. If we use JDK

1.5, then we can't run it from IDEA and must use separate runner. Your
implementation must run plugin under JRE within IDEA bundled.

I thing this is very good news, that JetBrains make plugin development is
'native' :)

Now i use my own ANT script, that work like DevKit but for Pallada. And i
still have complex debug settings for it.
If it interest, look it on http://www.intellij.org/twiki/bin/view/Main/PluginANTScript.

The work process is:

  • Making some changes, Ctrl+F9 (i have ANT target maped to 'After Make'

event)
After Ctrl+F9 automatical runned my ant script that perform make,
deploy and
run IDEA sandbox. If i want to debug i must run remote debugger.

  • If i want to release plugin version, i perform ANT 'release' target,

that build ZIP and
i upload it into Plugin Repositary.

I hope, that with DevKit this process will be more simple:

  • Making some changes Ctrl+F9, run debug :)

  • Also building ZIP file :))


Thanks!
--
Alexey Efimov, Java Developer
Tops-BI
http://www.topsbi.ru


0

I would add automatic upload to the plugin registry.

0

Maxim Shafirov (JetBrains) wrote:

BTW, did anyone successes using DevKit.


Yes, I didn't have any problems so far.

If yes, do you find it useful?


Yes, together with Debug/HotSwap it really rocks. A way to reload/hotswap
whole plugins without the need for the debugger would rock even more :)

What other features you'd like to see there first?


I had problems attaching the OpenAPI sources/javadoc because the DevKit
implicitly adds openapi.jar to the libraries. If this isn't possible yet,
there should be a way to do so, if it is, I just didn't find out how but
am curious to know :)

Sascha

0

There should be some more flexibility how to package the plugin.

For example in JBoss plugin I have two additional Java modules whose classes aren't loaded by IDEA but by an own class loader (similar to Weblogic plugin). So I want to copy those classes into a separate folder inside the plugin's classes directory.

There should be a way in DevKit to specify such deployments, similar to specifying a web tree in a J2EE web module.

0

Please sign in to leave a comment.