Skip to content

Instantly share code, notes, and snippets.

@caleywoods
Created September 16, 2019 20:41
Show Gist options
  • Save caleywoods/840dfcee6d859218044c519edeb79247 to your computer and use it in GitHub Desktop.
Save caleywoods/840dfcee6d859218044c519edeb79247 to your computer and use it in GitHub Desktop.
> var cmd = cp.spawn('/app/.vscode-test/vscode-1.38.1/VSCode-linux-x64/code', ars);
undefined
> { Error: spawn /app/.vscode-test/vscode-1.38.1/VSCode-linux-x64/code ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
at onErrorNT (internal/child_process.js:415:16)
at process._tickCallback (internal/process/next_tick.js:63:19)
errno: 'ENOENT',
code: 'ENOENT',
syscall:
'spawn /app/.vscode-test/vscode-1.38.1/VSCode-linux-x64/code',
path: '/app/.vscode-test/vscode-1.38.1/VSCode-linux-x64/code',
spawnargs:
[ '/app/out/test',
'--extensionDevelopmentPath=/app',
'--extensionTestsPath=/app/out/test',
'--locale=en' ],
domainEmitter:
ChildProcess {
domain:
Domain {
domain: null,
_events: [Object],
_eventsCount: 3,
_maxListeners: undefined,
members: [] },
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
_closesNeeded: 3,
_closesGot: 0,
connected: false,
signalCode: null,
exitCode: -2,
killed: false,
spawnfile: '/app/.vscode-test/vscode-1.38.1/VSCode-linux-x64/code',
_handle: null,
spawnargs:
[ '/app/.vscode-test/vscode-1.38.1/VSCode-linux-x64/code',
'/app/out/test',
'--extensionDevelopmentPath=/app',
'--extensionTestsPath=/app/out/test',
'--locale=en' ],
pid: undefined,
stdin:
Socket {
connecting: false,
_hadError: false,
_handle: null,
_parent: null,
_host: null,
_readableState: [ReadableState],
readable: false,
domain: [Domain],
_events: [Object],
_eventsCount: 1,
_maxListeners: undefined,
_writableState: [WritableState],
writable: false,
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
[Symbol(asyncId)]: 2696,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0 },
stdout:
Socket {
connecting: false,
_hadError: false,
_handle: [Pipe],
_parent: null,
_host: null,
_readableState: [ReadableState],
readable: true,
domain: [Domain],
_events: [Object],
_eventsCount: 2,
_maxListeners: undefined,
_writableState: [WritableState],
writable: false,
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
[Symbol(asyncId)]: 2697,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0 },
stderr:
Socket {
connecting: false,
_hadError: false,
_handle: [Pipe],
_parent: null,
_host: null,
_readableState: [ReadableState],
readable: true,
domain: [Domain],
_events: [Object],
_eventsCount: 2,
_maxListeners: undefined,
_writableState: [WritableState],
writable: false,
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: null,
_server: null,
[Symbol(asyncId)]: 2698,
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: null,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0 },
stdio: [ [Socket], [Socket], [Socket] ] },
domain:
Domain {
domain: null,
_events:
[Object: null prototype] {
removeListener: [Function: updateExceptionCapture],
newListener: [Function: updateExceptionCapture],
error: [Function: debugDomainError] },
_eventsCount: 3,
_maxListeners: undefined,
members: [] },
domainThrown: false }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment