MediumOne / checkthread

Automatically exported from code.google.com/p/checkthread
0 stars 0 forks source link

Get error while running plugin in 8.1 EAP IDEA (build 9815) #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Error during dispatching of 
java.awt.event.MouseEvent[MOUSE_RELEASED,(848,74),absolute(844,70),button=1
,modifiers=Button1,clickCount=1] on frame0: 
com.intellij.openapi.roots.ModuleRootManager.getCompilerOutputPath()Lcom/in
tellij/openapi/vfs/VirtualFile;
java.lang.NoSuchMethodError: 
com.intellij.openapi.roots.ModuleRootManager.getCompilerOutputPath()Lcom/in
tellij/openapi/vfs/VirtualFile;
    at 
org.checkthread.plugin.intellij.CheckThreadRunner.init(CheckThreadRunner.ja
va:95)
    at 
org.checkthread.plugin.intellij.CheckThreadToggleActionSimple.setSelected(C
heckThreadToggleActionSimple.java:47)
    at 
com.intellij.openapi.actionSystem.ToggleAction.actionPerformed(ToggleAction
.java:39)
    at 
com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:61)
    at 
com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:89)
    at 
com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(Actio
nButton.java:23)
    at java.awt.Component.processEvent(Component.java:5981)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4583)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4413)
    at 
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
    at 
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
    at 
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2475)
    at java.awt.Component.dispatchEvent(Component.java:4413)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:35)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:223)
    at 
com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:217)
    at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.jav
a:269)
    at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:1
84)
    at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.jav
a:174)
    at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Original issue reported on code.google.com by den.or...@gmail.com on 21 Apr 2009 at 4:11

GoogleCodeExporter commented 8 years ago
Hello,

Thanks for reporting this. Are you running on a Mac?

It looks like the method ModuleRootManager.getCompilerOutputPath(...) doesn't 
exist
when running on Intellij with JDK 1.5 (e.g. Mac OSX). CheckThread requires 
running
intellij with JRE 1.6 or later. I know the mac doesn't have 1.6 yet - so this 
is an
intellij compatability bug. There is not much I can since I need that method in 
order
for the plugin to work.

Original comment by joe.jco...@gmail.com on 21 Apr 2009 at 11:43

GoogleCodeExporter commented 8 years ago
JDK 1.6.0_12, Win XP

Original comment by den.or...@gmail.com on 22 Apr 2009 at 12:08

GoogleCodeExporter commented 8 years ago
Fixed in checkthread intellj plugin version 1.0.9.1. 

The method, getCompilerOutputPath() was moved into a new class when upgrading to
Intellij 8, that causes the exception. It would have been nice if the Intellij 
team
deprecated the method first before removing it. The fix requires doing some
reflection to see which method we can call. This plugin will work on both 7 and 
8.

Original comment by joe.jco...@gmail.com on 29 Apr 2009 at 11:28