Analyze Stacktrace -> Click on hyperlinked code line -> Editor does not go to line

Issue #1260 resolved
Scott Posey created an issue

The editor opens the correct file but does not move the cursor to the line/position in line in the error message.

Comments (12)

  1. Scott Wells repo owner

    Scott, can you share an example of the stack trace line that's doing this? IC registers a number of patterns for scraping type/line/column info, but sometimes there's one that I haven't accommodated. Perhaps this falls into that category.

  2. Scott Posey reporter
    Class.ProposalFlightsClass.createOpportunityLineItemSchedules: line 24, column 1
    Trigger.ProductScheduleTriggerBulk: line 27, column 1
    
  3. Scott Posey reporter
    Class.AccountService.populateCurrentOwnerInfo: line 260, column 1
    Class.AccountService.processAccountOwnerChanges: line 156, column 1
    Class.AccountService.handleBeforeUpdate: line 78, column 1
    Class.AccountService.handleTrigger: line 12, column 1
    Trigger.Account: line 5, column 1
    
  4. Scott Wells repo owner

    Thanks. Yeah, those patterns should work...well, not sure about the trigger ones...I'd have to check, but the rest look straightforward enough. Anything in your idea.log when this happens indicating an error trying to resolve the exact position?

  5. Scott Posey reporter
    2019-03-22 11:55:58,323 [6447353]   INFO - agnostic.FrequentEventDetector - Too many events posted, #1. Event: java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=LaterInvocator.FlushQueue,notifier=null,catchExceptions=false,when=1553280958322] on sun.lwawt.macosx.LWCToolkit@27aa06b9 
    2019-03-22 12:02:13,380 [6822410]  ERROR - llij.ide.plugins.PluginManager - com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.getSelectedEditor()Lcom/intellij/openapi/fileEditor/FileEditor; 
    java.lang.NoSuchMethodError: com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.getSelectedEditor()Lcom/intellij/openapi/fileEditor/FileEditor;
        at com.illuminatedcloud.intellij.editor.TextEditorWrapper.navigateTo(TextEditorWrapper.java:71)
        at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.a(FileEditorManagerImpl.java:1142)
        at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.a(FileEditorManagerImpl.java:1120)
        at com.intellij.openapi.command.impl.CoreCommandProcessor.a(CoreCommandProcessor.java:149)
        at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:109)
        at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
        at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:85)
        at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openEditor(FileEditorManagerImpl.java:1111)
        at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openTextEditor(FileEditorManagerImpl.java:1173)
        at com.intellij.execution.filters.FileHyperlinkInfoBase.navigate(FileHyperlinkInfoBase.kt:54)
        at com.intellij.execution.impl.EditorHyperlinkSupport.a(EditorHyperlinkSupport.java:146)
        at com.intellij.execution.impl.EditorHyperlinkSupport$1.mouseClicked(EditorHyperlinkSupport.java:81)
        at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.c(EditorImpl.java:3522)
        at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mouseReleased(EditorImpl.java:3450)
        at java.awt.Component.processMouseEvent(Component.java:6541)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
        at java.awt.Component.processEvent(Component.java:6306)
        at java.awt.Container.processEvent(Container.java:2237)
        at java.awt.Component.dispatchEventImpl(Component.java:4897)
        at java.awt.Container.dispatchEventImpl(Container.java:2295)
        at java.awt.Component.dispatchEvent(Component.java:4719)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
        at java.awt.Container.dispatchEventImpl(Container.java:2281)
        at java.awt.Window.dispatchEventImpl(Window.java:2746)
        at java.awt.Component.dispatchEvent(Component.java:4719)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764)
        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.a(IdeEventQueue.java:822)
        at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:646)
        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)
    2019-03-22 12:02:13,382 [6822412]  ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 2017.3.5  Build #IU-173.4674.33 
    2019-03-22 12:02:13,382 [6822412]  ERROR - llij.ide.plugins.PluginManager - JDK: 1.8.0_152-release 
    2019-03-22 12:02:13,382 [6822412]  ERROR - llij.ide.plugins.PluginManager - VM: OpenJDK 64-Bit Server VM 
    2019-03-22 12:02:13,382 [6822412]  ERROR - llij.ide.plugins.PluginManager - Vendor: JetBrains s.r.o 
    2019-03-22 12:02:13,383 [6822413]  ERROR - llij.ide.plugins.PluginManager - OS: Mac OS X 
    2019-03-22 12:02:13,383 [6822413]  ERROR - llij.ide.plugins.PluginManager - Last Action: EditorCopy 
    
  6. Scott Wells repo owner

    Ah, that helps. You're using IntelliJ 2017.3.5. Please update to the latest. They've changed the plugin SDK quite a bit since then so IC's compiled use of the current plugin SDK is causing runtime errors for you. Let me know if you see the same issues after updating.

  7. Scott Wells repo owner

    Sorry...JetBrains changes the plugin SDK in incompatible ways from time to time, and given the distance between 2017.3.5 and current (2019.1 RC1 is out), there are quite a few breaking changes.

    In IC1 I maintained three distinct builds of the plugin for different major versions of the IDE, and it severely impacted my ability to take advantage of newer features in the base IDE. With IC2 I'm tracking pretty closely against the base IDE version and don't/can't guarantee compatibility with (considerably) older versions.

  8. Scott Posey reporter

    OK that worked, sorry for not checking that out first. The hyperlink to the trigger doesn't work, as you noted.

  9. Scott Wells repo owner
    • changed status to open

    Glad to hear. Let's keep this open so I can address hyperlinking to triggers properly as well.

  10. Scott Wells repo owner

    Issue tracker grooming. If this is still an issue, please feel free to reopen, ideally with a concrete reproduction scenario.

  11. Log in to comment