which pio
# save output to clipboard
cat $(which pio) > ~/custom_pio
chmod +x ~/custom_pio
rm $(which pio)
ln -s ~/custom_pio path_from_which_pio_output
# should still go through
pio --version
that’s not working too. For other side, I didn’t understand why you mentioned that I’m using hack version or custom version? I installed it from curl command like @ivankravets wrote.
Ok, I fixed the issue. I don’t know but in the last version it not accept that you have directory in home called pio or a link symbolic with this name. In a old version of vscode that I tryed (1.46.1-1592428892), the message is clear: “pio is a directory”, in the last version the error message is “pio is not a file of a symlink”.
Is weird it because I have it many months ago, a directory pio for my all projects
Maybe do you have in your path some directory with name pio ? I resolved the same issue that you have when I renamed my project directory pio to any name.
You RIGHT!!!
I have in home folder with name “pio” - before vscode 1.51 all work ok, but whe i update to 1.51 - it’s broken, and when i rename “pio” to “pio_” all work like a charm! Thank ALL for you help…
Try to make folder in home path with “pio” name
in my case (two host with ubuntu (home and work) have “pio” folder in home… and when i renamed it - all begin work correct.
oh one moment which i forget - ‘pio’ folder is folder where stored my project’s
$ set
…
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
…
i think - it’s standart… but trouble real - and only after update vscode to 1.51… before this update all work ok with ‘pio’ folder in home. and if i can help - just tell - i can get you ssh to my host for additional debug this situation…
Yes, we migrated to a short version of the PlatformIO Core CLI tool named pio. So, we normalized all our pages, including docs. The previous versions of the extension were calling the platformio command.
well, we know that, but I think that wasn’t the problem. After this update, for people that had /home/user/pio as workspace, vscode couldn’t build any project into this workspace, only by renaming the workspace “pio” to another one, vscode worked again.
I tried various mentioned methods on my machine (Apple M1 macOS 13.4 Beta (22F5027f)), including reinstalling the PlatformIO extension and local installation of platformio, but nothing worked until I commented out the line from my .zshrc file (for which I don’t remember how it got there):