VSCode: 1.90.0
PIO IDE: v3.3.3
System: Linux, 6.5.0-35-generic, x64
%23 Exception
Error: PermissionError: Traceback (most recent call last):
File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/platformio/__main__.py", line 103, in main
cli() %23 pylint: disable=no-value-for-parameter
File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/platformio/cli.py", line 85, in invoke
return super().invoke(ctx)
File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/platformio/home/cli.py", line 92, in cli
run_server(
File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/platformio/home/run.py", line 65, in run_server
contrib_dir = get_core_package_dir("contrib-piohome")
File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/platformio/package/manager/core.py", line 42, in get_core_package_dir
pkg = pm.get_package(spec)
File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/platformio/package/manager/base.py", line 265, in get_package
for pkg in self.get_installed():
File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/platformio/package/manager/base.py", line 241, in get_installed
spec = self.build_legacy_spec(pkg.path)
File "/home/hell0/.platformio/penv/lib/python3.10/site-packages/platformio/package/manager/_legacy.py", line 26, in build_legacy_spec
for name in os.listdir(pkg_dir):
PermissionError: [Errno 13] Permission denied: '/home/hell0/.platformio/packages/contrib-piohome'
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)
%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.90.0 PIO IDE: v3.3.3 System: Linux, 6.5.0-35-generic, x64
%23 Exception
============================================================
An unexpected error occurred. Further steps:
Verify that you have the latest version of PlatformIO using
python -m pip install -U platformio
commandTry to find answer in FAQ Troubleshooting section https://docs.platformio.org/page/faq/index.html
Report this problem to the developers https://github.com/platformio/platformio-core/issues
============================================================
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.