Referenced Java class file locations in the Run output window do not properly resolve to the specified line/column
When a Maven command is run via the Maven tool and the output contains a reference to a class file with row and column info included, the clickable link generated for this class does not properly move the cursor to the line and column specified when clicked. Instead, it always moves the cursor to row 1, column 1.
Example:
Given the following output in the Run window:
[WARNING] /Users/me/IdeaProjects/some-project/src/test/java/org/example/SomeClass.java:[49,50] found raw type: java.util.LinkedHashMap
the link that is created to navigate to SomeClass.java does not follow the "[49,50]" row/column specification, which should, when the text is clicked, move the user's cursor to line 49, column 50 of SomeClass.java.
This behavior has changed within the last few updates for me, as it used to navigate successfully to the correct row and column of the class.
Is this working for anyone else?
Please sign in to leave a comment.
What is the version of IntelliJ IDEA?
A similar problem has been fixed 2 years ago: https://youtrack.jetbrains.com/issue/IDEA-220999
IntelliJ IDEA 2021.2.3 (Ultimate Edition)
Build #IU-212.5457.46, built on October 12, 2021
Runtime version: 11.0.12+7-b1504.40 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.0.1
Jenkins Plugin 0.13.13-2021.2
GC: G1 Young Generation, G1 Old Generation
Memory: 8000M
Cores: 16
Non-Bundled Plugins: org.jetbrains.plugins.go-template (212.5457.62), com.intellij.guice (212.5080.8), au.com.glassechidna.luanalysis (1.3.0), PlantUML integration (5.7.1), PMD-IDEA (1.7.0), Jenkins Control Plugin (0.13.13-2021.2), Pythonid (212.5457.59), org.jetbrains.kotlin (212-1.5.31-release-546-IJ4638.7), org.jetbrains.plugins.go (212.5457.20), dev.nocalhost.nocalhost-intellij-plugin (0.6.2-212)
Kotlin: 212-1.5.31-release-546-IJ4638.7
Looking at it again, it actually is working when the format is `<class>:<line>` but not when the format is `<class>:[<line>,<column>]`. Maybe that format isn't supported?
Thank you for reporting. I confirm such an issue. Created an issue here: https://youtrack.jetbrains.com/issue/IDEA-282364 as I did not find similar reports in YouTrack. Please vote and follow it for updates.
Thanks, Andrey! I just want to make sure the row/column linking feature was actually implemented in IDEA - I could be misremembering and misattributing it to row-based linking.