Skip to content
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

Node 12 vs 14 #10013

Closed
paul-marechal opened this issue Aug 31, 2021 · 4 comments · Fixed by #11210
Closed

Node 12 vs 14 #10013

paul-marechal opened this issue Aug 31, 2021 · 4 comments · Fixed by #11210
Labels
dependencies pull requests that update a dependency file vscode issues related to VSCode compatibility

Comments

@paul-marechal
Copy link
Member

@eclipse-theia/core

I came across feedback from VS Code extension developers targeting Node.js 14 having trouble with Theia since we are targeting Node.js 12. The gist is that VS Code now uses Electron 13.1.7 which embarks Node.js 14, meaning that the plugin host will also run on Node.js 14 so extensions can now use newer APIs which would fail in our Node.js 12 runtime.

This seems to indicate we should move the Node.js lower bound along with what VS Code uses?

If we want to still support older Node.js version, then we'd have to document how doing so might break VS Code extensions' expectations by using an older runtime?

See: rust-lang/rust-analyzer#10061

@vince-fugnitto vince-fugnitto added dependencies pull requests that update a dependency file vscode issues related to VSCode compatibility labels Aug 31, 2021
@vince-fugnitto
Copy link
Member

I think it makes sense to update our lower bound to the active lts (node v14) to ensure we are compatible with vscode extensions which may make use of the newer APIs.

It is also the version we use when publishing builtins:

In general I think it would always be ideal to support newer lts versions which provide critical fixes.

@bd82
Copy link
Contributor

bd82 commented Feb 8, 2022

nodejs 12.x will soon reach EOL

are there plans to upgrade to 14/16 as the minimal version?

@paul-marechal
Copy link
Member Author

@bd82 Node 14 and 16 both work as of now:

But to make it nicer we need #10722, without it you need to pass --ignore-engines flag to yarn, otherwise it will complain even though there's no actual issue.

sybnex added a commit to acend/webshell-env that referenced this issue Feb 9, 2022
@msujew
Copy link
Member

msujew commented Feb 11, 2022

@paul-marechal Given that we use Electron 15 now, and #10722 is resolved, should be bump our baseline of Node to 14? Perhaps at least as the recommended version in our documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies pull requests that update a dependency file vscode issues related to VSCode compatibility
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants