-
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 example not running in windows machine #6529
Comments
@eclipse-theia/eclipse-theia Could someone with Windows machine double check? |
@NitinKhandelwal1947, do you have a stack trace? What is your |
Here you go:
|
|
@tsmaeder, thanks but I have no idea what you did and I do not understand how the Theia electron example relates to the
@NitinKhandelwal1947, any chance you can share your |
Where? |
According to Electron documentation, this issue comes from the way the They have a commit that enables the I was able to get past that error on my Windows machine by editing this flag to |
I think the following patch fixes that issue: #6255 Edit: It partially fixes the issue, another one appears when using the linked PR. |
It's the output of doing "yarn start" in the electron example folder. Building works fine, running does not. |
i am trying to build and package theia as electron app for Mac and Windows machine. Basically trying to make dmg and .exe . I took package.json:-
packaging is happening in windows machine but when try to execute or run the .exe its failing with native dependency like find-git-repositories. |
|
I thought that it is not possible to bundle from yarn workspaces? See #4874 Correct me if i'm wrong @kittaakos You could setup the standalone package as here: https://github.com/theia-ide/theia-apps/tree/master/theia-electron |
@kittaakos @akosyakov I can confirm that building and running the electron example does not work for me on Windows 10 (this is what the issue title and description describe). I do a git clone, yarn , yarn rebuild:electron and then yarn run start from the electron example. I provided a stack trace of my failure. |
@tsmaeder understood, just wanted to point out that bundling from sources won't work anyway since @NitinKhandelwal1947 is trying it |
@tsmaeder btw could you try again since #6255 was merged and according to #6529 (comment) it could help |
I pulled this morning, so should have the contents of the merged PR and removed everything from node_modules and examples/electron node-modules. That should cover the case, right @akosyakov ? |
This might be related to nodejs/node-gyp#1933 |
@sorekz this is precisely the error I see from this PR: #6538 (comment) |
Hello Team I found one solution for this issue, just run the below command npm install sqlite3 --build-from-source --runtime-electron --target-|YOUR ELECTRON VERSION| --dist-url=https://atom.io/download/electron After running the above command, please run the - npm rebuild Please let me know if anyone is able to resolve the issue with my solution. Thanks |
Thanks @marechal-p it worked for me. |
Description
Electron example not running in windows machine
Reproduction Steps
yarn && yarn rebuild:electron && cd examples/electron && yarn start
Electron window does not pops up.
Also observed sometimes failing with native dependency find-git-repositories
Error: The specified procedure could not be found findGitRepos.node
$ yarn rebuild:electron
yarn run v1.7.0
$ theia rebuild:electron
Processing @theia/node-pty
Processing nsfw
Processing native-keymap
Processing find-git-repositories
Done in 7.96s.
$ cd examples/electron/
$ yarn start
yarn run v1.7.0
$ theia start --plugins=local-dir:../../plugins
Done in 2.74s.
OS and Theia version:
Windows 10
yarn version:- 1.7.0
node version:- 10.15.3
npm version:- 4.2.0
Diagnostics:
The text was updated successfully, but these errors were encountered: