Skip to content

Conversation

@dozzman
Copy link

@dozzman dozzman commented Sep 5, 2021

When using rust-project.json to specify the project workspace, flychecks are disabled. It is not mentioned that they can be re-enabled by specifying a custom checking command using the checkOnSave.overrideCommand configuration. This additional section makes it clear that using rust-project.json disables flychecks and how to enable them either using cargo check (as an example) or (more likely) a custom command which emits json error messages.

Further information can be found at this forum thread:

https://users.rust-lang.org/t/rust-analyzer-doesnt-show-cargo-check-compilation-errors-warnings-when-using-rust-project-json/64412

Add information about how to configure compilation errors/checks when using rust-project.json.
@dozzman dozzman requested a review from bjorn3 September 5, 2021 19:31
@matklad
Copy link
Contributor

matklad commented Sep 6, 2021

bors r+

Thanks!

@lnicola
Copy link
Member

lnicola commented Sep 6, 2021

changelog fix (first contribution) document enabling flycheck with rust-project.json.

@bors
Copy link
Contributor

bors bot commented Sep 6, 2021

@bors bors bot merged commit f0b15e2 into rust-lang:master Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants