vlang / intellij-v

MIT License
33 stars 5 forks source link

Introduce links in console when program panic's and shows backtrace #12

Open Krotki opened 3 weeks ago

Krotki commented 3 weeks ago

Describe the feature

When process is run and panic happens something like flowing lines are produced:

V panic: Panic!
v hash: 1085f45
/tmp/v_1000/main.01J6DAPNKY9DCQNA52WXKKJ7KG.tmp.c:7539: at _v_panic: Backtrace
/tmp/v_1000/main.01J6DAPNKY9DCQNA52WXKKJ7KG.tmp.c:16106: by main__main
/tmp/v_1000/main.01J6DAPNKY9DCQNA52WXKKJ7KG.tmp.c:16163: by main

There could be console filter recognizing panic and adding links to files from the project. When link is clicked it should open/focus on a given file and move cursor to a given line (and possibly column, but this information is missing in backtrace).

The problem as seen above is with middle representation in C, but potentially can be fixed by compilation flags.

Use Case

Quickly navigate to places from backtrace to inspect code.

Other Information

No response