-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[electron] Investigate whether we can bump up to a newer version #3693
Comments
So far I have electron upgraded to version 2.0.14 which is still using node 8.9.x. It's unbelievably slow to debug however! Is the purpose of the task to get to node 10.x as well, and/or can this upgrade be done in stages? |
Does anyone know why Theia seems to be using a modified copy of nsfw: https://www.npmjs.com/package/vscode-nsfw The npm page links it back to the original source which makes it look suspicious. |
@kittaakos re: the original issue above, as Theia targets ES5, I was under the impression |
👍
Debugging the electron application was always extremely slow on my local environment.
No. +1 for tackling the Node.js version update in a separate PR.
The |
@thegecko nsfw was not supported by an original author for long time, and vscode team forked to fix some crucial bugs and make it usable for Electron 3 as far as I know. We use their fork. |
es5 is well supported by latest browsers already, the issue is only with electron
I believe that generally there is no such thing like tsc poly-fills for runtime features, tsc takes care about syntax compatibility. We could look 3rd party array polyfills, true. But then the latest stable electron is 3.0.10 with node 10.2.0. Could we switch to it? |
I would not force Node.js 10x. VS Code does not do it either: |
I don't mean forcing. Our baseline still will be the latest node 8 for backward compatibility. But if we use Electron 3, it already comes bundled with node 10.2.0. We cannot change it, I hope it would be fine and node 10 is compatible with node 8. |
I continued looking into this yesterday and have Theia working with electron 3. I did need to move everything to node 10 however as building things such as I'll try to get it working with node 8, but I'm not sure it's possible. We may need to decide to move to node 10 (for electron at least) in order to make this work. |
@thegecko thanks for checking, I've added it to tomorrow agenda to discuss with what we want to stick |
Just got electron 3 built with node 8.x :) Had to remove the Java plugin to get it working, though. Will node 8.x be enough to use the features mentioned in the OP however? |
@thegecko, I am collecting the decision we made during the tcon, please add/update if needed:
|
@kittaakos, that sounds about right. I've created #3728, #3729 and #3730 to track the outcomes. I think this issue can be closed in favour of them? |
I am closing this. Please reopen if required. |
The problem in a nutshell:
With the current TS version, we can do
Array.values(): IterableIterator<T>;
. It is from/typescript/lib/lib.es2015.iterable.d.ts
. But in electron, at runtime, we still have Node.js 8.x. So it will be a runtime error.The text was updated successfully, but these errors were encountered: