-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
IOError: PackageManager is unable to install tool #61
Comments
What are your OS version and locale? |
This is a VSCode Terminal bug. I played a few hours on a remote machine (some of our users provided remote access) with this issue yesterday. The problem is linked with Python Socket library. I don't know how does it relate to VSCode Terminal extension but it raises from urllib2 import urlopen
url = "http://dl.platformio.org/packages/toolchain-xtensa-windows-1.40802.0.tar.gz"
r = urlopen(url)
i = 0
for chunk in r.read(1024):
i += 1
print i If you run this script on an affected machine using native CMD terminal or even our Terminal for Atom, there is no issue. I have a few VM machines with different Window versions and can't reproduce it. We will provide a step-by-step guide in our docs for VSCode in "Know issues" section and explain how to use installed PIO Core with native Related issues: https://community.platformio.org/t/packagemanager-is-unable-to-install-tool/2662 @Tyriar do you have any ideas? We experience this problem a long time. I know you use |
Docs is updated: http://docs.platformio.org/en/latest/ide/vscode.html#known-issues |
@ivankravets VS Code now uses node-pty which has diverged significantly from pty.js, maybe the problem is in one of the changes? |
@Tyriar would you like to have access to the affected machine and debug this issue? I can agree that with our user. Thanks! |
Win10 x64, locale sk_SK.
…--------------------------
Ing. Peter Javorský
2017-12-14 14:18 GMT+01:00 Ivan Kravets <notifications@github.com>:
What are your OS version and locale?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAsEL46SQzLztxKEkLAKXZvoBUvvaUeNks5tASAxgaJpZM4RBozJ>
.
|
@tekk please open PIO IDE Terminal in VSCode and type |
@ivankravets I think this class of issues can probably be reproduced easily, I don't have time to investigate atm though unfortunately. |
...
|
@tekk here is temporary solution http://docs.platformio.org/en/latest/ide/vscode.html#known-issues. You need to do that one time. Let's wait when @Tyriar will fix this issue with VSCode. Otherwise, please switch to Atom where all work without any problems. |
Yup I've already did that. It's a pitty that VS Code integration is so poor compared to Atom. I prefer VS Code... Thanks anyway. |
We depend on a few blocked issues by @microsoft for a few months. I think they will fix them next year or in 2020. The process is very slow. I even do not know when this issue with terminal and |
|
@Tyriar how can we disable VSCode terminal for tasks? I remember 1.0.0 version of tasks.json has used default Output Panel. Starting from 2.0.0 VSCode switched to a terminal which leads to a ton of problems. I don't see in API how to disable terminal for tasks. Our source code for Tasks. I see ~5,000 IOError exceptions in our telemetry stats reported by hundred users who use VSCode+Windows for the last days. It seems that we should disable our extension for Windows users to avoid misunderstanding with this issue. Also, all Python users are affected who use sockets or multithread features. /cc @dbaeumer Thanks! |
@ivankravets I did exactly the steps you wrote. (I had 3 different pythons on my system and there was C:\python27 dir still after uninstalling them). I ran Atom. It installed PlatformIO Core. After restarting, PlafrormIO Home page was stuck (kept loading forever). So after some 5-10 minutes I closed it. Now I closed Atom, and opened VSCode. Then I tried to compile under VSCode and it also compiled fine. Last thing I wanted to try is to update
Is this that Known Issue? Even after this the project compiled fine. This solved my issues with VSCode and Atom. |
@ivankravets contributed tasks can only be executed in the terminal. There is no support to execute them in the deprecated output runner. Task contribution via extensions is a feature that got introduced with running tasks in the terminal and was never available with task being executed in the output channel. |
@dbaeumer Thanks! Now we have a clear picture. I'll add information to our site and warning in our extension that we don't support VSCode for Windows in a case with this bug. Happy Holidays! |
Please don't abandon VSCode. |
FYI the Windows team has fixed this, it will take time to get the update out though microsoft/vscode#36630 |
Thanks, @Tyriar for the info! |
It is now march 2018 and this bug is still not fixed, the PlatformIO IDE comparison chart clearly shows VSCode as the better host IDE and yet something as simple as installing a package basically renders the whole project unusable. |
@Ravenheart Thank you very much for the NEGATIVE review https://marketplace.visualstudio.com/items?itemName=platformio.platformio-ide#review-details. Please read this issue carefully, we can't fix it because the bug is linked with @microsoft (not with @platformio) |
@Ravenheart yes there is nothing @ivankravets or even the VS Code team can do about this, it's a regression in Windows which is already fixed but takes a long time to roll out due to the complexity of the project. |
Temporary workaround for VSCode issue in platformio/platformio-core@59fe190 |
Please re-run in terminal |
This is a known bug with Microsoft VSCode and we depend on it microsoft/vscode#36630
Temporary solution
The text was updated successfully, but these errors were encountered: