The following is printed to the output window when I try to build the project:
Executing task: platformio.exe run <
The terminal process terminated with exit code: 1
Terminal will be reused by tasks, press any key to close it.
The same behavior has been observed with non-ESP8266 projects, e.g. STM32 Blue Pill projects which worked prior to this issue. This leads me to believe that this isn’t an ESP8266 issue.
@ivankravets, unfortunately, I appear to have run into this issue again:
neil@Neil-Laptop:/mnt/c/Users/neilb/Documents/PlatformIO/Projects/ESP8266 Test$ pio run
Command 'pio' not found, did you mean:
command 'cpio' from deb cpio
command 'plio' from deb gnustep-base-runtime
command 'pip' from deb python-pip
command 'fio' from deb fio
command 'pia' from deb pia
command 'gio' from deb libglib2.0-bin
command 'tio' from deb tio
command 'rio' from deb rio
command 'pil' from deb picolisp
command 'pi' from deb pi
command 'pico' from deb nano
command 'pico' from deb alpine-pico
command 'pico' from deb joe-jupp
command 'pig' from deb bsdgames
command 'pic' from deb groff-base
Try: sudo apt install <deb name>
neil@Neil-Laptop:/mnt/c/Users/neilb/Documents/PlatformIO/Projects/ESP8266 Test$
This is from the terminal launched by the PIO icon in the bottom bar of VSCode.
I use W10, and installed the arduino (not the w10 store), installed PIO on VS-Code.
In PIO I installed library: Heltec ESP32 Dev-Boards by Heltec Automation and platform: Espressif 32
My PC recognize heltec esp32 lora on COM4
I try remove ~/.platformio/penv, but error continue…
> Executing task in folder test: platformio.exe run <
The terminal process terminated with exit code: 1
Terminal will be reused by tasks, press any key to close it.
I’m running Windows 10, and installed PIO via VSCode extension manager. I just tried the penv folder removal and PIO reinstallation fix and… same issue exactly. Seems to be a bug?
Is there any particular reason you’re using the WSL Bash terminal? If you use either the regular command prompt, or powershell (or even the git bash terminal), the pio command should work fine, but the WSL Bash shell doesn’t seem be working properly.
If you’re not sure how to change it, open up the command palette and type in shell for Terminal: Select Default Shell …
Hrm, you’re right about that… pio is a command on CMD or PowerShell…
But as for the root issue of this post, the behavior resulting in nothing happening when I try to build the project is mysteriously gone, thus fixing my problem.
Ah, @pfeerick this is to do with the WSL terminal after all! IDK what changed, but now when I have the VSCode terminal set as WSL, no PlatformIO actions work. I have to set the terminal to powershell or cmd to make them work again.
This behavior didn’t exist previously, I have been using WSL as my terminal for a while now with PIO and had no issues…