Open KodrAus opened 3 days ago
Sounds at least like an interesting build variant. Care to make a PR?
Rust/Rust.sublime-build
(The "real" fix(es) require sublimehq/sublime_text#1430 and sublimehq/sublime_text#938.)
Indeed, it would be acceptible as a variant only but I can see its uses.
Expected behavior
rustc
andcargo
support a--message-format
argument that can output errors in a more compact format than the default multi-line human-readable one. Here's an example of how a--message-format short
error looks:This format is nicely compatible with the build system capture group ordering. When matched with a regex:
it can report errors in the editor like so:
Actual behavior
Compared to the original format, we get a less useful error in the editor, but a more useful error in the build output:
I personally prefer the
--message-format short
version, but I don't think it's universally better if you're not already familiar with Rust to interpret its errors. I thought I'd open up an issue for it just to demonstrate how it could be different and see if that's preferable to anyone else.Steps to reproduce