-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Custom target not being detected (or the --target flag is not being passed?) if a custom toolchain is set using rust-toolchain.toml #10615
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
Comments
I am running into the same issue. What exactly did you do that made you close this issue? |
Hi, I've just run into the same issue idk why it happens but you can fix it by setting the config option {
"rust-analyzer.cargo.target": "avr-specs/avr-atmega328p.json",
} |
I use LSPs in neovim but that info is a good hint, thanks! |
I honestly thought this was me doing something wrong and not an actual issue. I'll reopen the issue since other people ran into the same problem. My bad.
I had tried doing but it did not help, unfortunately. I ended up disabling the feature (setting |
From the looks of it it seems like we are failing to use
on the toolchain Given we don't tend to go out of our way to support older versions currently I propose to mark this as a wont-fix? |
Closing as stated previously. |
I have no idea what's going on but that title is the only conclusion I have been able to draw so far.
cargo generate --git https://github.com/Rahix/avr-hal-template.git
cargo build works fine and builds an AVR file, respecting .cargo/config.toml and rust-toolchain.toml. Deleting rust-toolchain.toml makes the error disappear, however, the project now fails to compile as, apparently, the old version is necessary, but that's outside of the scope of this issue.
I'm using vim with youcompleteme, but I doubt this matters that much. All rust-analyzer options are the default.
The text was updated successfully, but these errors were encountered: