Irida OpenAPI VCS

I'm attempting to make the MKS plugin work with Irida. After looking at the source of the provided VCSs (CVS, Perforce, Starteam, Subversion) and well as the plugin.xml's of the plugins packaged with Irida, I'm unable to get the MKS plugin to load at all.

It doesn't appear in the Version Control pane of the Project Setting panel. I've tried making the MKS plugin.xml look like those of the packaged plugins without success.

Any ideas?

Eric

10 comments

Eric Sheffer wrote:

I'm attempting to make the MKS plugin work with Irida. After looking at the source of the provided VCSs (CVS, Perforce, Starteam, Subversion) and well as the plugin.xml's of the plugins packaged with Irida, I'm unable to get the MKS plugin to load at all.

It doesn't appear in the Version Control pane of the Project Setting panel. I've tried making the MKS plugin.xml look like those of the packaged plugins without success.

Any ideas?

Eric

The plugin should have a project component that extends AbstractVcs
class to get to the list of the installed VCSs.

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

0

Maxim wrote:

The plugin should have a project component that extends AbstractVcs class to get to the list of the installed VCSs.


Well, it's had that all along. The class is defined as:

public class MksVcs extends AbstractVcs implements ProjectComponent {

...
}

and is referred to in the plugin.xml as:

0



Well, it's had that all along. The class is defined as:

public class MksVcs extends AbstractVcs implements ProjectComponent {
...
}

and is referred to in the plugin.xml as:

org.intellij.vcs.mks.MksVcs ]]>


So, I'm at a loss.

0

Where is your plugin placed? Maybe IDEA cannot find it at all

--
Olesya Smirnova
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

"Eric Sheffer" <no_mail@jetbrains.com> wrote in message
news:19088076.1099579257860.JavaMail.itn@is.intellij.net...

>

Well, it's had that all along. The class is defined as:

>

public class MksVcs extends AbstractVcs implements ProjectComponent {
...
}

>

and is referred to in the plugin.xml as:

>

<project-components>
<component>

>
<implementation-class>org.intellij.vcs.mks.MksVcs</implementation-class>

<option name="workspace" value="true"/>
</component>
</project-components>

>
>

So, I'm at a loss.

>
>


0

Olesya wrote:

Where is your plugin placed? Maybe IDEA cannot find
it at all


I've tried placing it in ~/.IntelliJIdea/config/plugins and in %IDEA_HOME%/plugins while adjusting the IDEA_PLUGINS_PATH environmental variable. No dice.

I guess my question amounts to this: what do I need to do to get a VCS plugin that worked in 4.5.x to work in Irida?

Thanks.

0

First of all you have to try to compile your plugin with Irida (for example
MskConfiguration doesn't have to extend final class VcsConfiguration).
Modified plugin should work. You can send me your plugin if it doesn't work.

--
Olesya Smirnova
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

"Eric Sheffer" <no_mail@jetbrains.com> wrote in message
news:10411463.1099581240421.JavaMail.itn@is.intellij.net...

Olesya wrote:

>

Where is your plugin placed? Maybe IDEA cannot find
it at all

>

>

I've tried placing it in ~/.IntelliJIdea/config/plugins and in

%IDEA_HOME%/plugins while adjusting the IDEA_PLUGINS_PATH environmental
variable. No dice.
>

I guess my question amounts to this: what do I need to do to get a VCS

plugin that worked in 4.5.x to work in Irida?
>

Thanks.



0

Yes, I've been compiling with Irida. I found the following stacktrace in the IDEA log file:

2004-11-04 12:57:53,830 INFO - llij.ide.plugins.PluginManager - Cannot load C:\idea-eap\plugins\MksIntegration\lib\plugin.xml
java.util.zip.ZipException: error in opening zip file


at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:112) at java.util.zip.ZipFile.(ZipFile.java:128) at com.intellij.ide.plugins.h.b(h.java:258) at com.intellij.ide.plugins.h.a(h.java:218) at com.intellij.ide.plugins.h.a(h.java:152) at com.intellij.ide.plugins.h.d(h.java:245) at com.intellij.ide.plugins.h.c(h.java:37) at com.intellij.openapi.application.impl.ApplicationImpl.k(ApplicationImpl.java:262) at com.intellij.openapi.application.impl.ApplicationImpl.(ApplicationImpl.java:395) at com.intellij.openapi.application.ex.ApplicationManagerEx.createApplication(ApplicationManagerEx.java:1) at com.intellij.idea.d.]]>(d.java:4)
at com.intellij.idea.Main$2.run(Main$2.java:2)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)


