Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on: Start PIO Home Server #99

Closed
probonopd opened this issue Jan 1, 2025 · 1 comment
Closed

Crash on: Start PIO Home Server #99

probonopd opened this issue Jan 1, 2025 · 1 comment

Comments

@probonopd
Copy link

probonopd commented Jan 1, 2025

This is about pioarduino, NOT about platformio-vscode-ide like it would suggest:


%23 Description of problem
When I want to create a new project, it crashes

%23 Configuration

VSCode: 1.96.2
PIO IDE: v1.0.4
System: Windows_NT, 10.0.22631, x64

%23 Exception

Error: TypeError: Traceback (most recent call last):
File "C:\Users\User\.platformio\penv\Lib\site-packages\platformio\__main__.py", line 103, in main
  cli()  %23 pylint: disable=no-value-for-parameter
  ^^^^^
File "C:\Users\User\.platformio\penv\Lib\site-packages\click\core.py", line 1161, in __call__
  return self.main(*args, **kwargs)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\.platformio\penv\Lib\site-packages\click\core.py", line 1082, in main
  rv = self.invoke(ctx)
       ^^^^^^^^^^^^^^^^
File "C:\Users\User\.platformio\penv\Lib\site-packages\platformio\cli.py", line 85, in invoke
  return super().invoke(ctx)
         ^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\.platformio\penv\Lib\site-packages\click\core.py", line 1697, in invoke
  return _process_result(sub_ctx.command.invoke(sub_ctx))
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\.platformio\penv\Lib\site-packages\click\core.py", line 1443, in invoke
  return ctx.invoke(self.callback, **ctx.params)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\.platformio\penv\Lib\site-packages\click\core.py", line 788, in invoke
  return __callback(*args, **kwargs)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\.platformio\penv\Lib\site-packages\platformio\home\cli.py", line 92, in cli
  run_server(
File "C:\Users\User\.platformio\penv\Lib\site-packages\platformio\home\run.py", line 66, in run_server
  if not os.path.isdir(contrib_dir):
         ^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: isdir: s should be string, bytes, os.PathLike or integer, not NoneType

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

An unexpected error occurred. Further steps:

* Verify that you have the latest version of PlatformIO using
`python -m pip install -U platformio` command

* Try 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

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


  at c:\Users\User\.vscode\extensions\pioarduino.pioarduino-ide-1.0.4\node_modules\pioarduino-node-helpers\dist\index.js:1:10938
  at ChildProcess.d (c:\Users\User\.vscode\extensions\pioarduino.pioarduino-ide-1.0.4\node_modules\pioarduino-node-helpers\dist\index.js:1:4560)
  at ChildProcess.emit (node:events:518:28)
  at ChildProcess.emit (node:domain:489:12)
  at maybeClose (node:internal/child_process:1104:16)
  at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
@probonopd
Copy link
Author

Root cause seems to be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant