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.18k stars 188 forks source link

Start PIO Home Server #4066

Open 3258221345 opened 3 weeks ago

3258221345 commented 3 weeks ago

%23 Description of problem Leave a comment...

BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN

============================================================

An unexpected error occurred. Further steps:

============================================================

Exception in thread Thread-1 (_sender_worker): Traceback (most recent call last): File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/platformio/app.py", line 111, in exit with open(self.path, mode="w", encoding="utf8") as fp: PermissionError: [Errno 13] Permission denied: '/home/hell0/.platformio/appstate.json'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/platformio/telemetry.py", line 122, in _sender_worker if not self._commit_events(events): File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/platformio/telemetry.py", line 131, in _commit_events mp = MeasurementProtocol(events) File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/platformio/telemetry.py", line 39, in init self.client_id = app.get_cid() File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/platformio/app.py", line 256, in get_cid set_state_item("cid", cid) File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/platformio/app.py", line 192, in set_state_item with State(lock=True) as state: File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/platformio/app.py", line 114, in exit raise exception.HomeDirPermissionsError( platformio.exception.HomeDirPermissionsError: The directory /home/hell0/.platformio or its parent directory is not owned by the current user and PlatformIO can not store configuration data. Please check the permissions and owner of that directory. Otherwise, please remove manually /home/hell0/.platformio directory and PlatformIO will create new from the current user.

at /home/hell0/.vscode/extensions/platformio.platformio-ide-3.3.3/node_modules/platformio-node-helpers/dist/index.js:1:11001
at ChildProcess.i (/home/hell0/.vscode/extensions/platformio.platformio-ide-3.3.3/node_modules/platformio-node-helpers/dist/index.js:1:4621)
at ChildProcess.emit (node:events:514: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:514:28)
at Socket.emit (node:domain:488:12)
at Pipe.<anonymous> (node:net:337:12)