The plugin.xml file is in the MksIntegration\lib directory with the plugin jar MksIntegration.jar and the MKS library mkscmapi.jar. The xml file and MKS library are also in MksIntegration.jar. When the plugin.xml file is removed from the filesystem, no stacktrace is logged, but the plugin isn't loaded, either.

0

Eric Sheffer wrote:

Yes, I've been compiling with Irida. I found the following stacktrace in the IDEA log file:

2004-11-04 12:57:53,830 INFO - llij.ide.plugins.PluginManager - Cannot load C:\idea-eap\plugins\MksIntegration\lib\plugin.xml
java.util.zip.ZipException: error in opening zip file


Looks like one of the jar/zip files located in the plugin lib folder is
corrupted or there's no enough credentials to read one.

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

0

Could you try do not zip plugin files?
Of course IDEA doesn't load plugin without plugin.xml becouse it's not a
plugin for IDEA.

The plugin.xml file is in the MksIntegration\lib directory with the plugin

jar MksIntegration.jar
BTW plugin.xml has to be in the META-INF directory, not in the lib.

Try to bundle your plugin like this:
-plugin-directory
--META-INF
---plugin.xml
--lib
---plugin-libs
--classes
---plugin-classes
--
Olesya Smirnova
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

"Eric Sheffer" <no_mail@jetbrains.com> wrote in message
news:2668493.1099593267439.JavaMail.itn@is.intellij.net...

Yes, I've been compiling with Irida. I found the following stacktrace in

the IDEA log file:
>

2004-11-04 12:57:53,830 INFO -

llij.ide.plugins.PluginManager - Cannot load
C:\idea-eap\plugins\MksIntegration\lib\plugin.xml

java.util.zip.ZipException: error in opening zip file

>
>

at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.zip.ZipFile.<init>(ZipFile.java:128)
at com.intellij.ide.plugins.h.b(h.java:258)
at com.intellij.ide.plugins.h.a(h.java:218)
at com.intellij.ide.plugins.h.a(h.java:152)
at com.intellij.ide.plugins.h.d(h.java:245)
at com.intellij.ide.plugins.h.c(h.java:37)
at

com.intellij.openapi.application.impl.ApplicationImpl.k(ApplicationImpl.java
:262)

at

com.intellij.openapi.application.impl.ApplicationImpl.]]>(ApplicationImpl
.java:395)

at

com.intellij.openapi.application.ex.ApplicationManagerEx.createApplication(A
pplicationManagerEx.java:1)

at com.intellij.idea.d.<init>(d.java:4)
at com.intellij.idea.Main$2.run(Main$2.java:2)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
at

java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:201)

at

java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:151)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

>
>

The plugin.xml file is in the MksIntegration\lib directory with the plugin

jar MksIntegration.jar and the MKS library mkscmapi.jar. The xml file and
MKS library are also in MksIntegration.jar. When the plugin.xml file is
removed from the filesystem, no stacktrace is logged, but the plugin isn't
loaded, either.
>



0

Olesya wrote:


Try to bundle your plugin like this:
-plugin-directory
--META-INF
---plugin.xml
--lib
---plugin-libs
--classes
---plugin-classes

>

Hmm, while that makes sense, it used to work pre-Irida.

Thanks.

0

Please sign in to leave a comment.