I also would like to report the same crash mentioned in the previous post. For me IH always crashes when I hover mouse pointer over "@Override" annotation placed before implemented from interface method. Such annotation is inappropriate for implemented methods and IDEA complains about it. And that somehow result in IH crashes.
Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent$1@d6af03,notifier=null,catchExceptions=false,when=1232643924515] on sun.awt.windows.WToolkit@7c9586
java.lang.NullPointerException
at com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent.findChildIdentifier(IdentifierHighlighterEditorComponent.java:293)
at com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent.findChildIdentifier(IdentifierHighlighterEditorComponent.java:302)
at com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent.findChildIdentifier(IdentifierHighlighterEditorComponent.java:302)
at com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent.findChildIdentifier(IdentifierHighlighterEditorComponent.java:302)
at com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent.findChildIdentifier(IdentifierHighlighterEditorComponent.java:302)
at com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent.findChildIdentifier(IdentifierHighlighterEditorComponent.java:302)
at com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent.handleCaretPositionChanged(IdentifierHighlighterEditorComponent.java:189)
at com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent$1.run(IdentifierHighlighterEditorComponent.java:74)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:35)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:99)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:217)
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)
Identifier Highlighter interferes with the context menu in the editor window of IntelliJ. I.e. when I have the plugin installed, I don't get a context menu anymore. Not even when I disable the plugin via it's own global config setting. I'm using IntelliJ IDEA 8.1 (Build 9732) and the latest version of Identifier Highlighter (3.47).
I just tried your fantastic IDEA plugin and I have a little suggestion:
If the cursor is placed on the right side of a class, method or attribute name the subject should be highlighted also. This would be extremely useful on writing new expressions.
Example:
int i = 1;
// other code
int j = 42 * i<CURSOR>
According to my suggestion the 'i' should be highlighted in the example above (currently it is not).
There's a problem with the newest IntelliJ build and Identifier Highlighter.
final FieldSet visitingFieldSet = new FieldSet();
visitingFieldSet.setLayout(new FormLayout());
visitingFieldSet.setCollapsible(true);
visitingFieldSet.setHeading(constants.gui_reportContactAbroad_visitingFieldSet());
In the code above, if the cursor is in the middle of the visitingFieldSet-identifier in the last line, only occurrence on the first line is highlighted. The two lines in between is not rendered in any way. I'm sure the plugin usually highlights all occurencies?
In IntelliJ9, in settings, under editor, I enabled "Highlight usages of element at caret", but in the text itself the usages aren't highlight (they are in the scrollbar, but I 'd like to get them highlighted in the text too). Can this be done?
com.intellij.diagnostic.PluginException: Cannot init component state [Plugin: Identifier Highlighter] at com.intellij.ide.plugins.PluginManagerCore.createPluginException(PluginManagerCore.java:403) at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:12) at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:69) at com.intellij.diagnostic.PluginException.logPluginError(PluginException.java:86) at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:109) at com.intellij.configurationStore.ComponentStoreWithExtraComponents.initComponent(ComponentStoreWithExtraComponents.kt:49) at com.intellij.openapi.components.impl.PlatformComponentManagerImpl.initializeComponent(PlatformComponentManagerImpl.java:44) at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:501) at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:126) at com.intellij.openapi.application.impl.ApplicationImpl.lambda$load$7(ApplicationImpl.java:413) at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:169) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:591) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:537) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:156) at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:413) at com.intellij.idea.IdeaApplication.lambda$executeInitAppInEdt$5(IdeaApplication.java:149) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:377) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) Caused by: com.intellij.configurationStore.UnknownMacroException: Unknown macro: $OPTIONS$ in storage file spec: $OPTIONS$/IdentifierHighlighter.xml at com.intellij.configurationStore.StateStorageManagerImpl.expandMacros(StateStorageManagerImpl.kt:404) at com.intellij.configurationStore.ApplicationStorageManager.expandMacros(ApplicationStoreImpl.kt:95) at com.intellij.configurationStore.StateStorageManagerImpl.createStateStorage(StateStorageManagerImpl.kt:251) at com.intellij.configurationStore.StateStorageManagerImpl.getOrCreateStorage(StateStorageManagerImpl.kt:165) at com.intellij.configurationStore.StateStorageManagerImpl.getOrCreateStorage$default(StateStorageManagerImpl.kt:159) at com.intellij.configurationStore.StateStorageManagerImpl.getStateStorage(StateStorageManagerImpl.kt:137) at com.intellij.configurationStore.ComponentStoreImpl.doInitComponent(ComponentStoreImpl.kt:386) at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:355) at com.intellij.configurationStore.ComponentStoreImpl.initPersistenceStateComponent(ComponentStoreImpl.kt:122) at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:97) ... 26 more
16 Comments
Anonymous
I also would like to report the same crash mentioned in the previous post. For me IH always crashes when I hover mouse pointer over "@Override" annotation placed before implemented from interface method. Such annotation is inappropriate for implemented methods and IDEA complains about it. And that somehow result in IH crashes.
Anonymous
I meant crash with this stack trace
Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent$1@d6af03,notifier=null,catchExceptions=false,when=1232643924515] on sun.awt.windows.WToolkit@7c9586
java.lang.NullPointerException
at com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent.findChildIdentifier(IdentifierHighlighterEditorComponent.java:293)
at com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent.findChildIdentifier(IdentifierHighlighterEditorComponent.java:302)
at com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent.findChildIdentifier(IdentifierHighlighterEditorComponent.java:302)
at com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent.findChildIdentifier(IdentifierHighlighterEditorComponent.java:302)
at com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent.findChildIdentifier(IdentifierHighlighterEditorComponent.java:302)
at com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent.findChildIdentifier(IdentifierHighlighterEditorComponent.java:302)
at com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent.handleCaretPositionChanged(IdentifierHighlighterEditorComponent.java:189)
at com.lgc.identifierhighlighter.IdentifierHighlighterEditorComponent$1.run(IdentifierHighlighterEditorComponent.java:74)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:35)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:99)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:217)
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)
Anonymous
This bug will be fixed in the next version!
Anonymous
Identifier Highlighter interferes with the context menu in the editor window of IntelliJ. I.e. when I have the plugin installed, I don't get a context menu anymore. Not even when I disable the plugin via it's own global config setting. I'm using IntelliJ IDEA 8.1 (Build 9732) and the latest version of Identifier Highlighter (3.47).
The idea.log shows the following stacktrace:
Anonymous
I just tried your fantastic IDEA plugin and I have a little suggestion:
If the cursor is placed on the right side of a class, method or attribute name the subject should be highlighted also. This would be extremely useful on writing new expressions.
Example:
int i = 1;
// other code
int j = 42 * i<CURSOR>
According to my suggestion the 'i' should be highlighted in the example above (currently it is not).
Thanks for this great work!
Oliver
Jesper Thuun-Petersen
There's a problem with the newest IntelliJ build and Identifier Highlighter.
final FieldSet visitingFieldSet = new FieldSet();
visitingFieldSet.setLayout(new FormLayout());
visitingFieldSet.setCollapsible(true);
visitingFieldSet.setHeading(constants.gui_reportContactAbroad_visitingFieldSet());
In the code above, if the cursor is in the middle of the visitingFieldSet-identifier in the last line, only occurrence on the first line is highlighted. The two lines in between is not rendered in any way. I'm sure the plugin usually highlights all occurencies?
Anonymous
The latest release 3.62 of the Identifier Highlighter does not work properly with IntelliJ Idea 7.0.2.
Not all instances of an identifier get highlighted. Only the declaration and one selected usage are highlighted.
Anonymous
The latest release 3.62 of the Identifier Highlighter does not work properly with IntelliJ Idea 8.0.4. too. The same problem appears.
Anonymous
Identifying all occurrences it's meanly the only interesting feature of this plug-in...
Is there any way to make it working on 8.1.4 ?
Anonymous
Finally, I could make the version 7160 working on IntelliJ 8.1.4.
Just download the zip from http://plugins.intellij.net/plugin/?id=1236 and I replace the plugin folder in <user_home>.IntelliJIdea80/config/plugins/
Anonymous
It seems that the version 3.62 [latest one] it is not working in IDEA9 beta. Any tips ?
Jesper Thuun-Petersen
The plugin is no longer necessary in IntelliJ 9, as highlighting is now part of the core IDE.
Anonymous
In IntelliJ9, in settings, under editor, I enabled "Highlight usages of element at caret", but in the text itself the usages aren't highlight (they are in the scrollbar, but I 'd like to get them highlighted in the text too). Can this be done?
Anonymous
This plugin is much better than Idea OOB feature. It has much faster response, configurable coloring.
Hope this project won't die...
Alexey Zhukov
Please, update the plugin to make it work in Nika without exceptions! (idea 11)
STEPHEN INGRAM
Hi Shawn,
Am getting this exception, which is making Identifier Highlighter unable to save it's settings.
Specifically this:
Caused by: com.intellij.configurationStore.UnknownMacroException: Unknown macro: $OPTIONS$ in storage file spec: $OPTIONS$/IdentifierHighlighter.xml
Maybe I missed some settings for the plugin?
cheers!
steve
com.intellij.diagnostic.PluginException: Cannot init component state [Plugin: Identifier Highlighter]
at com.intellij.ide.plugins.PluginManagerCore.createPluginException(PluginManagerCore.java:403)
at com.intellij.diagnostic.PluginProblemReporterImpl.createPluginExceptionByClass(PluginProblemReporterImpl.java:12)
at com.intellij.diagnostic.PluginException.createByClass(PluginException.java:69)
at com.intellij.diagnostic.PluginException.logPluginError(PluginException.java:86)
at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:109)
at com.intellij.configurationStore.ComponentStoreWithExtraComponents.initComponent(ComponentStoreWithExtraComponents.kt:49)
at com.intellij.openapi.components.impl.PlatformComponentManagerImpl.initializeComponent(PlatformComponentManagerImpl.java:44)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:501)
at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:126)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$load$7(ApplicationImpl.java:413)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:169)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:591)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:537)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:156)
at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:413)
at com.intellij.idea.IdeaApplication.lambda$executeInitAppInEdt$5(IdeaApplication.java:149)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:377)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: com.intellij.configurationStore.UnknownMacroException: Unknown macro: $OPTIONS$ in storage file spec: $OPTIONS$/IdentifierHighlighter.xml
at com.intellij.configurationStore.StateStorageManagerImpl.expandMacros(StateStorageManagerImpl.kt:404)
at com.intellij.configurationStore.ApplicationStorageManager.expandMacros(ApplicationStoreImpl.kt:95)
at com.intellij.configurationStore.StateStorageManagerImpl.createStateStorage(StateStorageManagerImpl.kt:251)
at com.intellij.configurationStore.StateStorageManagerImpl.getOrCreateStorage(StateStorageManagerImpl.kt:165)
at com.intellij.configurationStore.StateStorageManagerImpl.getOrCreateStorage$default(StateStorageManagerImpl.kt:159)
at com.intellij.configurationStore.StateStorageManagerImpl.getStateStorage(StateStorageManagerImpl.kt:137)
at com.intellij.configurationStore.ComponentStoreImpl.doInitComponent(ComponentStoreImpl.kt:386)
at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:355)
at com.intellij.configurationStore.ComponentStoreImpl.initPersistenceStateComponent(ComponentStoreImpl.kt:122)
at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:97)
... 26 more
```