-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
Broke compatibility with PlatformIO #47350
Comments
Same here. The auto-update of Visual Studio Code broke my platformio setup. There's also a report on platformio's tracker with some more details: |
|
There's no tasks.json file in my project's .vscode folder. (Is that to be expected?) |
That's ok, it sounds like the extension is contributing a task and either vscode is interpreting it incorrectly or the task is not formed correctly. @dbaeumer or the extension maintainer can investigate more. |
Wow! 😱 It seems like an URGENT bug in VSCode. Now, VSCode append WORKSPACE_ROOT for the each task's executable? Why? We don't specify a FULL path for an executable program because we don't know really where I don't know what should we do now. In theory, we can check all paths in system environment See https://github.com/platformio/platformio-vscode-ide/blob/develop/src/tasks.js#L261 @dbaeumer does it mean that the fix will be published in 2 weeks? We have ~170K active developers of VSCode + PlatformIO. We will receive very negative feedback :( Should we work on the quick fix on our side? Thanks in advance! P.S: I appreciate your work on the Task API! Thanks! I saw it in a changelog. That is really what do we need to make a significant improvement for PIO + VSCode. P.S.S: Please take a look at the screenshot below. VSCode appends WORKSAPCE_ROOT before executable file. As result, there is no |
@Tyriar is this bug related to Terminal? It totally blocked PlatformIO+VSCode on Windows https://community.platformio.org/t/platformio-run-upload-buttons-no-more-working-after-vsc-update-1-22-1/3899 |
A temporary solution is to roll back to 1.21 using https://code.visualstudio.com/updates/v1_21 and "Download" links. Also, maybe you will need to disable automatic updates for VSCode. |
@dbaeumer maybe a candidate for the recovery release? I'm not sure what caused this so I'm assuming it's on the tasks side. @ivankravets so it's Windows only? |
Yes, the only Windows is affected. |
I am able to reproduce this. Will look into what broke it. |
I started to debug why this is broken and the problem is that I when VS Code tries to find the executable the C:\Users\dirkb.platformio\penv\Scripts is not on the PATH in my system (e.g. the renderer) but it is in the terminal. Need to understand why this is the case. |
Understand it now. The reason for the breakage is that Platform IO brings its own PATH environment and |
The interesting questions is why that worked in the first place since under Windows the OS doesn't try to find an executable on the PATH when launching a process. The PATH must always be absolute. @Tyriar did the terminal or some of the underlying libraries get code to find the executable on the PATH under Windows. This would explain why it worked before. If this is the case then I could simply remove my code :-) |
OK. I found the code: https://github.com/Tyriar/node-pty/blob/master/src/win/path_util.cc#L31 However that only works if the extension is already provided. So I need to keep my code since simply using |
To verify:
The build task should succeed. |
Reopening the issue to discussion in bug standup. |
Yes that's it, there's an open issue to improve this: microsoft/node-pty#112 |
@Tyriar thanks. I wrote which in TS if that would help for you. It is here: https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/parts/tasks/electron-browser/terminalTaskSystem.ts#L691 |
We decided to include the fix in the fix in the next recovery build. |
Merged in release/1.22 |
@dbaeumer that does indeed help 👍 is this something we can push to node-pty and rely on it there? |
@Tyriar feel free to take the code and push it to node-pty. If it is there I will drop mine. |
Issue Type: Bug
Try and compile a program for ESP-IDF using Platform IO
VS Code version: Code 1.22.1 (950b8b0, 2018-04-06T02:26:57.615Z)
OS version: Windows_NT x64 6.1.7601
System Info
Extensions (7)
(3 theme extensions excluded)
The text was updated successfully, but these errors were encountered: