I’ve had PlatformIO installed for a while now, use very occasionally with arduino & esp32 (would like to use with WIZwiki-W7500 or the p version but that is getting ahead of myself…), made the mistake of running from the menu PlatformIO -> “update platforms, packages and libraries”, then “Upgrade PlatformIO core”, “Update Atom packages”, then noticed a button to do another upgrade, can’t remember text, anyway, now I have installed ATOM 1.13. x64, PlatformIO 3.3.0a10 is currently the newest version available.
The problem is now when I click on Build, I get a box pop up saying ‘PlatformIO: Failed to run a command: Build’, “Please make sure that 'build package is installed and activated.” ’
If I open up a shell outside of PlatformIO and type “platformio --version”, I get :
PlatformIO, version 3.2.1
which platformio gives :
/usr/local/bin/platformio
So this is perhaps an indication that somehow I have two installations ?
Anyway, is there a way I can fix this build issue, I have no idea what is missing ?
Is there a log to show what is trying to be found ?
Or will I need to remove and install again ?
If anyone has any ideas / suggestions that would be great,
Many Thanks !
You have multiple versions of PlatformIO in a system. Please remove duplicates. Open system terminal and run pip uninstall platformio (if you installed with pip).
Click on Menu: PlatformIO > Home. Which is your version of IDE? OS?
Click on Settings icon > packages. Activate build package.
1, pio --version should work now from PlatformIO IDE Terminal (see icon on toolbar)
2. Try to uninstall build package and restart IDE. PIO should install it again.
@ivankravets OK, so “pio --version” now gives
PlatformIO, version 3.3.0a10
Now, don’t have multiple platformio installations after pip uninstall.
Restarted IDE after uninstalling build, exited, restarted and it did PlatformIO IDE: Installing…
Prompted to “Reload now” which I did but still the same issue,
I click on main.cpp in a project and then click on the build from the icons at the top and still get :
‘PlatformIO: Failed to run a command: Build’, “Please make sure that 'build package is installed and activated.”
Something is wrong with your installation. I see that you switched to a development version of PlatformIO IDE 2.0. Could you try back to PlatformIO IDE 1.0? Let’s test if it works.
@ivankravets
Happy to try and help…
That was the button that I think that caused me to start this thread !
I see:
"Switching to PlatformIO IDE 2.0 Preview …
Please be patient and let the installation complete (see status indicator in the bottom corner)."
Dialog box: “Please re-start PlatformIO IDE to apply new changes”, clicked “Restart”
PlatformIO IDE: Installing
Please be patient and let the installation complete.
Again “Releoad now” button clicked, now I see:
IDE 2.0.0-alpha.4
Core 3.3.0a10
I see “1 deprecation”, click on it to see :
Deprecated calls
atom core (1 deprecation)
Assigning editor 1181’s height explicitly via position: ‘absolute’ and an assigned top and bottom implicitly assigns the autoHeight property to false on the editor. This behavior is deprecated and will not be supported in the future. Please explicitly assign autoHeight on this editor.
TextEditorComponent.measureDimensions - /usr/share/atom/resources/app.asar/src/text-editor-component.js:1011:20
TextEditorComponent.becameVisible - /usr/share/atom/resources/app.asar/src/text-editor-component.js:295:12
TextEditorComponent.checkForVisibilityChange - /usr/share/atom/resources/app.asar/src/text-editor-component.js:993:16
atom-text-editor.attachedCallback - /usr/share/atom/resources/app.asar/src/text-editor-element.js:87:22
- /usr/share/atom/resources/app.asar/src/atom-environment.js:826:33
if I ignore that and click on my main.cpp and click build from icons, I get the same error as before :
PlatformIO: Failed to run a command: “Build”, ‘Please make sure that “build” package is installed and activated.’