Skip to content

[cli] Cannot start browser application after starting the electron #3521

Open
@kittaakos

Description

Steps to reproduce:

  1. yarn && yarn run rebuild:electron
  2. yarn --cwd ./examples/electron start
  3. yarn run rebuild:browser
  4. yarn --cwd ./examples/browser start

1: yarn && yarn run rebuild:electron:

kittaakos@DESKTOP-VJRAMKC MINGW64 ~/dev/theia (mp/startup-window-title)
$ yarn && yarn run rebuild:electron
yarn install v1.10.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...

[...]

lerna success - @theia/example-electron
Done in 506.04s.
Done in 535.30s.
yarn run v1.10.1
$ theia rebuild:electron
Processing node-pty
Processing vscode-nsfw
Processing find-git-repositories
Done in 6.64s.

2: yarn --cwd ./examples/electron/ start:

kittaakos@DESKTOP-VJRAMKC MINGW64 ~/dev/theia (mp/startup-window-title)
$ yarn --cwd ./examples/electron/ start
yarn run v1.10.1
$ theia start

Starting the master backend process with 5000 (ms) timeout.
Starting server worker...
Server worker has been started. [ID: 1 | PID: 6520]
Server worker is ready to accept messages. [ID: 1 | PID: 6520]
root INFO Theia app listening on http://localhost:3000.
Received message which is neither a response nor a notification message:
"3000"

[...]

root INFO '--no-optional-locks' is a valid Git option for the current Git version: '2.17.1.windows.2'.
root INFO '--no-optional-locks' is a valid Git option for the current Git version: '2.17.1.windows.2'.
root INFO '--no-optional-locks' is a valid Git option for the current Git version: '2.17.1.windows.2'.
root INFO Stopped watching the git repository: file:///c%3A/Users/kittaakos/dev/theia
Done in 23.06s.

3: yarn run rebuild:browser:

kittaakos@DESKTOP-VJRAMKC MINGW64 ~/dev/theia (mp/startup-window-title)
$ yarn run rebuild:browser
yarn run v1.10.1
$ theia rebuild:browser
Reverting find-git-repositories
Reverting node-pty
Reverting vscode-nsfw
Done in 1.38s.

4: yarn --cwd ./examples/browser/ start:

kittaakos@DESKTOP-VJRAMKC MINGW64 ~/dev/theia (mp/startup-window-title)
$ yarn --cwd ./examples/browser/ start
yarn run v1.10.1
$ theia start
Starting the master backend process with 5000 (ms) timeout.
Starting server worker...
Server worker has been started. [ID: 1 | PID: 4484]
C:\Users\kittaakos\dev\theia\packages\core\lib\node\cluster\main.js:59
    throw reason;
    ^

Error: The specified module could not be found.
\\?\C:\Users\kittaakos\dev\theia\node_modules\vscode-nsfw\build\Release\nsfw.node
    at Object.Module._extensions..node (module.js:681:18)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (C:\Users\kittaakos\dev\theia\node_modules\vscode-nsfw\lib\src\index.js:3:16)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
Server worker has been disconnected. [ID: 1 | PID: 4484]
Server worker failed to start within 5000 milliseconds.
Pass a greater value as '--startup-timeout' option to increase the timeout or a negative to disable.
Done in 1.49s.

kittaakos@DESKTOP-VJRAMKC MINGW64 ~/dev/theia (mp/startup-window-title)
$

Metadata

Assignees

No one assigned

    Labels

    bugbugs found in the applicationtheia-cliissues related to the theia-cli

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions