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

Error: Decoding config file failed #2057

Closed
valarauca opened this issue Oct 12, 2017 · 2 comments
Closed

Error: Decoding config file failed #2057

valarauca opened this issue Oct 12, 2017 · 2 comments
Labels
bug Panic, non-idempotency, invalid code, etc.

Comments

@valarauca
Copy link

valarauca commented Oct 12, 2017

What I did

cargo install rustfmt --force
cargo fmt

What I expected:

cargo fmt to run

What I got

Error: Decoding config file

I don't have a rustfmt.toml, I mean I do in my ~/.cargo/registry/src/git.luolix.top-[base64] for a few projects, but nowhere else.

What is up?

@nrc
Copy link
Member

nrc commented Oct 16, 2017

We look in all directories up from the current directory to the root for a config file, but I expect you're not in a subdir of the directory you give.

You could try using nightly rustfmt (cargo install rustfmt-nightly --force), see if that helps.

@nrc nrc added the bug Panic, non-idempotency, invalid code, etc. label Oct 16, 2017
@valarauca
Copy link
Author

Issue is on my end. Sorry for opening this :\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Panic, non-idempotency, invalid code, etc.
Projects
None yet
Development

No branches or pull requests

2 participants