janotav / ali-idea-plugin

HP ALI support for Intellij IDEA
Apache License 2.0
8 stars 10 forks source link

pycharm support? #20

Closed Lawouach closed 10 years ago

Lawouach commented 10 years ago

Hi,

I'd be interested in using this plugin and I wondered if it could be made to support PyCharm?

Currently, when using the last binary (3.8.133.193) with PyCharm 3.1.1 community edition, I'm getting the following exception during PyCharm startup:

Plugin 'com.hp.alm.ali' failed to initialize and will be disabled.  Please restart PyCharm Community Edition.

java.lang.NoClassDefFoundError: com/intellij/ide/util/newProjectWizard/AbstractProjectWizard
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:270)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.loadClasses(ComponentManagerImpl.java:409)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.loadClasses(ComponentManagerImpl.java:398)
    at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentsRegistry.access$000(ComponentManagerImpl.java:384)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:107)
    at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:89)
    at com.intellij.openapi.components.impl.stores.ApplicationStoreImpl.load(ApplicationStoreImpl.java:87)
    at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:509)
    at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:150)
    at com.intellij.idea.MainImpl$1$1$1.run(MainImpl.java:47)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:697)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:524)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: java.lang.ClassNotFoundException: com.intellij.ide.util.newProjectWizard.AbstractProjectWizard PluginClassLoader[com.hp.alm.ali, 3.8.133.193]
    at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:68)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 28 more
janotav commented 10 years ago

Is the issue related to the latest update? Was the previous version working with PyCharm correctly or are simply trying to start using it? Just to better understand where we stand now...

Lawouach commented 10 years ago

Sorry for the lack of explanation. It's the first I tried that plugin so I cannot say if it used to work before that. I guess I could probably use Intellij and the PyCharm plugin, that'd probably work better but, I though I'd ask if you'd be willing to support the standalone PyCharm itself :p

janotav commented 10 years ago

No problem. I'll download PyCharm and if the plugin works I will simply mark it as PyCharm-compatible.

Lawouach commented 10 years ago

Thanks. If the plugin doesn't work, I'd be interested in knowing what would be required to make it work. Cheers.

janotav commented 10 years ago

As a workaround you may try to use the 3.8.129.239 build. PyCharm (the version I have just downloaded - 3.1.2.133.1229) seems to load with that version successfully.

In the meantime I'll try to figure out what is the proper way to handle this issue.

Lawouach commented 10 years ago

Thanks a lot for the tip. I will try :)

Lawouach commented 10 years ago

It works fine indeed with that build.

janotav commented 10 years ago

I have excluded the offending functionality from non-java IDEs. Once this is released, you should be able to install the plugin directly from the Jetbrains repo. Please keep in mind however that there's no day-to-day testing performed against PyCharm. That means that things may break occasionally and I'll try to fix them if reported...

Lawouach commented 10 years ago

Thanks a lot. I understand and I will report whenever I see a problem.