@Uewel , You officially made my day!
I used your version and removed the upload statement (I use COM9, not COM7 and detection wasn’t really an issue) and it now works.
Linking .pioenvs\esp32dev\firmware.elf
Retrieving maximum program size .pioenvs\esp32dev\firmware.elf
Building .pioenvs\esp32dev\firmware.bin
Checking size .pioenvs\esp32dev\firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [== ] 18.9% (used 55876 bytes from 294912 bytes)
PROGRAM: [========= ] 85.4% (used 1119206 bytes from 1310720 bytes)
esptool.py v2.3.1
Configuring upload protocol...
AVAILABLE: esptool, minimodule, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: COM9
Uploading .pioenvs\esp32dev\firmware.bin
esptool.py v2.3.1
Connecting........___
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 12496 bytes to 8282...
Wrote 12496 bytes (8282 compressed) at 0x00001000 in 0.2 seconds (effective 502.4 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 144...
Wrote 3072 bytes (144 compressed) at 0x00008000 in 0.0 seconds (effective 1536.0 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.0 seconds (effective 4096.0 kbit/s)...
Hash of data verified.
Compressed 1120448 bytes to 647442...
Wrote 1120448 bytes (647442 compressed) at 0x00010000 in 15.7 seconds (effective 569.3 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
[SUCCESS] Took 158.51 seconds
So it looks like there is a bug in the parser (Python code?) about what’s in comments.
Probably another issue, but I got some linker issues about loop() and setup() when using @0.12.0. They were gone with @1.0.2.