-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Remove stream.pipeline(); on("close", resolve) workaround #3167
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
Comments
History of the bug and its detection: #3092 (comment) We probably need to wait until vscode adopts nodejs 13.x+ version. |
I think this workaround may have caused a bug for me. Steps to reproduce
Expected resultThe file downloads and the installation continues. Actual resultProgress freezes after "Downloading rust-analyzer server 100%". AnalysisI don't really get why, but the code gets stuck on this await block: If I comment it out, it appears to work. Hopefully it's not subtly breaking anything! Version Infocode-server version: 3.4.1 48f7c2724827e526eeaa6c2c151c520f48a61259 |
That's strange, you mentioned nodejs 10, but current vscode uses nodejs 12. Is it possible to upgrade the runtime version for you? |
Oops, I was wrong about the |
Yeah I suppose that since the inital bug was fixed in v13, this workaround might actually harm on node v13+ |
Aha, turns out there WAS already a bug tracking this: coder/code-server#1810 |
5841: Gate stream.pipeline workaround on fixed versions of node r=matklad a=Veetaha Fixes the symptom of coder/code-server#1810 Original report here: #3167 (comment) Thanks to @hjfreyer for precise investigation :D Co-authored-by: Veetaha <[email protected]>
VSCode is now on Node v14, is this still needed? |
@Azorlogh maybe not, want to file a PR? |
Sure! |
Well, it depends on what versions of vscode we support. It's specified in If this version and the following ones already use node14, then we are good to go! |
VSCode made the switch to Node 14 in April in version 1.56. |
10053: Remove old workaround in vscode extension r=lnicola a=Azorlogh See #3167. Co-authored-by: = <[email protected]>
Thanks for tackling this! I wonder how one could find such an old and |
Haha I've been peeking into the codebase lately. |
10062: Set esbuild target as node14 r=matklad a=mtsmfm ref: #10061 Currently, target version is not specified so it's esnext. https://esbuild.github.io/api/#target VSCode uses node 14 since version 1.56. #3167 (comment) Co-authored-by: Fumiaki MATSUSHIMA <[email protected]>
Since the following bug in nodejs
fs
core module was fixed nodejs/node#31776 we need to get rid of the following workaround as per nodejs/node#31776 (comment) https://github.com/rust-analyzer/rust-analyzer/blob/77d27c67c1dadce4abe7a6a97c0b73eaa3706e60/editors/code/src/installation/download_file.ts#L44-L50ACHTUNG! Wait until vscode officially migrates to relevant nodejs version where this is fixed, update our vscode version requirements and only then remove the workaround.

Current version
1.42
of vscode usesnodejs 12.4
The text was updated successfully, but these errors were encountered: