gepd / Deviot

Sublime Text plugin for IoT development based in PlatformIO ecosystem (Arduino IDE)
Apache License 2.0
307 stars 56 forks source link

multiple plateformio cores after brew install #218

Open chienMouille opened 6 years ago

chienMouille commented 6 years ago

Hello,

after installing deviot, plateformio wouldn't install by itself, promping that the command pip wasn't found. i thus installed plateformio through homebrew.

the plugin works great now! however it shows this message everytime i build a sketch: "Obsolete PIO Core v3.5.2 is used (previous was 3.5.3a8) Please remove multiple PIO Cores from a system: http://docs.platformio.org/page/faq.html#multiple-pio-cores-in-a-system"

i can't find any other version of PIO in my system. (and when hitting upgrade i get told that i have the last version)

any thought?

thanks a lot

(im working on a macOSX el captain, sublime text 3)

gepd commented 6 years ago

Hi @chienMouille can you try removing the folder Packages\User\Deviot\penv you cango to the package folder from Sublime Menu > Preferences > Browse Packages

chienMouille commented 6 years ago

hey, i can't find any penv folder. in Packages\User\Deviot there is only 'deviot.ini' and 'pio'. and in Packages\Deviot (Arduino IDE) there are lots of things but no 'penv'

thank you!

gepd commented 6 years ago

So your system has not multiples version, have you trying updating platformio? Run this commands from the terminal: platformio update and platformio upgrade

Let me know if you keep seeing that warning after update

chienMouille commented 6 years ago

in terminal, when I run: brew updgrade platformio I get: Error: platformio 3.5.2 already installed

when I run platformio upgrade I get: Error: Can not retrieve the latest PlatformIO version

and when I run platformio update I get: Obsolete PIO Core v3.5.2 is used (previous was 3.5.3a8) Please remove multiple PIO Cores from a system: http://docs.platformio.org/page/faq.html#multiple-pio-cores-in-a-system

in ST3, I still get the same warning upon compilation.

chienMouille commented 6 years ago

update on the problem: due to some problems with loading a sketch on an esp32, I read in another issue I needed to update platformio to the latest version. trying to do so through deviot, I would read the following error: ' Error: Can not retrieve the latest PlatformIO version '. as described in the previous post, homebrew wouldn't let me update either.

after various trials and errors, here is what fixed it:

I can now update platoformio, load a sketch to my esp32, and the error message indicating several CORES disappeared.

I'm definitely not sure why, but I thought I'd share.

thanks for the help!