Error: No such command "home"
DerAndere1 opened this issue · 10 comments
With the last release, when I hit Strg + Shift + P to open the command pallette and run command "PlatformIO: Home", I get the following error:
Error: Usage: __main__.py [OPTIONS] COMMAND [ARGS]...
Try '__main__.py -h' for help.
Error: No such command "home"
at c:\Users\cb\Downloads\VSC_PlatformIO_Python391\Vsc.Pyt_39\t\vscode\data\extensions\platformio.platformio-ide-2.3.2\node_modules\platformio-node-helpers\dist\index.js:1:5780
at ChildProcess.a (c:\Users\cb\Downloads\VSC_PlatformIO_Python391\Vsc.Pyt_39\t\vscode\data\extensions\platformio.platformio-ide-2.3.2\node_modules\platformio-node-helpers\dist\index.js:1:931270)
at ChildProcess.emit (events.js:315:20)
at ChildProcess.EventEmitter.emit (domain.js:467:12)
at ChildProcess.cp.emit (c:\Users\cb\Downloads\VSC_PlatformIO_Python391\Vsc.Pyt_39\t\vscode\data\extensions\pl...
A workaround is to press Ctrl + Shift + P to open the command pallette and run command "PlatformIO: Upgrade PlatformIO Core ". Alternatively, run the command pio upgrade
in the terminal.
A proper fix would be to publish a new release of Portable_VSC_PlatformIO that comes bundled with PlatformIO core 6
Oh, it did still worked! Didnt expected. I moved away from windows for over a year and didnt touch this for a long while.
I will have a look, if my old Windows PC still boots.
Can you describe how to compile the source code to get
VSC_PlatformIO_Python391.zip ? Then others/I could help you to maintain and update this software.
Unpack, take a look in Lib\site-packages
there you find two folders platformio*.*
Delete and replace with the ones you have in your updated version. Zip the package.
Should work (if i remember correctly)
I had to replace all contents of Lib\site-packages
. An easier solution is:
- Download file VSC_PlatformIO_Python391.zip from https://github.com/Jason2866/Portable_VSC_PlatformIO/releases
- Unzip VSC_PlatformIO_Python391.zip
- In the unzipped VSC_PlatformIO_Python391 folder, select and run the executable "VS code.exe"
- Click in the terminal of VS code and run the command
pio upgrade
and Wait for succesful upgrade. This updates the contents of VSC_PlatformIO_Python391 - Close VS code
- Create a new zip archive from the updated VSC_PlatformIO_Python391 folder
Have you checked, if it is still portable? Tried on a different drive/folder?
Yes on same computer. but I have to test on a different Windows computer.
Try latest release 1.6. Should work builded in a Windows11 ARM VM
Click in the terminal of VS code and run the command pio upgrade and Wait for succesful upgrade. This updates the contents of VSC_PlatformIO_Python391
This brakes portable install of Platformio. The compiled python *.exe files needs patching (removing the path before python.exe
)
Thanks a lot for the quick action. Seems to be fixed with release 1.6. I am closing this issue for now.