You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default this format is used: dir/file.ext(line:col)
From my experience, this default format style does not work in vs-code on windows (cannot ctrl-click to jump to location).
Rustc uses this format dir/file.ext:line:col example src/main.odin:10:25, which is almost like ErrorPosStyle_Unix but without trailing :.
Whats the reason for having ErrorPosStyle_Default as default? And is it possible to have rust-like format or at least make ErrorPosStyle_Unix the default for all targets in odin releases?
My personal opinion is that rust-like location format (don't know if there's a standard name for it) should be used in all cases to promote consistency and work with vs-code.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Here's what current implementation looks like (defined in src/build_settings.cpp):
By default this format is used:
dir/file.ext(line:col)
From my experience, this default format style does not work in vs-code on windows (cannot ctrl-click to jump to location).
Rustc uses this format
dir/file.ext:line:col
examplesrc/main.odin:10:25
, which is almost likeErrorPosStyle_Unix
but without trailing:
.Whats the reason for having
ErrorPosStyle_Default
as default? And is it possible to have rust-like format or at least makeErrorPosStyle_Unix
the default for all targets in odin releases?My personal opinion is that rust-like location format (don't know if there's a standard name for it) should be used in all cases to promote consistency and work with vs-code.
Beta Was this translation helpful? Give feedback.
All reactions