Who maintains idea/samples directories?
This document:
http://confluence.jetbrains.net/display/IDEADEV/Getting+Started+with+Plugin+Development
States under the header "Sample Plugin":
Sample plugin
A sample plugin that illustrates how to create your own action group and add it to the main menu and to the main toolbar is available in the <%IDEA project directory%>/community/samples/actions directory
Please note : there is no "community" directory in the root of the CE source distribution, but there *is* a samples directory at the root level.
In this directory are:
actions
comparingReferences
conditionalOperatorConverter
plugin
toolWindow
vfs
I've thoroughly examined the actions and plugin projects, and can tell you NEITHER of these work under IDEA 9. In fact, they look like they were last designed to work with JDK 1.3.
Who maintains the confluence document included above, or these "sample" projects? Either the projects need to be fixed to actually work with IDEA 9, or the "getting started" document should be updated to remove the reference to these obsolete sample files, and the sample files should be removed from the distribution.
It's frustrating to waste a day wondering what I am doing wrong only to find out the supposed samples used to teach you to develop plugins are obsolete and don't work.
Thanks,
Rob
Please sign in to leave a comment.
In plugin.xml, the element
<idea-version since-build="2000" />
causes the plugin to not be valid when opening in the IDE. (Plugin is red in the Plugin manager and cannot be enabled.)
Chaning this to
<idea-version since-build="1" />
fixes that problem.
Although, I don't know what the "since-build" value should actually be here. But 2000 is broken.
Rob
As with the "plugins" project, the "since-build" value of 2000 is causing the plugin to not be loadable in IDEA 9.
This works:
<idea-version since-build="9000" />
as does
<idea-version since-build="1" />
but I don't know what value to actually use. But clearly 2000 is broken.
Also, in two places in plugins.xml, the "reference" element of the "group" element has the wrong attribute.
<reference id="ActionsSample.ActionsPlugin.GarbageCollection"/>
should be
<reference ref="ActionsSample.ActionsPlugin.GarbageCollection"/>
and
<reference id="Actions.ActionsPlugin.HelloWorld1"/>
should be
<reference ref="Actions.ActionsPlugin.HelloWorld1"/>
Does anyone from JetBrains read this forum?
Rob
Hello Rob,
The sample plugins have been recently updated, and the master branch contains
up-to-date and working versions of the plugin. We haven't backported the
changes to the maia branch.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"