Hi!
After last update vscode to
(Version: 1.51.1
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-10T23:31:29.624Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Linux x64 5.4.0-54-generic)
Have this:
"> Executing task: pio run <
The terminal process failed to launch: Path to shell executable “pio” is not a file of a symlink.
Terminal will be reused by tasks, press any key to close it.
"
and not reinstall platformio not reinstall vscode (this ver or other old ver) cant got success result help please… -
apt uninstall and purge and reinstall have not success too…
Please close VSCode, go into your project folder and do a pio init --ide=vscode, in order to regenerate VSCode project files. Then open VSCode again and execute the Build task. Is it still broken?
If yes, open a PIO terminal. Is the command pio --version recognized in there?
root@host:/home/oleg/pio/homie_lamp_cabinet_V5# pio init --ide=vscode
...
The current working directory /home/oleg/pio/homie_lamp_cabinet_V5 will be used for the project.
The next files/directories have been created in /home/oleg/pio/homie_lamp_cabinet_V5
include - Put project header files here
lib - Put here project specific (private) libraries
src - Put project source files here
platformio.ini - Project Configuration File
Error: Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/platformio/__main__.py", line 109, in main
cli() # pylint: disable=no-value-for-parameter
File "/usr/lib/python3/dist-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.8/dist-packages/platformio/commands/__init__.py", line 44, in invoke
return super(PlatformioCLI, self).invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/platformio/commands/project.py", line 197, in project_init
pg.generate()
File "/usr/local/lib/python3.8/dist-packages/platformio/ide/projectgenerator.py", line 124, in generate
tpl_vars = self._load_tplvars()
File "/usr/local/lib/python3.8/dist-packages/platformio/ide/projectgenerator.py", line 76, in _load_tplvars
tpl_vars.update(load_project_ide_data(self.project_dir, self.env_name) or {})
File "/usr/local/lib/python3.8/dist-packages/platformio/project/helpers.py", line 140, in load_project_ide_data
from platformio.commands.run.command import cli as cmd_run
File "/usr/local/lib/python3.8/dist-packages/platformio/commands/run/command.py", line 24, in <module>
from platformio.commands.device.command import device_monitor as cmd_device_monitor
File "/usr/local/lib/python3.8/dist-packages/platformio/commands/device/__init__.py", line 15, in <module>
from platformio.commands.device.filters.base import DeviceMonitorFilter
File "/usr/local/lib/python3.8/dist-packages/platformio/commands/device/filters/base.py", line 15, in <module>
from serial.tools import miniterm
ModuleNotFoundError: No module named 'serial.tools'
============================================================
An unexpected error occurred. Further steps:
* Verify that you have the latest version of PlatformIO using
`pip install -U platformio` command
* Try to find answer in FAQ Troubleshooting section
https://docs.platformio.org/page/faq.html
* Report this problem to the developers
============================================================
Well I’m on 1.51.1 regarding VSCode and I’m using the latest VSCode PIO extension version and it’s all fine here.
Please show a screenshot of your VSCode IDE when you execute the Build project task.
Another strange thing I notice in your output is that it says “Executing task: pio run” but that actual output should be much more verbose, telling what folder it’s running in and the path to the executable.
That doesn’t show the versions. PlatformIO IDE should be at 2.2.1 and C/C++ at 1.1.1.
You may also try and go into the extension sidebar -> PlatformIO IDE -> Settings -> Disable “Use builtin PIO core” and maybe also disable “Use built-in python”. Then restart VSCode and retry.
I try’ed remove and purge .deb package and install it via snap package but result the same: “Path to shell executable “pio” is not a file of a symlink”
Snap is definitely the wrong way to install it – I’ve only seen reports here that due to the container nature, PlatformIO is unable to access the hardware correctly and can’t find files on the main system. Only .deb installs should be done.
I’m very sure I have a Ubuntu system that’s setup in the same way and doesn’t have the problems you’re describing, but I can check again.