platformio / platformio-vscode-ide

PlatformIO IDE for VSCode: The next generation integrated development environment for IoT
https://marketplace.visualstudio.com/items?itemName=platformio.platformio-ide
Apache License 2.0
1.23k stars 196 forks source link

Start PIO Home Server #4171

Open Quark3e opened 2 weeks ago

Quark3e commented 2 weeks ago

%23 Description of problem Leave a comment...

BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN

[Complete beginner] Hi. I tried creating a new esp32 project on vscode with the platformio extension for the board esp32 wroom with 1.1GB of storage left and it used up all of it and crashed with error. When i then tried again it reported a new type of error it said it a json file was invalid "InvalidJSONFile: Could not load broken JSON: /home/berkhme/.platformio/packages/framework-arduinoespressif32/.piopm" and failed to open PIO Home.

To open platformio and use other projects i had to delete the "framework-arduinoespressif32" package. The project exists but if i open it then it tries to redownload the package and consume my storage. The name of my board is "ESP32-WROOM-32D" and i assumed i'd pick the only board name with the word "wroom" in it, but it apparently requires over 1GB of storage. Is there something wrong going on here? Is there a better package alternative?

UPDATE: I don't know how or why but after giving up and letting the package downloader run by itself for a couple of minutes with it trying to install mirrors and failing i tried:

  1. run "PlatformIO: Clean"
  2. close vscode program
  3. delete every package that was created today
  4. open vscode
  5. immediately run "PlatformIO: Clean" again

This result in me somehow getting 2.3GB of storage compared to 1.1GB i had before and the packages installing correctly. I can now build projects. (i have ~530MB of storage left after a build of a basic project) Granted i have some problems with uploading to my board but i presume that's a board issue and not a platformio issue so this issue can be closed if deemed to be right. I'll keep it open in case anyone have any input on why or how this happened.