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

rustfmt binary doesn't seem to do anything on my machine #5906

Closed
punowo opened this issue Sep 9, 2023 · 1 comment
Closed

rustfmt binary doesn't seem to do anything on my machine #5906

punowo opened this issue Sep 9, 2023 · 1 comment

Comments

@punowo
Copy link

punowo commented Sep 9, 2023

Hello.

I've added the binary downloaded from github to my path. I've tried both gnu and msvc. If I point it at a .rs file it won't format it. I'm confused and I'm not sure how to debug this further. I'm on Windows 10. I do not have Rust tooling installed. I just want to use rustfmt to format some rust files.

PS C:\Users\pun> $LASTEXITCODE
PS C:\Users\pun> rustfmt --version
PS C:\Users\pun> $LASTEXITCODE
-1073741515
PS C:\Users\pun> rustfmt --help
PS C:\Users\pun> $LASTEXITCODE
-1073741515
@ytmimi
Copy link
Contributor

ytmimi commented Sep 9, 2023

Unfortunately you'll need to have a rust toolchain installed in order to run rustfmt, and the recommended way to get rustfmt is via rustup. You'll find some additional details in #5805 (comment) and the other linked issues.

@ytmimi ytmimi closed this as not planned Won't fix, can't repro, duplicate, stale Sep 9, 2023
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

No branches or pull requests

2 participants