ESP32, ESP-IDF examples does not upload

I tried hello world example project with ESP-IDF however it fails into uploading, it gave me this (same remark for other ESP-IDF example like ble-adv example):

I’ve mentionned the whole description of this bug here in github (with another arduino bug), but it hasn’t been viewed yet!:

Retrieving maximum program size .pioenvs\esp wrover kit\firmware.elf
[..]
esptool write_flash: error: argument <address> <filename>: [Errno 2] No such file or directory: 'c:\\Users\\gry\\Documents\\PlatformIO\\Projects\\180903-182438-espidf-hello-world\\.pioenvs\\esp'

You are having spaces in your environment name which kills the build process because the paths are not properly escaped when esptool is invoked.

You named your environment [env:esp wrover kit]. Name it [env:esp_wrover_kit] or whatever.

Thank you. I took directly the ini file from the default hello_world examples (as well as ble example). I didn’t make any change in this part of the ini code. So if you’re correct this bug come from the default example files or esptool usage by plaformIO.

While waiting for a general fix, I can apply your solution to rename the default environement name.

That’s actually right, there’s a space in these env names… (platform-espressif32/platformio.ini at master · platformio/platform-espressif32 · GitHub).

Then it was never noticed that this doesn’t build or esptool.py invocation was broken fairly recently.

The platformIO support for esp-idf is very new.

Then it was never noticed that this doesn’t build or esptool.py invocation was broken fairly recently.

This is why I opened this issue: Three project examples does not work with ESP32 WROVER KIT · Issue #121 · platformio/platform-espressif32 · GitHub , but it hasn’t been considered yet