Ok, in a moment of madness, I remembered that my laptop had been “upgraded” from a perfectly workable Windows 7 Professional, to a version of Windows 10 way back when the upgrade was free. It was never used for anything thereafter as I do all my work and business stuff on Linux.
So, I booted into Windows 10 and attempted an install of PlatformIO from scratch. I get a different problem to you I’m afraid, but this is what I did.
- Dell Vostro 1720
- 8 GB RAM (maxed out)
- Dual Core CPU.
- Ahem, much older than 10 years.
- Python 3.8.6 installed ok;
- VSCode installed ok;
- PlatformIO Installed ok;
- PlatformIO Home screen will not load - it sits at a “Loading…” prompt eternally.
Edit After Win10 updated itself and a reboot, the PlatformIO Home page displays correctly. Sketch created and compiled ok.
I went to Python Release Python 3.8.6 | Python.org and downloaded the "Windows Exe Installer 64 bit version. When done, I double-clicked it, dismissed the pop-up from Norton/Symantec and OK’d the installer to continue.
I ticked all the options to install for everyone and to add Python to the path. It executed and installed Python.
When done, I opened a new CMD session, and the
python --version command returned 3.8.6. So far so good.
I then went to Download Visual Studio Code - Mac, Linux, Windows and grabbed the 64 bit Windows “user installer” version. On completion, I double-clicked to run and ticked all the options to Create desktop icons, register menu options in Explorer, register known file extensions.
When it finished installing, it opened all by itself. I checked installed extensions, there were none.
Install PlatformIO IDE
On the extensions tab, in VSCode, I serahced for PlatformIO and clicked the “install” button for PlatformIO IDE 2.1.0. That did a few things, and took quite a while to do it - Linux is far far faster!
Download portable Python Interpreter - Interesting as I’ve already installed Python 3.8.6.
Install PlatformIO Core. This took quite a while. But did finish. I was asked to reload the Window, so I did.
I then checked the installed extensions - I have:
- C/C++ for VSCode (Microsoft) version 1.0.1.
- PlatformIO IDE version 2.0.1.
That is all.
Reboot VSCode, just to be sure. It’s a Windows thing!
On restarting, the PlatformIO Home page sits at a “Loading…” prompt for ages. I gave up after 15 minutes of nothing happening. A quick look in Help->Toggle Developer Options → Console Tab showed no errors that were related.
I thought maybe a reboot would be needed, it’s Windows after all. Big Mistake! Laptop now hung up at the “Getting Windows Ready, Don’t turn off your computer” prompt.
Trust me, the laptop will be turned off and my Windows partition reformatted for Linux to use.
However, there does seem to be a problem with VSCode and/or PlatformIO IDE on my version of Windows 10, but it does appear that I can see Python after installing it first.
Speaking of which, the “portable Python Interpreter” downloaded by PlatformIO and installed into
c:\users\norman\.platformio\python3 appears to be Python 3.7.7.
I’m now wondering:
Is Windows 10 not usable with VSCode and PlatformIO? It can’t be as there are plenty of users (Think Marlin and 3D printers) - so it must be my ancient version of Windows 10.
Is it actually necessary to pre-install a Python interpreter before installing VSCode and PlatformIO - the developer tools console appears to show that PlatformIO is using the portable installation.
Will I ever get my laptop back from the greasy grip of Windows updater?
Sorry, I’m no help I’m afraid.
EDIT Suddenly, the laptop shutdown! It was finished updating. I restarted and after a quick (very quick) “updating … 100%”) I was into Windows 10 again. This time, after opening VSCode, I saw a prompt on the status bar, “Checking PlatformIO core…” and when it finished, the PlatformIO Home page loaded.
To be sure it all worked, I created a new project, in the default location, for an Arduino Uno and named it Blink.
Hmm, interesting, I see on Windows, you get a
src/main.cpp created with a blank Arduino sketch inside it. That’s not happening on Linux - as far as I remember.
Clicked Build and after lots of stuff downloaded, the build was a success.