Closed smarizvi110 closed 1 month ago
Decided to give it another shot on the system where I got it to work after disabling the extension and going through its docs again. Setting the RUSTUP_TOOLCHAIN
environment variable for the extension as demonstrated here lets you use rust-analyzer and let's you compile too.
Perhaps an attempt to replicate this issue and apparent solution on a fresh system (like WSL or the like) is in order so it may be added to the README?
Sorry I'm not clear what the issue is here -- can you explain what you were trying to do when you encountered the errors shown at the very beginning of this issue?
Robrix doesn't require any special nightly features to build -- you should be able to use the stable toolchain to build it.
Sorry I'm not clear what the issue is here -- can you explain what you were trying to do when you encountered the errors shown at the very beginning of this issue?
Robrix doesn't require any special nightly features to build -- you should be able to use the stable toolchain to build it.
I was just trying to compile after cloning the repo initially. As for Robrix not needing a special toolchain, I wasn't aware of that actually. The rust_toolchain.toml file made me think that only the specific toolchain mentioned in the file was to be used. Thank you!
The rust_toolchain.toml file made me think that only the specific toolchain mentioned in the file was to be used
oh gosh, I didn't realize that was in there. That file should not be there, that must have accidentally been copied in from another project. Oops!
But in any case, the nightly version accidentally specified in the rust-toolchain.toml
file does actually build Robrix correctly, so you wouldn't get those errors above unless you manually forced it to a different rust version.
I've changed the file to specify the stable channel toolchain now. Thanks!
Awesome! Glad this could get resolved so easily!
Had tried initially by installing the nightly toolchain in my system despite the presence of
rust_toolchain.toml
which would override what toolchain is used,removing and adding cargo as a component,
Updating cargo and building from a clean directory
None of this worked, however. I then disabled the rust-analyzer extension in VScode and it seemed to work. Interestingly, repeating the same steps on another machine, Linux again, did not allow compilation. I'm not sure what the issue is here, perhaps something to do with the extension not using the toolchain that the .toml file lists here or some issue with rustup, but it really does make compiling this project more difficult than it should be...