GWT plugin with IDEA 6.0 - fails to inject javascript into native methods

When i am opening a class with native javascript methods i get the following exception. Perhaps the way to inject language in a place changed.

com.intellij.psi.InjectedLanguagePlaces.addPlace(Lcom/intellij/lang/Language;Lcom/intellij/openapi/util/TextRange;)V
java.lang.NoSuchMethodError: com.intellij.psi.InjectedLanguagePlaces.addPlace(Lcom/intellij/lang/Language;Lcom/intellij/openapi/util/TextRange;)V
at com.intellij.gwt.jsinject.JsInjector.getLanguagesToInject(JsInjector.java:42)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil$InjectedPsiProvider.b(InjectedLanguageUtil.java:29)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil$InjectedPsiProvider.compute(InjectedLanguageUtil.java:7)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.getInjectedPsiFiles(InjectedLanguageUtil.java:169)
at com.intellij.psi.impl.source.tree.PsiCommentImpl.getInjectedPsi(PsiCommentImpl.java:3)
at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.getEditorForInjectedLanguage(InjectedLanguageUtil.java:189)
at com.intellij.codeInsight.navigation.CtrlMouseHandler$5.mouseMoved(CtrlMouseHandler.java:5)
at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:72)
at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:20)
at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:51)
at $Proxy8.mouseMoved(Unknown Source)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseMotionListener.mouseMoved(EditorImpl.java:24)
at java.awt.Component.processMouseMotionEvent(Component.java:5533)
at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3144)
at java.awt.Component.processEvent(Component.java:5257)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3905)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:103)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:125)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

1 comment

Hello jay,

Please ensure that you don't have an obsolete version of the GWT plugin somewhere
on your system.

j> When i am opening a class with native javascript methods i get the
j> following exception. Perhaps the way to inject language in a place
j> changed.
j>
j> com.intellij.psi.InjectedLanguagePlaces.addPlace(Lcom/intellij/lang/L
j> anguage;Lcom/intellij/openapi/util/TextRange;)V
j> java.lang.NoSuchMethodError:
j> com.intellij.psi.InjectedLanguagePlaces.addPlace(Lcom/intellij/lang/L
j> anguage;Lcom/intellij/openapi/util/TextRange;)V

--
Dmitry Jemerov
Software Developer
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.