docs: 📝 Document error

This commit is contained in:
Sergio Gasquez 2022-09-20 14:54:31 +02:00
parent d8a2eaeadb
commit 0afb642092
2 changed files with 6 additions and 1 deletions

View File

@ -109,4 +109,5 @@ raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['<home_dir>/.espressif\\python_env\\idf4.4_py3.11_env\\Scripts\\python.exe', '-m', 'pip', 'install', '--no-warn-script-location', '-r', <home_dir>/.espressif\\esp-idf-ae062fbba3ded0aa\\release-v4.4\\requirements.txt', '--extra-index-url', 'https://dl.espressif.com/pypi']' returned non-zero exit status 1.
Error: Could not install esp-idf
```
- Windows Xtensa Rust installation is not working properly.

View File

@ -145,10 +145,14 @@ impl RustToolchain {
.rustup_home
.clone()
.unwrap_or_else(get_default_rustup_home);
#[cfg(unix)]
let default_toolchain_destination = rustup_home.join("toolchains").join("esp");
#[cfg(windows)]
let default_toolchain_destination = rustup_home.join("toolchains");
let toolchain_destination = args
.toolchain_destination
.clone()
.unwrap_or_else(|| rustup_home.join("toolchains").join("esp"));
.unwrap_or(default_toolchain_destination);
Self {
dist_file,
dist_url,