pioarduino/pioarduino-vscode-ide

Start PIO Home Server

Closed this issue · 3 comments

%23 Description of problem
I have an clean install of MacOS. Clean install of VSCode. Just installed python for mac from their webpage. I am trying to use the pioarduino extension. After installing the extension and core, I try to click on "PIO Home" and get the follow traceback error.

I can not get pioardunio to work in vscode

BEFORE SUBMITTING, PLEASE SEARCH FOR DUPLICATES IN

https://github.com/pioarduino/pioarduino-vscode-ide/issues%3Fq=is%3Aissue
%23 Configuration

VSCode: 1.103.0
PIO IDE: v1.0.6
System: Darwin, 24.6.0, arm64

%23 Exception

Error: TypeError: Traceback (most recent call last):
File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/platformio/main.py", line 103, in main
cli() %23 pylint: disable=no-value-for-parameter

File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
       ~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/platformio/cli.py", line 85, in invoke
return super().invoke(ctx)
       ~~~~~~~~~~~~~~^^^^^
File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
                       ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
       ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/platformio/home/cli.py", line 92, in cli
run_server(
~~~~~~~~~~^
    host=host,
    ^^^^^^^^^^
...<3 lines>...
    home_url=home_url,
    ^^^^^^^^^^^^^^^^^^
)
^
File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/platformio/home/run.py", line 66, in run_server
if not os.path.isdir(contrib_dir):
       ~~~~~~~~~~~~~^^^^^^^^^^^^^
File "<frozen genericpath>", line 51, in isdir
TypeError: stat: path 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 /Users/shakar/.vscode/extensions/pioarduino.pioarduino-ide-1.0.6/node_modules/pioarduino-node-helpers/dist/index.js:1:10943
at ChildProcess.c (/Users/shakar/.vscode/extensions/pioarduino.pioarduino-ide-1.0.6/node_modules/pioarduino-node-helpers/dist/index.js:1:4548)
at ChildProcess.emit (node:events:518:28)
at ChildProcess.emit (node:domain:489:12)
at maybeClose (node:internal/child_process:1101:16)
at Socket.<anonymous> (node:internal/child_process:456:11)
at Socket.emit (node:events:518:28)
at Socket.emit (node:domain:489:12)
at Pipe.<anonymous> (node:net:346:12)

using the pio CLI and typing pio home i get

"
I
/-
--\ PlatformIO Home
/ _-

|[]| [] | http://127.0.0.1:8008/
|
||___________________

Open PlatformIO Home in your browser by this URL => http://127.0.0.1:8008/
Maybe missing entry(s) in platformio.ini ?
Please add "check_tool = cppcheck" to use code check tool.
In all cases please restart VSC/PlatformIO to try to auto fix issues.
TypeError: Traceback (most recent call last):
File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/platformio/main.py", line 103, in main
cli() # pylint: disable=no-value-for-parameter
~~~^^
File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/platformio/cli.py", line 85, in invoke
return super().invoke(ctx)
~~~~~~~~~~~~~~^^^^^
File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/platformio/home/cli.py", line 92, in cli
run_server(
~~~~~~~~~~^
host=host,
^^^^^^^^^^
...<3 lines>...
home_url=home_url,
^^^^^^^^^^^^^^^^^^
)
^
File "/Users/shakar/.platformio/penv/lib/python3.13/site-packages/platformio/home/run.py", line 66, in run_server
if not os.path.isdir(contrib_dir):
~~~~~~~~~~~~~^^^^^^^^^^^^^
File "", line 51, in isdir
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

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

An unexpected error occurred. Further steps:

============================================================"

Try latest branch development with:

platform = https://github.com/pioarduino/platform-espressif32.git#develop

Solution: After installing pioarduino, I was missing some dependencies. I had chat gpt give me the necessary CLI commands to install was I was missing, I believe it was icon-tools or something like that, and something else. Anyway I got it fixed.