Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode: Format document not working #18430

Open
adanielnoel opened this issue Oct 28, 2024 · 1 comment
Open

VSCode: Format document not working #18430

adanielnoel opened this issue Oct 28, 2024 · 1 comment
Labels
C-bug Category: bug

Comments

@adanielnoel
Copy link

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 

I believe the issue is in how the path in the cd command is constructed. It should be "/Users/<my_username>/documents/repo/backend".

rust-analyzer version: 0.3.2154-standalone (9323b53 2024-10-20)

editor or extension: tried in both Cursor and VSCode

@adanielnoel adanielnoel added the C-bug Category: bug label Oct 28, 2024
@ChayimFriedman2
Copy link
Contributor

Must be #18229.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants