-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Hi,
I've been experimenting with my own build of the toolchain for a while now
https://github.com/esp-rs/rust
One of the things I've discovered is a unique bug associated with windows when using a linked / custom toolchain such as esp
Typically some tools such as "cargo make" or "rust-analyser" under visual studio code
tend to run cargo multiple times at the same time (similar to running it multithreaded)
If cargo isn't installed as part of the custom toolchain, then it tends to try and use the cargo native to the host.
But because of the way it does this, it tends to fail under windows when you try to run it more than once at the same time.
The best workaround I've found is to just install cargo into the custom toolchain
# Fixes VSCode Issues with rust-analyser / cargo-make
x.py build --stage 2 cargo
I also tend to add rustfmt for reformatting code
# Add rustfmt for reformatting code
x.py build --stage 2 rustfmt
Would there be any issues in adding these to the workflows script?
I think it would solve a lot of problems associated with rust-analyser and cargo make which are quite useful.