Notifications
Clear all

PlatformIO & MacOS

3 Posts
2 Users
0 Likes
3,437 Views
(@pugwash)
Sorcerers' Apprentice
Joined: 5 years ago
Posts: 923
Topic starter  

On installing PlatformIO in VSCode on a Mac, all appeared to go well until I tried to compile a sketch, then the following warning showed up on the Terminal.

The terminal shell path "platformio" does not exist.

I found other cases when I googled the error, some suggesting installing a previous version of VSCode and others advising to delete core installations etc..

I got VSCode up and running by just renaming the .platformio folder in the HOME directory and restarting VSCode, forcing VSCode to make a new installation of PlatformIO.

Yes, I do like it, especially the code completion function which makes coding sketches much quicker. I suppose only one thing becomes time-consuming and that is having to have separate programs for different boards.

But we will get used to it!


   
Quote
triform
(@triform)
Member
Joined: 5 years ago
Posts: 324
 

@pugwash You can add multiple boards to a project by adding them to your platformio.ini file for the project. I used to do it for uno and pro mini boards in testing. If I remember, don't set a default in the .ini and it will build all the boards/targets or if you just one built, put a default in. Not sure if there is an automated way to do this.  

Scott

 


   
ReplyQuote
triform
(@triform)
Member
Joined: 5 years ago
Posts: 324
 

In looking, there is this thread on doing it. Seems to match mostly with what I have done.

https://community.platformio.org/t/changing-destination-boards/4751

 


   
ReplyQuote