-
Notifications
You must be signed in to change notification settings - Fork 228
Open
Description
Context
I'm trying to launch a VS Code window using Spectron. Here's the setup:
app = new Application({
path: vscodeExecutablePath,
args: [
"--no-sandbox",
"--disable-updates",
"--skip-welcome",
"--skip-release-notes",
"--disable-workspace-trust",
`--extensionDevelopmentPath=${extensionPath}`,
],
requireName: "nodeRequire",
});
The VS Code version I'm launching is 1.66.2 with the following environment:
ersion: 1.66.2 (Universal)
Commit: dfd34e8260c270da74b5c2d86d61aee4b6d56977
Date: 2022-04-11T07:49:20.994Z (1 wk ago)
Electron: 17.2.0
Chromium: 98.0.4758.109
Node.js: 16.13.0
V8: 9.8.177.11-electron.0
OS: Darwin arm64 21.2.0
I confirm that vscodeExecutablePath
is correct as I see the window launching. Yet the app.start()
throws the following error:
[0 chromedriver 0x0000000100cb8954 chromedriver + 4196692
1 chromedriver 0x0000000100c4bf64 chromedriver + 3751780
2 chromedriver 0x00000001008da894 chromedriver + 141460
3 chromedriver 0x00000001008dd230 chromedriver + 152112
4 chromedriver 0x00000001008dd0d8 chromedriver + 151768
5 chromedriver 0x00000001008dd948 chromedriver + 153928
6 chromedriver 0x000000010092cc78 chromedriver + 478328
7 chromedriver 0x000000010092c40c chromedriver + 476172
8 chromedriver 0x00000001008fd990 chromedriver + 285072
9 chromedriver 0x00000001008fe430 chromedriver + 287792
10 chromedriver 0x0000000100c78b40 chromedriver + 3935040
11 chromedriver 0x0000000100c91320 chromedriver + 4035360
12 chromedriver 0x0000000100c9601c chromedriver + 4055068
13 chromedriver 0x0000000100c91b68 chromedriver + 4037480
14 chromedriver 0x0000000100c6e7d8 chromedriver + 3893208
15 chromedriver 0x0000000100caada4 chromedriver + 4140452
16 chromedriver 0x0000000100caaf18 chromedriver + 4140824
17 chromedriver 0x0000000100cbf1a8 chromedriver + 4223400
18 libsystem_pthread.dylib 0x0000000181cbd240 _pthread_start + 148
19 libsystem_pthread.dylib 0x0000000181cb8024 thread_start + 8
] {
name: 'unknown error'
} unknown error: call function result missing int 'status'
(Session info: chrome=98.0.4758.109)
Dependencies
{
"spectron": "19.0.0"
}
Transient dependencies:
βββ¬ [email protected]
βββ [email protected]
βββ¬ [email protected]
βββ [email protected]
Things I've tried
- Ensured I'm using the correct Spectron version in regards to the Electron version I'm trying to render.
- Ensured I'm using the correct chromedriver (you can see in the error trace that the version of the chromedriver and the Chromium version used by VS Code are the same).
Expected behavior
I can launch the given VS Code executable without issues.
Metadata
Metadata
Assignees
Labels
No labels