Getting the following error when trying to format a Rust file:
[Error - 9:15:59 AM] Request textDocument/formatting failed.
Message: Failed to spawn cd "/Users/<my_username>/documents/repo/repo/backend" && "rustfmt"
Code: -32603
The issue is in how the path in the cd
command is constructed. It should be "/Users/<my_username>/documents/repo/backend"
.
This works as expected in VSCode.