| 28 Oct 2025 |
crop | thank you for clarifying | 22:39:09 |
| 29 Oct 2025 |
crop | I switched to fenix with complete toolchain. The problem is that rustfmt (or whatever is the default for formatting) somehow doesn't recognize that the project is written in edition 2024. It fails with an error something along the line "let chains only supported in edition 2024". | 11:38:45 |
crop | The editor i use is helix | 11:39:13 |
Charles | what's your rustfmt.toml say | 14:41:13 |
crop | I don't have one in the project. Are there other places where i should look? | 17:10:20 |
antifuchs | Make sure which rustfmt doesn’t pick up an older rustup installation? | 17:21:22 |
Charles | that might be your problem. i'm not sure if rustup cares to read Cargo.toml to figure out the edition | 18:49:07 |
Charles | you do at least have the edition set properly in Cargo.toml, yeah? | 18:49:56 |
Charles | * that might be your problem. i'm not sure if rustfmt cares to read Cargo.toml to figure out the edition | 18:50:52 |
Charles | maybe it does if you cargo fmt but not if you rustfmt, you could try both and see what happens and then check how helix is invoking the formatter | 18:51:26 |
crop | Yes. I have all the expected binaries. And a cargo toml with edition 2024. And rustfmt print-config shows the wrong edition. But because i kept working it doesn't fail anymore | 18:51:49 |
crop | Cargo fmt as well | 18:52:20 |
crop | At least i know now what i should configure if i run into the problem again. Should not be nix specific | 18:53:18 |