espressif / idf-env

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

`idf-env idf install` fails on a pristine environment #32

Open ivmarkov opened 2 years ago

ivmarkov commented 2 years ago

Looking at src/config.rs line 61, it seems you are missing a fs::create_dir_all call that should create the ~/.espressif folder first, if it does not exist already.

By the way, all these operations would've been easier if you were using Path / PathBuf based operations, rather than plain string concats. You are lucky that those forward slashes actually do work on Windows. :)

ivmarkov commented 2 years ago

I must say, manually creating the ~/.espressif did not get me much further. Now when I do idf-env idf install it says Creating virtual environment: /Users/imarkov/.espressif/python_env/idf4.4_py3.8_env

... and then shows a command prompt as if it did everything already. However, when I look in ~/.espressif, I don't see anything.