Open Baerschen1 opened 1 year ago
Hi,
Error: Detected unknown package 'contrib-pysite'
Error: Could not start PIO Home server: Timeout error at Timeout._onTimeout (/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:10444) at listOnTimeout (node:internal/timers:559:17) at process.processTimers (node:internal/timers:502:7)...
I tried all the methods listed above, but it didn't work. What did I do wrong? In the browser, the start page (http://127.0.0.1:8008/) works...
@ut4uss, could you try to set platformio-ide.pioHomeServerHttpPort to 45001
? Also, does http://127.0.0.1:45001/ work if you start IDE?
It does not work... In the "settings.yson" file, I set the port 8008, 45001, 45002 ...
"platformio-ide.pioHomeServerHttpPort": 45001, "platformio-ide.pioHomeServerHttpHost": "127.0.0.1",
@ut4uss please contact me directly via me@ikravets.com. I would be thankful if you provide us with a remote session to debug this issue. Thanks in advance.
Шалом Шаббат! Ось на що лається налагоджувальна консоль VScode, інструмент аналізу: Debugging information is available via VSCode > Help > Toggle Developer Tools > Console. Failed to install PlatformIO IDE.
workbench.desktop.main.js:90 [Extension Host] Error: PlatformIO Core has
not been installed yet!
at u.value
(/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:802556)
at async j.check
(/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:10439)
at async
/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:45062
T @ workbench.desktop.main.js:90
workbench.desktop.main.js:620 ERR [Extension Host] (node:2201) [DEP0005]
DeprecationWarning: Buffer() is deprecated due to security and usability
issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or
Buffer.from() methods instead.
(Use exe --trace-deprecation ...
to show where the warning was created)
workbench.desktop.main.js:90 [Extension Host] (node:2201) [DEP0005]
DeprecationWarning: Buffer() is deprecated due to security and usability
issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or
Buffer.from() methods instead.
(Use exe --trace-deprecation ...
to show where the warning was created)
T @ workbench.desktop.main.js:90
workbench.desktop.main.js:620 ERR [Extension Host] Error: bad_status
at
/home/duke/.vscode/extensions/kiteco.kite-0.147.0/dist/kite-extension.js:2:53954
at process.processTicksAndRejections
(node:internal/process/task_queues:96:5)
workbench.desktop.main.js:90 [Extension Host] Error: bad_status
at
/home/duke/.vscode/extensions/kiteco.kite-0.147.0/dist/kite-extension.js:2:53954
at process.processTicksAndRejections
(node:internal/process/task_queues:96:5)
T @ workbench.desktop.main.js:90
workbench.desktop.main.js:1904 Overwriting grammar scope name to file
mapping for scope source.yaml.
Old grammar file:
file:///usr/share/code/resources/app/extensions/yaml/syntaxes/yaml.tmLanguage.json.
New grammar file:
file:///home/duke/.vscode/extensions/redhat.vscode-yaml-1.12.2/syntaxes/yaml.tmLanguage.json
register @ workbench.desktop.main.js:1904
workbench.desktop.main.js:90 [Extension Host] Error: Could not find
portable Python for linux_x86_64
at
/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:805094
at process.processTicksAndRejections
(node:internal/process/task_queues:96:5)
at async u.value
(/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:804487)
at async j.install
(/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:10606)
at async
/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/dist/extension.js:1:45694
T @ workbench.desktop.main.js:90
workbench.desktop.main.js:620 ERR [Extension Host] (node:2201) [DEP0147]
DeprecationWarning: In future versions of Node.js, fs.rmdir(path, {
recursive: true }) will be removed. Use fs.rm(path, { recursive: true })
instead
workbench.desktop.main.js:90 [Extension Host] (node:2201) [DEP0147]
DeprecationWarning: In future versions of Node.js, fs.rmdir(path, {
recursive: true }) will be removed. Use fs.rm(path, { recursive: true })
instead
T @ workbench.desktop.main.js:90
workbench.desktop.main.js:90 [Extension Host] runCommand /usr/bin/python3
Array(3) Object
workbench.desktop.main.js:90 [Extension Host] /usr/bin/python3 Error:
Error: The Python 3.9.2 (/usr/bin/python3) interpreter is not compatible.
Reason: Could not find distutils module
at
/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:5303
at ChildProcess.o
(/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:4601)
at ChildProcess.emit (node:events:526:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1092:16)
at Socket.
at
/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:5303
at ChildProcess.o
(/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:4601)
at ChildProcess.emit (node:events:526:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1092:16)
at Socket.
at
/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:5303
at ChildProcess.o
(/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:4601)
at ChildProcess.emit (node:events:526:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1092:16)
at Socket.
at
/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:5303
at ChildProcess.o
(/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:4601)
at ChildProcess.emit (node:events:526:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1092:16)
at Socket.
at
/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:5303
at ChildProcess.o
(/home/duke/.vscode/extensions/platformio.platformio-ide-3.1.1-linux-x64/node_modules/platformio-node-helpers/dist/index.js:1:4601)
at ChildProcess.emit (node:events:526:28)
at ChildProcess.emit (node:domain:475:12)
at maybeClose (node:internal/child_process:1092:16)
at Socket.
вт, 18 квіт. 2023 р. о 22:00 Ivan Kravets @.***> пише:
@ut4uss https://github.com/ut4uss, could you try to set platformio-ide.pioHomeServerHttpPort https://docs.platformio.org/en/latest/integration/ide/vscode.html#platformio-ide-piohomeserverhttpport to 45001? Also, does http://127.0.0.1:45001/ work if you start IDE?
— Reply to this email directly, view it on GitHub https://github.com/platformio/platformio-vscode-ide/issues/3408#issuecomment-1513657459, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7DJYDFGTZJL46HSIETSRHTXB3QFBANCNFSM6AAAAAATL27JWU . You are receiving this because you were mentioned.Message ID: @.***>
Could you check this issue https://github.com/platformio/platformio-vscode-ide/issues/907 ?
Hi Ivan, hi all
I spent most of today trying to install and run PIO. And the most weird, it's on a machine that has had it running before. First, Core refused to install, disabling the AV solved that part. Now Home installs but won't start. It times out. PIO CLI fails in the same way, and trying directly in the browser returns a page not found error. It may still be something related to the environment, as central adm keeps restricting things more and more everyday, or maybe it's something else in my PC, but I couldn't pinpoint the cause yet.
Can you help me move forward?
Thank you in advance.
[Extension Host] Found compatible PlatformIO Core 6.1.7 -> C:\Users\tales.maschio\.platformio\penv\Scripts\platformio.exe
console.ts:137 [Extension Host] PIO Core State
{core_version: '6.1.7', python_version: '3.11.3', core_dir: 'C:\\Users\\tales.maschio\\.platformio', cache_dir: 'C:\\Users\\tales.maschio\\.platformio\\.cache', penv_dir: 'C:\\Users\\tales.maschio\\.platformio\\penv', …}
console.ts:137 [Extension Host] runCommand C:\Users\tales.maschio\.platformio\penv\Scripts\python.exe
(14) ['-m', 'platformio', '-c', 'vscode', 'home', '--port', 8008, '--host', '127.0.0.1', '--session-id', '23da7162f70a651f99bed7b90e58810156493ed9', '--shutdown-timeout', 3600, '--no-open']
{_id: 'C:\\Users\\tales.maschio\\.platformio\\penv\\Scripts\\python.exe-0.5862289237306766'}
console.ts:137 [Extension Host] Error: Could not start PIO Home server: Timeout error
at Timeout._onTimeout (c:\Users\tales.maschio\.vscode\extensions\platformio.platformio-ide-3.1.1-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:10444)
at listOnTimeout (node:internal/timers:559:17)
at process.processTimers (node:internal/timers:502:7)
console.ts:137 [Extension Host] runCommand C:\Users\tales.maschio\.platformio\penv\Scripts\python.exe
(14) ['-m', 'platformio', '-c', 'vscode', 'home', '--port', 8008, '--host', '127.0.0.1', '--session-id', '23da7162f70a651f99bed7b90e58810156493ed9', '--shutdown-timeout', 3600, '--no-open']
{_id: 'C:\\Users\\tales.maschio\\.platformio\\penv\\Scripts\\python.exe-0.11763642717472722'}
console.ts:137 [Extension Host] Error: Could not start PIO Home server: Timeout error
at Timeout._onTimeout (c:\Users\tales.maschio\.vscode\extensions\platformio.platformio-ide-3.1.1-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:10444)
at listOnTimeout (node:internal/timers:559:17)
at process.processTimers (node:internal/timers:502:7)
console.ts:137 [Extension Host] runCommand C:\Users\tales.maschio\.platformio\penv\Scripts\python.exe
(14) ['-m', 'platformio', '-c', 'vscode', 'home', '--port', 8008, '--host', '127.0.0.1', '--session-id', '23da7162f70a651f99bed7b90e58810156493ed9', '--shutdown-timeout', 3600, '--no-open']
{_id: 'C:\\Users\\tales.maschio\\.platformio\\penv\\Scripts\\python.exe-0.760075246264907'}
console.ts:137 [Extension Host] Error: Could not start PIO Home server: Timeout error
at Timeout._onTimeout (c:\Users\tales.maschio\.vscode\extensions\platformio.platformio-ide-3.1.1-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:10444)
at listOnTimeout (node:internal/timers:559:17)
at process.processTimers (node:internal/timers:502:7)
notificationsAlerts.ts:42 Error: Could not start PIO Home server: Timeout error at Timeout._onTimeout (c:\Users\tales.maschio\.vscode\extensions\platformio.platformio-ide-3.1.1-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:10444) at listOnTimeout (node:internal/timers:559:17) at process.processTimers (node:internal/timers:502:7)...
log.ts:441 ERR [Extension Host] Error: Could not start PIO Home server: Timeout error
at Timeout._onTimeout (c:\Users\tales.maschio\.vscode\extensions\platformio.platformio-ide-3.1.1-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:10444)
at listOnTimeout (node:internal/timers:559:17)
at process.processTimers (node:internal/timers:502:7)
console.ts:137 [Extension Host] Error: Could not start PIO Home server: Timeout error
at Timeout._onTimeout (c:\Users\tales.maschio\.vscode\extensions\platformio.platformio-ide-3.1.1-win32-x64\node_modules\platformio-node-helpers\dist\index.js:1:10444)
at listOnTimeout (node:internal/timers:559:17)
at process.processTimers (node:internal/timers:502:7)
The command times out and says "Error:" without any further information:
PlatformIO Core can't download a package/write to disk. Something blocks it. Do you use any espionage software such as russian Kaspersky?
We use Bitdefender from Romania and Crowdstrike from USA. I disabled Bitdefender for testing purposes but results were the same. For disabling Crowdstrike I must ask to the central administration, haven't done that yet, but can do if needed. Our computers are part of a Windows Active Directory system but I'm local admin, maybe I should start VSCode as admin? Will try that and report back.
Do you use any espionage software
Not that we know, at least... Other thing I can do is monitor what's happening with Wireshark. Will try that too.
No difference when running VSCode as admin, as expected.
After running PlatformIO for the first time, installation of PIO Home takes a long time and at the end I get this:
and this:
So really looks like installation is timing out even tho I get a "finished" message.
Please contact me@ikravets.com directly to keep this thread clean. If we find a solution, we will share it here. Thanks!
Hello Ivan.
I finally managed to run PlatformIO.
I had tried before to install using an external network connection, one that has direct access to the internet without any firewall, but at that time I had the antivirus active so PIO Core would not install. After I disabled the AV, PIO Core installed even under the protected network, but PIO Home was still not going. Today I connected back to the open network and PIO Home finished installed and ran normally.
So the conclusion is:
After PIO Home finished its thing I returned to the protected network and all seems to be running well. I will report these problems to the people running our AV and FW systems and ask them to check what's wrong.
Thank you very much for your support. Best regards from Brazil.
Tales
@thermseekr, do you have access to the following resources when FW is enabled?
@ivankravets yes, positive for both.
Hi, i have this error
I am trying to create a project for an STM card in an mbed environment. I created the folder by executing the 'pio home' command, however when I open it in VSCode, the folders that relate to the mbed do not appear in the 'src' folder. try to reinstall the VSCode and python and nothing
@thermseekr, do you have access to the following resources when FW is enabled?
Hi, I have the same issue here. I can access to those website but can't use PIO in VSCode. From what I understand, VSCode doesn't use the custom Windows SSL Certificate my company installed.
Have you disabled "Http: Proxy Strict SSL"? See https://docs.platformio.org/en/latest/integration/ide/vscode.html#proxy-server-support
Please disable and restart VSCode.
Works fine, thanks for the info.
Hi friends. If you find yourself experiencing issues with corporate CA certificate not being recognized, I'd recommend use of the win-ca VScode package, its sole purpose is exposing the windows CA certificates to vscode extensions. No need to disable verification of the proxy strict SSL.
See here: https://marketplace.visualstudio.com/items?itemName=ukoloff.win-ca&ssr=false#overview
Any solution for this?? I am doing it on ubuntu 20.4 root@labuser-OptiPlex-5050:/home/labuser/Downloads# python3 get-platformio.py Installer version: 1.1.3 Platform: Linux-5.0.0-23-generic-x86_64-with-glibc2.25 Python version: 3.6.9 (default, Mar 10 2023, 16:46:00) [GCC 8.4.0] Python path: /usr/bin/python3 Creating a virtual environment at /root/.platformio/penv /usr/bin/python3 Error: Could not create PIO Core Virtual Environment. Please report to https://github.com/platformio/platformio-core-installer/issues
Could you remove ~/.platformio/penv
folder and restart VSCode? It should be fixed now.
Hi 11 Jan 2024 I can run it. I installed python 3.6.15 and python get_platformio.py.
https://stackoverflow.com/questions/72102435/how-to-install-python3-6-on-ubuntu-22-04
https://docs.platformio.org/en/stable/core/installation/methods/installer-script.html
@niboon39 could your issue be linked with https://github.com/platformio/platformio-core-installer/issues/85 ?
I had the smae problem, thanks to AI all sorted, these are the steps I took
CMD: pio update
CMD: pip uninstall platformio CMD: pip install -U platformio
Open VScode and install PIO Extension again
Is anyone looking into this? The ticket is a year old but it happened to me today, I just installed PlatformIO for the first time. If it's unstable I'm hesitant to spend time on onboarding myself.
@JosefWN, have you resoled your issue? What is your OS?
MacOS, but I already removed it, maybe I will give it a spin in the future!
We updated built-in Python for macOS. It should solve your issue. Please remove ~/.platformio
folder and install PlatformIO IDE Extension.
Where did you do that? The latest commit is from last month in this repo, and the latest release for the VS Code plugin was 2023-12-23? I installed it for the first time 4 days ago. Anyhow, I am not spending more time on this for now.
Error: Could not start PIO Home server: Timeout error at Timeout._onTimeout (c:\Users\Igor.vscode\extensions\platformio.platformio-ide-3.0.0-win32-x64\node_modules\platformio-node-helpers\dist\webpack:\platformio-node-helpers\src\home.js:182:9) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7) i need help
Removed platformio-core
package solved the issue on my CachyOS (Arch based) system.
I have a problem with this platformio
@HazemRagabElsayed , do you use espionage software (some call it "antivirus")? Please disable it for a while or add PlatformIO to the whitelist. It seems it blocks PlatformIO's subprocess PIO Home.
Yes I disabled all of defenders(security and firewall defender) and same problem is encountered
On Mon, Jul 29, 2024, 10:37 PM Ivan Kravets @.***> wrote:
@HazemRagabElsayed https://github.com/HazemRagabElsayed , do you use espionage software (some call it "antivirus")? Please disable it for a while or add PlatformIO to the whitelist. It seems it blocks PlatformIO's subprocess PIO Home.
— Reply to this email directly, view it on GitHub https://github.com/platformio/platformio-vscode-ide/issues/3408#issuecomment-2256753375, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT63RIQCGVOU3M2PN5MOI5DZO2KYJAVCNFSM6AAAAAATL27JWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJWG42TGMZXGU . You are receiving this because you were mentioned.Message ID: @.***>
@HazemRagabElsayed , do you use espionage software (some call it "antivirus")? Please disable it for a while or add PlatformIO to the whitelist. It seems it blocks PlatformIO's subprocess PIO Home.
Problem is solved it was because I installed Atmel studio and when I delete it and try to install PlatformIO again it is installed successfully
I got the same warnings. Is there no any solution to set up PlatformIO environment in offline computer?
For me the issue was fixed by removing an environment variable SSLKEYLOGFILE
from the Windows.
Al escribir "pio home" me aparece lo siguiente en rojo:
pio : El término 'pio' no se reconoce como nombre de un cmdlet, función, archivo de script o
programa ejecutable. Compruebe si escribió correctamente el nombre o, si incluyó una ruta de
acceso, compruebe que dicha ruta es correcta e inténtelo de nuevo.
En línea: 1 Carácter: 1
+ CategoryInfo : ObjectNotFound: (pio:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Solutions
pio home
. The PIO Home should be opened in your default web browser (which means all packages are downloaded). Restart VSCode.If the steps above didn't help you, please leave a comment below with further details and we will help you ASAP! 🤝
Exception