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

Issue #1260 open
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 (11)

  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(
        at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.a(
        at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.a(
        at com.intellij.openapi.command.impl.CoreCommandProcessor.a(
        at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(
        at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(
        at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(
        at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openEditor(
        at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openTextEditor(
        at com.intellij.execution.filters.FileHyperlinkInfoBase.navigate(FileHyperlinkInfoBase.kt:54)
        at com.intellij.execution.impl.EditorHyperlinkSupport.a(
        at com.intellij.execution.impl.EditorHyperlinkSupport$1.mouseClicked(
        at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.c(
        at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mouseReleased(
        at java.awt.Component.processMouseEvent(
        at javax.swing.JComponent.processMouseEvent(
        at java.awt.Component.processEvent(
        at java.awt.Container.processEvent(
        at java.awt.Component.dispatchEventImpl(
        at java.awt.Container.dispatchEventImpl(
        at java.awt.Component.dispatchEvent(
        at java.awt.LightweightDispatcher.retargetMouseEvent(
        at java.awt.LightweightDispatcher.processMouseEvent(
        at java.awt.LightweightDispatcher.dispatchEvent(
        at java.awt.Container.dispatchEventImpl(
        at java.awt.Window.dispatchEventImpl(
        at java.awt.Component.dispatchEvent(
        at java.awt.EventQueue.dispatchEventImpl(
        at java.awt.EventQueue.access$500(
        at java.awt.EventQueue$
        at java.awt.EventQueue$
        at Method)
        at java.awt.EventQueue$
        at java.awt.EventQueue$
        at Method)
        at java.awt.EventQueue.dispatchEvent(
        at com.intellij.ide.IdeEventQueue.a(
        at com.intellij.ide.IdeEventQueue._dispatchEvent(
        at com.intellij.ide.IdeEventQueue.dispatchEvent(
        at java.awt.EventDispatchThread.pumpOneEventForFilters(
        at java.awt.EventDispatchThread.pumpEventsForFilter(
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(
        at java.awt.EventDispatchThread.pumpEvents(
        at java.awt.EventDispatchThread.pumpEvents(
    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. Log in to comment