rust-lang / rustfmt

Format Rust code
https://rust-lang.github.io/rustfmt/
Apache License 2.0
6.06k stars 892 forks source link

rustup toolchain version nightly-2024-08-17 broke codelldb debugger #6303

Closed johnhuichen closed 2 months ago

johnhuichen commented 2 months ago

The version specified in rust-toolchain file

[toolchain]
channel = "nightly-2024-08-17"
components = ["llvm-tools", "rustc-dev"]

causes codelldb to show string as error: invalid value object.

Here is a recent discussion on Reddit about the same issue:

https://www.reddit.com/r/rust/comments/1f28akn/invalid_value_for_elements_in_vec_when_viewed_in/

After I changed it to

[toolchain]
channel = "nightly-2024-08-08"
components = ["llvm-tools", "rustc-dev"]

Debugger worked fine

ytmimi commented 2 months ago

rustfmt is pinned to a specific version of the nightly compiler. In this case rolling back to a earlier version worked, but that won't always be the case. This isn't really an issue with rustfmt so I'm going to close.