Have pio installation working on my mac for a quite long time. Last time it was working today’s morning, I tested some arduino PRs with it, etc. Just ran it again and observe no pio commands nor home screen. Any attempt to call PIO ends with “command … not found”
I removed vscode installation, ~/.platformio and ~/.vscode directories, then downloaded vscode again and installed pio extension in it. Vscode said, something has been downloaded, like frameworks etc, but ~/.platformio directory has not been created and no pio home or any other pio artefacts became available.
Please help - how to solve this? I need it urgently and cannot repair.
Date: 2020-10-13T14:53:05.704Z (3 days ago)
OS: Darwin x64 19.6.0
Well, downgraded to pio 2.1.0 and everything has been installed and working
After upgrading to PIO extension 2.1.1, I get the same error. Help -> Toggle Developer tools points at a missing package here.
Activating extension 'platformio.platformio-ide' failed: Cannot find module 'os-tmpdir'
- c:\Program Files\Microsoft VS Code\resources\app\out\vs\loader.js
- c:\Program Files\Microsoft VS Code\resources\app\out\bootstrap-amd.js
- c:\Program Files\Microsoft VS Code\resources\app\out\bootstrap-fork.js.
Environment is Win10 x64, VSCode 1.50.1 (latest), Extension version 2.1.1, core 5.0.1.
CC @ivankravets for critical bug?
Manually fixed by having npm installed (my version is
6.14.8), going into
C:\Users\<user>\.vscode\extensions\platformio.platformio-ide-2.1.1\ and executing
npm i os-tmpdir to install the missing package. The code should probably be altered though as there’s a deprecation warning: https://www.npmjs.com/package/os-tmpdir
Crazy awful Node.JS env. Can’t understand how people code here. It seems that some idiot decided to remove dependency without incrementing major version.
P.S: Working on that, sorry.