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

Clion doesn't use rustfmt when "Use rustfmt instead of the built-in formatter" is selected #10835

Open
jrg1k opened this issue Sep 3, 2023 · 1 comment

Comments

@jrg1k
Copy link

jrg1k commented Sep 3, 2023

Environment

  • IntelliJ Rust plugin version: 0.4.200.5421-232
  • Rust toolchain version: stable-x86_64-unknown-linux-gnu - rustc 1.72.0
  • IDE name and version: CLion 2023.2
  • Operating system: Fedora Linux 38 (Thirty Eight)

Problem description

Clion doesn't use rustfmt when "Use rustfmt instead of the built-in formatter" is selected. On save works but the ReformatFile action does not trigger rustfmt, it triggers the built in formatter.

Steps to reproduce

This code is left as-is by the built-in formatter:

struct Connection<S> where S: AsyncRead + AsyncWrite,
{
    stream: S,
    buffer: VecDeque<u8>,
}

rustfmt formats it like this:

struct Connection<S>
where
    S: AsyncRead + AsyncWrite,
{
    stream: S,
    buffer: VecDeque<u8>,
}
@Maksim20023
Copy link
Collaborator

Hi! Thanks for reaching us.
This is a known issue for us and has already been reported. Please take a look at #10752. You can subscribe to it to stay informed and vote (click the emoji button in the bottom-left corner of the GitHub post). When we have new information, we will add a reply to that ticket.
If you have any further suggestions, please feel free to reach out.

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