-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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] Update Theia to use Electron 3.x and Node 10.x #4750
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
ports: | ||
- port: 3000 | ||
tasks: | ||
- init: yarn install | ||
command: cd examples/browser && yarn start --hostname 0.0.0.0 ../.. | ||
- init: nvm install 10 && nvm use 10 && yarn | ||
command: yarn --cwd examples/browser start ../.. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will eventually fix #4818 too but you have to restore There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Gitpod is capable to auto expose localhost now, providing hostname is redundant. |
||
github: | ||
prebuilds: | ||
pullRequestsFromForks: true |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ shallow_clone: true | |
|
||
environment: | ||
matrix: | ||
- nodejs_version: "8" | ||
- nodejs_version: "10" | ||
|
||
platform: | ||
- x64 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,8 +174,7 @@ describe('Tree', () => { | |
const expectedRefreshedNodes = new Set([ | ||
retrieveNode<CompositeTreeNode>('1'), | ||
retrieveNode<CompositeTreeNode>('1.1'), | ||
retrieveNode<CompositeTreeNode>('1.2'), | ||
retrieveNode<CompositeTreeNode>('1.2.1')]); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a race condition here where not all nodes are deleted before the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Had a hard time with this one but why this test was OK before migration to node 10 ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the race simply gets further in different Node versions :/ |
||
retrieveNode<CompositeTreeNode>('1.2')]); | ||
model.onNodeRefreshed((e: Readonly<CompositeTreeNode>) => { | ||
result = result && expectedRefreshedNodes.has(e); | ||
expectedRefreshedNodes.delete(e); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,7 +106,7 @@ export class MarkdownPreviewHandler implements PreviewHandler { | |
if (!elementToReveal) { | ||
return; | ||
} | ||
elementToReveal.scrollIntoView({ behavior: 'instant' }); | ||
elementToReveal.scrollIntoView(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @AlexTugarev What are consequences of this change? Could you review the preview extension in this PR? I wonder why it's affected. It's not part of Node.js, but DOM api. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @akosyakov, fyi, |
||
} | ||
|
||
findElementForFragment(content: HTMLElement, link: string): HTMLElement | undefined { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do not we install
10.15.3
if the documentation says: "Preferably, use version10.15.3
"There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what issues do you see with using latest node 10? before we were using latest node 8, seemed to work just fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's the same in travis config btw
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just do not understand why do we recommend a version in the documentation but do not stick to it in the gitpod script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Electron ships with Node 10.15.3, there is a slight danger you could introduce incompatibilities if you build using a newer version, however I wouldn't want to restrict people to a specific release otherwise.
This was the same with Electron 2, you can't override the node version it uses.
IMO, the current set up gives the user the right amount of flexibility.