Skip to content

Conversation

@aDotInTheVoid
Copy link
Member

This mean if you misconfigure to

{
    "rust-analyzer.rustfmt.overrideCommand": [
        "./nonono"
    ]
}

The error message is

[Error - 17:54:33] Request textDocument/formatting failed.
  Message: Failed to spawn "./nonono"
  Code: -32603 

instead of

[Error - 17:56:12] Request textDocument/formatting failed.
  Message: No such file or directory (os error 2)
  Code: -32603 

I'm not sure how to test this, or if it needs a test.

@jonas-schievink
Copy link
Contributor

Thanks!

bors r+

@bors
Copy link
Contributor

bors bot commented Sep 24, 2021

@bors bors bot merged commit 8b08666 into rust-lang:master Sep 24, 2021
@lnicola
Copy link
Member

lnicola commented Sep 24, 2021

changelog fix (first contribution) set error context when spawning rustfmt fails

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.

3 participants