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
{{ message }}
This repository was archived by the owner on Aug 7, 2023. It is now read-only.
Fixed the way json errors are requested from cargo & rustc
Closes#69
Also fixed the way envinronment variables were passed to BufferedProcess --
according to [the documentation](https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback)
(*`BufferedProcess` is actually a wrapper above node's exec*)
they should be passed in an `env` subobject of `options`, but they were passed as raw in options object.
Adding to these environment variables accordingly set `RUSTFLAGS` variable, when JSON errors are available, makes cargo tell compiler to
output JSON errors.
When using `rustc` simply providing `--error-format=json` is enough to make compiler do what we want.
0 commit comments