espressif / idf-env

idf-env tool helps set up and manage ESP-IDF installations
33 stars 5 forks source link

Suggested PowerShell Installation fails #53

Open ivancmz opened 5 months ago

ivancmz commented 5 months ago

Hi, on the readme.md there's a suggested way of installing on PowerShell:

Invoke-WebRequest 'https://dl.espressif.com/dl/idf-env/idf-env.exe' -OutFile .\idf-env.exe; .\idf-env.exe driver install --espressif --ftdi --silabs --wch

But I get the following output:

thread 'main' panicked at 'internal error: entered unreachable code: Bad help structure (doesn't match with path)', C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\clap-nested-0.4.0\src\lib.rs:343:25
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

The file gets downloaded, I can use it. What I believe is failling is the drivers installation.

ivancmz commented 5 months ago

Yes, when I try only this after the file is downloaded it also fails:

.\idf-env.exe driver install --espressif --ftdi --silabs --wch
thread 'main' panicked at 'internal error: entered unreachable code: Bad help structure (doesn't match with path)', C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\clap-nested-0.4.0\src\lib.rs:343:25
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

I also tried on an elevated powershell (administrator) tab.

ivancmz commented 5 months ago

It works when I remove --wch option!

ShawnHymel commented 4 days ago

Thanks for the heads up! It looks like the README is out of date. I got it to work by using the command on this doc page: https://docs.espressif.com/projects/esp-idf/en/stable/esp32s3/api-guides/jtag-debugging/configure-builtin-jtag.html