Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd support for JSON error format and new (RUST_NEW_ERROR_FORMAT=true) error style #159
Conversation
trixnz
referenced this pull request
Aug 2, 2016
Open
Possible Rust error format updates and IDE support #146
trixnz
added some commits
Aug 3, 2016
trixnz
changed the title
Add support for JSON error format via the `useJsonErrors` config flag
Add support for JSON error format and new (RUST_NEW_ERROR_FORMAT=true) error style
Aug 3, 2016
This comment has been minimized.
This comment has been minimized.
|
This should now be good to go. It adds |
This comment has been minimized.
This comment has been minimized.
|
This is awesome |
saviorisdead
merged commit de7be5d
into
saviorisdead:master
Aug 5, 2016
1 check passed
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
jonathandturner
referenced this pull request
Aug 5, 2016
Merged
Turn on new errors and json mode #35401
bors
added a commit
to rust-lang/rust
that referenced
this pull request
Aug 9, 2016
bors
added a commit
to rust-lang/rust
that referenced
this pull request
Aug 9, 2016
This comment has been minimized.
This comment has been minimized.
isg
commented on b5d5517
Aug 10, 2016
|
Thank you for doing this! Much appreciated :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
trixnz commentedAug 2, 2016
•
edited
The Cargo output is somewhat preserved by manually emitting Rust formatted errors, although it is not a complete solution. It does, however, provide a much better output than a giant JSON blob.
As per the discussion in #146, this uses
RUSTFLAGSwhile theerror-formatfeature is unstable. Hopefullyerror-formatmakes its way into Cargo so we can issue JSON builds from the IDE withoutRUSTFLAGSas this currently invalidates the internal fingerprint inrustc.I've also refactored the error parsing to be a little more generic so future additions (like parsing the new Rust error format) can be added trivially.
_Edit:_ Went ahead and added support for the new error format (
RUST_NEW_ERROR_FORMAT=true) that is set to become the new default in the future.