Suggestion: Make source locations (line and column positions) reported by the compiler clickable #1903
Replies: 1 comment
-
I've just discovered from reading the source code that this is actually configurable from the build script Line 991 in 4af8a64 Line 189 in 4af8a64 So I tried this:
But it didn't changed my format strings though. Not sure if I did something wrong or something is missing. I don't know if the build script were supposed to automatically guess that I'm on linux or not The point I bring into discussing here is if the unix format style is "universal enough" to work on all/major supported operating systems so it just becomes the default way to reference file:line:col source positions in error messages. |
Beta Was this translation helpful? Give feedback.
-
ATM, the compiler outputs warnings and errors relative to source locations with the given format:
I think the following format is what is generally used to get a clickable link from terminals and IDE's:
at least on Linux.
As I don't own a Mac nor a Windows, I can't really say what is actually portable between most platforms or even if there is a standard.
But that's how most compilers I've worked on use to output (gcc/clang/golang for example).
Hopefully this suggestion would be an easy change and a boost on productivity (compile, check errors, goto error cycle).
Beta Was this translation helpful? Give feedback.
All reactions