nvim-dap icon indicating copy to clipboard operation
nvim-dap copied to clipboard

Enhance console's exception file name with highlighted color and ability goto the file

Open VisionaryAppDev opened this issue 2 years ago • 1 comments

Problem Statement

Hello everyone, I think it'd be great if the exception file name is highlighted as it'd be much easier to identify which file is causing the issue. Furthermore, if we could click on it to open the file directly and pointing the cusor to the line number, it'd save a lot of time.

Please check the below image showing the different between Intellij's console and current nvim-dap's console.

  • intellij IMG_20220928_135037_485

  • nvim-dap IMG_20220928_135039_465

Ideas or possible solutions

No response

VisionaryAppDev avatar Sep 28 '22 06:09 VisionaryAppDev

Furthermore, if we could click on it to open the file directly and pointing the cusor to the line number, it'd save a lot of time

The vim way to do that is to use gf or gF, see :help gf and :help gF. For java you may have to set the path option to something like this:

setlocal path=.,src/main/java/**,src/test/java/**,**/src/main/java/**,**/src/test/java/**

As for highlighting: nvim-dap core will stay language agnostic, so adding custom stacktrace highlighting is out-of-scope. I could imagine providing some way to intercept the output from a debug-adapter and process it instead.

mfussenegger avatar Sep 29 '22 10:09 mfussenegger