Rustfmt: Latest version (0.2.10) either hangs or crashes

Created on 28 Oct 2017  路  5Comments  路  Source: rust-lang/rustfmt

After updating my Rust version (nightly, rustc 1.23.0-nightly (d9f124965 2017-10-27)) and force installing rustfmt-nightly, I can't use cargo fmt anymore.

After running cargo fmt, I sometimes get

No such file or directory (os error 2)
usage: cargo fmt [options]

Options:
    -h, --help          show this message
    -q, --quiet         no output printed to stdout
    -v, --verbose       use verbose output
    -p, --package <package>
                        specify package to format (only usable in workspaces)
        --all           format all packages (only usable in workspaces)

This utility formats all bin and lib files of the current crate using rustfmt. Arguments after `--` are passed to rustfmt.

or in most cases it just runs forever.

bug

All 5 comments

Published 0.2.11.

Unfortunately, it still doesn't work. While there's no IO error anymore, it does not complete.

Thank you, just published 0.2.12.

Thanks, it works now. One thing I have noticed is that it seems to take longer than before (6 seconds for cargo fmt --all and one second for cargo fmt).

@nrc Did you fix the issue with long formatting times?

Was this page helpful?
0 / 5 - 0 ratings