VSCode: 1.95.1
PIO IDE: v3.3.3
System: Linux, 6.6.50-05083-g5a8e7e69b744, x64
%23 Exception
Error: InvalidJSONFile: Could not load broken JSON: /home/berkhme/.platformio/packages/framework-arduinoespressif32/.piopm
at /home/berkhme/.vscode/extensions/platformio.platformio-ide-3.3.3-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:10939
at ChildProcess.i (/home/berkhme/.vscode/extensions/platformio.platformio-ide-3.3.3-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:4559)
at ChildProcess.emit (node:events:519:28)
at ChildProcess.emit (node:domain:488:12)
at maybeClose (node:internal/child_process:1105:16)
at Socket.<anonymous> (node:internal/child_process:457:11)
at Socket.emit (node:events:519:28)
at Socket.emit (node:domain:488:12)
at Pipe.<anonymous> (node:net:339:12)
[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:
run "PlatformIO: Clean"
close vscode program
delete every package that was created today
open vscode
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.
%23 Description of problem Leave a comment...
BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN
https://github.com/platformio/platformio-vscode-ide/issues%3Fq=is%3Aissue
%23 Configuration
VSCode: 1.95.1 PIO IDE: v3.3.3 System: Linux, 6.6.50-05083-g5a8e7e69b744, x64
%23 Exception
[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:
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.