-
Notifications
You must be signed in to change notification settings - Fork 61
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
update repo for Electron 9 / node 12 #107
Conversation
We'll need to update a bit more - stay tuned:
|
194dd34
to
275d23e
Compare
@bhufmann PR updated to sync with parent PR. |
849b921
to
06ea2e0
Compare
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.
works well! Just wait for Bernd's PR to be merged and rebase on master
Looks like this is ready to go in, but I will need an approval before I can merge. |
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.
There you go! Thanks!
06ea2e0
to
e1b3ed7
Compare
It works for me on my laptop but I get errors on gitpod and no visualization graphs open successfully due the errors. Does GitPod work for you? |
I just rebased the PR - Gitpod is building the workspace - should be ready in a few minutes to test fresh. |
e1b3ed7
to
8878137
Compare
I was able to reproduce this problem. It looks like |
For whatever reason WebGL is disabled in Gitpod by default for our Electron app.
The same does not seem to happen locally, so this may not be an Electron Default. More likely it has to do with some container-related weirdness. It might have been expected, in such a case, that |
c06569b
to
052d5e3
Compare
Ok, I think everything should be working again. I will update the commit message to clarify the security trade-off involved in making the Electron example app work in Docker (Gitpod). The tradeoff is limited to |
Fixes #106 A few little tweaks are necessary to accommodate the new Electron and node versions. ATM the Electron example app fails at runtime when running on Gitpod, because of a missing a dynamic library: /workspace/theia-trace-extension/node_modules/electron/dist/electron: error while loading shared libraries: libgbm.so.1: cannot We need to update the Gitpod config so the dockerfile used for this repoi will contain a new Ubuntu package, required for Electron 9. This config file originally came from the main Theia repo, and the updated version is the same. See LICENSE.gitpod.md for more details. Security note: in order for the Electron version of the example application to work in Gitpod (probably Docker in general), two command-line arguments are required. These are not to be used in production since they decrease security. However they should only be needed momentarily for tests in Gitpod, until we can use the browser version in there and in any other future Cloud-based applications that will use the "trace" extension: --no-sandbox --ignore-gpu-blacklist These two arguments are used only in Gitpod, from `.gitpod.yml` Signed-off-by: Marc Dumais <[email protected]>
052d5e3
to
c2ee835
Compare
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.
Looks good to me. It works in GitPod and on my local machine.
Ok, merging! |
Fixes #106
A few little tweaks are necessary to accommodate the new Electron and node versions. ATM the Electron example app fails at runtime when running on Gitpod, because of a missing a dynamic library:
/workspace/theia-trace-extension/node_modules/electron/dist/electron: error while loading shared libraries: libgbm.so.1: cannot
We need to update the
Gitpod
config so the dockerfile used for this repoi will contain a new Ubuntu package, required for Electron 9. This config file originally came from the main Theia repo, and the updated version is the same. See LICENSE.gitpod.md for more details.Here's where the
--no-sandbox
idea came from - it permits the Electron version of the example app to start in Gitpod:eclipse-theia/theia#7968 (comment)
Signed-off-by: Marc Dumais [email protected]