- changed status to resolved
Inconsistent Navigate to Related Symbol
Issue #833
resolved
When I try navigating to related symbol from a .cls file that has test coverage, I get to the corresponding .cls-meta.xml instead of the corresponding test class.
When navigating from most lightning components (all of which have multiple files in the bundle), nothing happens, though some lightning components do pull up the expected menu containing the bundle components.
See attached for logs which include generating offline symbols, refreshing the cache, and an attempt to navigate from a .cls that is covered and .cmp which has a .js in the bundle.
I see this stack trace if that helps -
2017-12-21 14:52:02,991 [ 170966] ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 2017.3.1 Build #IU-173.3942.27
2017-12-21 14:52:02,991 [ 170966] ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_152-release
2017-12-21 14:52:02,991 [ 170966] ERROR - llij.ide.plugins.PluginManager - VM: OpenJDK 64-Bit Server VM
2017-12-21 14:52:02,991 [ 170966] ERROR - llij.ide.plugins.PluginManager - Vendor: JetBrains s.r.o
2017-12-21 14:52:02,991 [ 170966] ERROR - llij.ide.plugins.PluginManager - OS: Mac OS X
2017-12-21 14:52:02,991 [ 170966] ERROR - llij.ide.plugins.PluginManager - Last Action: GotoRelated
2017-12-21 14:52:04,917 [ 172892] INFO - j.ide.plugins.RepositoryHelper - using cached plugin list (updated at 12/21/17, 2:32 PM)
2017-12-21 14:53:08,838 [ 236813] WARN - beddedMarkupFileNsInfoProvider - No XSD found for key IlluminatedCloud.DEFAULT_VISUALFORCE_NAMESPACES, module SMP, namespace c
2017-12-21 14:53:08,950 [ 236925] ERROR - llij.ide.plugins.PluginManager - Argument for @NotNull parameter 'element' of com/intellij/navigation/GotoRelatedItem.<init> must not be null
java.lang.IllegalArgumentException: Argument for @NotNull parameter 'element' of com/intellij/navigation/GotoRelatedItem.<init> must not be null
at com.intellij.navigation.GotoRelatedItem.$$$reportNull$$$0(GotoRelatedItem.java)
at com.intellij.navigation.GotoRelatedItem.<init>(GotoRelatedItem.java)
at com.illuminatedcloud.intellij.navigation.IlluminatedCloudGoToRelatedProvider.addLightningRelationships(SourceFile:361)
at com.illuminatedcloud.intellij.navigation.IlluminatedCloudGoToRelatedProvider.getItems(SourceFile:73)
at com.intellij.codeInsight.navigation.NavigationUtil.collectRelatedItems(NavigationUtil.java:492)
at com.intellij.ide.actions.GotoRelatedSymbolAction.actionPerformed(GotoRelatedSymbolAction.java:56)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:220)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:237)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.a(ActionMenuItem.java:321)
at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:911)
at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:136)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:311)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.a(ActionMenuItem.java:130)
at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:88)
at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:111)
at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:120)
at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:122)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:130)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:308)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at com.apple.laf.ScreenMenuItemCheckbox.itemStateChanged(ScreenMenuItemCheckbox.java:193)
at java.awt.CheckboxMenuItem.processItemEvent(CheckboxMenuItem.java:389)
at java.awt.CheckboxMenuItem.processEvent(CheckboxMenuItem.java:357)
at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:355)
at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:343)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:767)
at java.awt.EventQueue.access$500(EventQueue.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:715)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
at java.awt.EventQueue$4.run(EventQueue.java:737)
at java.awt.EventQueue$4.run(EventQueue.java:735)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.j(IdeEventQueue.java:822)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:650)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:366)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Comments (2)
-
repo owner -
Account Deleted Great - it looks a lot better and works as I expect! Thanks, Scott.
- Log in to comment
Prospective fix delivered in 2.0.0.3. Basically I fixed the NPE by being defensive. Let me know if you still see issues with Navigate to Related.