Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in IntelliJ IDEA 9 #33

Closed
GoogleCodeExporter opened this issue Mar 30, 2015 · 2 comments
Closed

Exception in IntelliJ IDEA 9 #33

GoogleCodeExporter opened this issue Mar 30, 2015 · 2 comments
Labels

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Install IntelliJ IDEA 9 (beta or EAP are available at this point)
2. Go to a Wicket page
3. Try to auto-complete something

What is the expected output? What do you see instead?
I expect to get some auto-completion results. I get an exception instead.

What version of the product are you using? On what operating system?
IntelliJ IDEA IU-90.154, WicketForge 0.5.6

Please provide any additional information below.
The exception I got was:
Extension 'class wicketforge.completion.HtmlCompletionContributor' should
be instance of 'class
com.intellij.codeInsight.completion.CompletionContributorEP'
com.intellij.openapi.extensions.ExtensionException
    at
com.intellij.openapi.extensions.impl.ExtensionPointImpl.getExtensions(ExtensionP
ointImpl.java:165)
    at
com.intellij.openapi.util.KeyedExtensionCollector.buildExtensions(KeyedExtension
Collector.java:113)
    at
com.intellij.codeInsight.completion.CompletionContributor$MyExtensionPointManage
r.buildExtensions(CompletionContributor.java:245)
    at
com.intellij.codeInsight.completion.CompletionContributor$MyExtensionPointManage
r.buildExtensions(CompletionContributor.java:230)
    at
com.intellij.openapi.util.KeyedExtensionCollector.forKey(KeyedExtensionCollector
.java:91)
    at
com.intellij.codeInsight.completion.CompletionContributor.forLanguage(Completion
Contributor.java:227)
    at
com.intellij.codeInsight.completion.CodeCompletionHandlerBase$2.run(CodeCompleti
onHandlerBase.java:10)
    at com.intellij.openapi.application.RunResult.run(RunResult.java:37)
    at
com.intellij.openapi.command.WriteCommandAction$2$1.run(WriteCommandAction.java:
121)
    at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(Application
Impl.java:73)
    at
com.intellij.openapi.command.WriteCommandAction$2.run(WriteCommandAction.java:11
9)
    at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandPro
cessorImpl.java:3)
    at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandPro
cessorImpl.java:57)
    at
com.intellij.openapi.command.WriteCommandAction.performWriteCommandAction(WriteC
ommandAction.java:117)
    at
com.intellij.openapi.command.WriteCommandAction.access$000(WriteCommandAction.ja
va:33)
    at
com.intellij.openapi.command.WriteCommandAction$1.run(WriteCommandAction.java:72
)
    at
com.intellij.openapi.command.WriteCommandAction.execute(WriteCommandAction.java:
77)
    at
com.intellij.codeInsight.completion.CodeCompletionHandlerBase.invokeCompletion(C
odeCompletionHandlerBase.java:217)
    at
com.intellij.codeInsight.completion.CodeCompletionHandlerBase.invoke(CodeComplet
ionHandlerBase.java:60)
    at
com.intellij.codeInsight.completion.actions.BaseCodeCompletionAction.actionPerfo
rmedImpl(BaseCodeCompletionAction.java:8)
    at
com.intellij.codeInsight.completion.actions.CodeCompletionAction.actionPerformed
Impl(CodeCompletionAction.java:2)
    at
com.intellij.codeInsight.actions.CodeInsightAction.actionPerformed(CodeInsightAc
tion.java:40)
    at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEve
ntDispatcher.java:2)
    at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEvent
Dispatcher.java:231)
    at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.j
ava:57)
    at
com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEv
entDispatcher.java:79)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:229)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:198)
    at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269
)
    at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java: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 andygoossens on 17 Nov 2009 at 2:47

@GoogleCodeExporter
Copy link
Author

(I could have sworn that I already attached this patch before, but my mind must 
have
tricked me.)

I ported WicketForge to IntelliJ 9. The patch fixes this ticket, and more:
* Makes completion work (had to change return type; and had to mention the 
language
in plugin.xml)
* Gave Inspections another "extends" class
* Removed deprecated warnings
* Had to rewrite Actions

Porting was not too difficult, with the exception of the Actions. JetBrains 
modified
the code of the Action parent class in a way that made showing a dialog box
difficult. Now I am inheriting from a different class and I had to search a bit 
what
should have been put in the new methods.

With my patch, the code depends on IDEA build 92.24 or later. (This is the EAP 
build
right after the IDEA 9 beta.)

A colleague and myself tested this patch and we could not find any regressions
compared to the version for IntelliJ 8.

Feel free to use the patch, or bits from it as you see fit.

Original comment by andygoossens on 2 Dec 2009 at 2:08

  • Added labels: ****
  • Removed labels: ****

Attachments:

@GoogleCodeExporter
Copy link
Author

Thanks again for the patch.  It's applied and WicketForge 0.6.0 is now 
available for
IDEA 9 users.  

Original comment by nheudec...@gmail.com on 11 Dec 2009 at 4:54

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants