@theia/process 1.67.0-next.13 → 1.67.0-next.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +3 -3
- package/lib/common/process-common-module.d.ts +0 -4
- package/lib/common/process-common-module.d.ts.map +0 -1
- package/lib/common/process-common-module.js +0 -23
- package/lib/common/process-common-module.js.map +0 -1
- package/lib/common/process-manager-types.d.ts +0 -36
- package/lib/common/process-manager-types.d.ts.map +0 -1
- package/lib/common/process-manager-types.js +0 -24
- package/lib/common/process-manager-types.js.map +0 -1
- package/lib/common/shell-command-builder.d.ts +0 -50
- package/lib/common/shell-command-builder.d.ts.map +0 -1
- package/lib/common/shell-command-builder.js +0 -170
- package/lib/common/shell-command-builder.js.map +0 -1
- package/lib/common/shell-command-builder.slow-spec.d.ts +0 -10
- package/lib/common/shell-command-builder.slow-spec.d.ts.map +0 -1
- package/lib/common/shell-command-builder.slow-spec.js +0 -405
- package/lib/common/shell-command-builder.slow-spec.js.map +0 -1
- package/lib/common/shell-quoting.d.ts +0 -92
- package/lib/common/shell-quoting.d.ts.map +0 -1
- package/lib/common/shell-quoting.js +0 -146
- package/lib/common/shell-quoting.js.map +0 -1
- package/lib/common/shell-quoting.spec.d.ts +0 -2
- package/lib/common/shell-quoting.spec.d.ts.map +0 -1
- package/lib/common/shell-quoting.spec.js +0 -171
- package/lib/common/shell-quoting.spec.js.map +0 -1
- package/lib/node/dev-null-stream.d.ts +0 -18
- package/lib/node/dev-null-stream.d.ts.map +0 -1
- package/lib/node/dev-null-stream.js +0 -42
- package/lib/node/dev-null-stream.js.map +0 -1
- package/lib/node/index.d.ts +0 -7
- package/lib/node/index.d.ts.map +0 -1
- package/lib/node/index.js +0 -25
- package/lib/node/index.js.map +0 -1
- package/lib/node/multi-ring-buffer.d.ts +0 -71
- package/lib/node/multi-ring-buffer.d.ts.map +0 -1
- package/lib/node/multi-ring-buffer.js +0 -300
- package/lib/node/multi-ring-buffer.js.map +0 -1
- package/lib/node/multi-ring-buffer.spec.d.ts +0 -2
- package/lib/node/multi-ring-buffer.spec.d.ts.map +0 -1
- package/lib/node/multi-ring-buffer.spec.js +0 -423
- package/lib/node/multi-ring-buffer.spec.js.map +0 -1
- package/lib/node/process-backend-module.d.ts +0 -4
- package/lib/node/process-backend-module.d.ts.map +0 -1
- package/lib/node/process-backend-module.js +0 -52
- package/lib/node/process-backend-module.js.map +0 -1
- package/lib/node/process-manager.d.ts +0 -34
- package/lib/node/process-manager.d.ts.map +0 -1
- package/lib/node/process-manager.js +0 -103
- package/lib/node/process-manager.js.map +0 -1
- package/lib/node/process.d.ts +0 -96
- package/lib/node/process.d.ts.map +0 -1
- package/lib/node/process.js +0 -146
- package/lib/node/process.js.map +0 -1
- package/lib/node/pseudo-pty.d.ts +0 -24
- package/lib/node/pseudo-pty.d.ts.map +0 -1
- package/lib/node/pseudo-pty.js +0 -40
- package/lib/node/pseudo-pty.js.map +0 -1
- package/lib/node/raw-process.d.ts +0 -47
- package/lib/node/raw-process.d.ts.map +0 -1
- package/lib/node/raw-process.js +0 -104
- package/lib/node/raw-process.js.map +0 -1
- package/lib/node/raw-process.spec.d.ts +0 -2
- package/lib/node/raw-process.spec.d.ts.map +0 -1
- package/lib/node/raw-process.spec.js +0 -163
- package/lib/node/raw-process.spec.js.map +0 -1
- package/lib/node/task-terminal-process.d.ts +0 -11
- package/lib/node/task-terminal-process.d.ts.map +0 -1
- package/lib/node/task-terminal-process.js +0 -43
- package/lib/node/task-terminal-process.js.map +0 -1
- package/lib/node/terminal-process.d.ts +0 -61
- package/lib/node/terminal-process.d.ts.map +0 -1
- package/lib/node/terminal-process.js +0 -252
- package/lib/node/terminal-process.js.map +0 -1
- package/lib/node/terminal-process.spec.d.ts +0 -2
- package/lib/node/terminal-process.spec.d.ts.map +0 -1
- package/lib/node/terminal-process.spec.js +0 -104
- package/lib/node/terminal-process.spec.js.map +0 -1
- package/lib/node/test/process-test-container.d.ts +0 -3
- package/lib/node/test/process-test-container.d.ts.map +0 -1
- package/lib/node/test/process-test-container.js +0 -29
- package/lib/node/test/process-test-container.js.map +0 -1
- package/lib/node/utils.d.ts +0 -17
- package/lib/node/utils.d.ts.map +0 -1
- package/lib/node/utils.js +0 -78
- package/lib/node/utils.js.map +0 -1
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// *****************************************************************************
|
|
4
|
-
// Copyright (C) 2017 Ericsson and others.
|
|
5
|
-
//
|
|
6
|
-
// This program and the accompanying materials are made available under the
|
|
7
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
8
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
9
|
-
//
|
|
10
|
-
// This Source Code may also be made available under the following Secondary
|
|
11
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
12
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
13
|
-
// with the GNU Classpath Exception which is available at
|
|
14
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
15
|
-
//
|
|
16
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
17
|
-
// *****************************************************************************
|
|
18
|
-
const chai = require("chai");
|
|
19
|
-
const process = require("process");
|
|
20
|
-
const stream = require("stream");
|
|
21
|
-
const process_test_container_1 = require("./test/process-test-container");
|
|
22
|
-
const raw_process_1 = require("./raw-process");
|
|
23
|
-
const temp = require("temp");
|
|
24
|
-
const fs = require("fs");
|
|
25
|
-
const path = require("path");
|
|
26
|
-
/* Allow to create temporary files, but delete them when we're done. */
|
|
27
|
-
const track = temp.track();
|
|
28
|
-
/**
|
|
29
|
-
* Globals
|
|
30
|
-
*/
|
|
31
|
-
const expect = chai.expect;
|
|
32
|
-
const FORK_TEST_FILE = path.join(__dirname, '../../src/node/test/process-fork-test.js');
|
|
33
|
-
describe('RawProcess', function () {
|
|
34
|
-
this.timeout(20000);
|
|
35
|
-
let rawProcessFactory;
|
|
36
|
-
beforeEach(() => {
|
|
37
|
-
rawProcessFactory = (0, process_test_container_1.createProcessTestContainer)().get(raw_process_1.RawProcessFactory);
|
|
38
|
-
});
|
|
39
|
-
after(() => {
|
|
40
|
-
track.cleanupSync();
|
|
41
|
-
});
|
|
42
|
-
it('test error on non-existent path', async function () {
|
|
43
|
-
const error = await new Promise((resolve, reject) => {
|
|
44
|
-
const proc = rawProcessFactory({ command: '/non-existent' });
|
|
45
|
-
proc.onStart(reject);
|
|
46
|
-
proc.onError(resolve);
|
|
47
|
-
proc.onExit(reject);
|
|
48
|
-
});
|
|
49
|
-
expect(error.code).eq('ENOENT');
|
|
50
|
-
});
|
|
51
|
-
it('test error on non-executable path', async function () {
|
|
52
|
-
// Create a non-executable file.
|
|
53
|
-
const f = track.openSync('non-executable');
|
|
54
|
-
fs.writeSync(f.fd, 'echo bob');
|
|
55
|
-
// Make really sure it's non-executable.
|
|
56
|
-
let mode = fs.fstatSync(f.fd).mode;
|
|
57
|
-
mode &= ~fs.constants.S_IXUSR;
|
|
58
|
-
mode &= ~fs.constants.S_IXGRP;
|
|
59
|
-
mode &= ~fs.constants.S_IXOTH;
|
|
60
|
-
fs.fchmodSync(f.fd, mode);
|
|
61
|
-
fs.closeSync(f.fd);
|
|
62
|
-
const error = await new Promise((resolve, reject) => {
|
|
63
|
-
const proc = rawProcessFactory({ command: f.path });
|
|
64
|
-
proc.onStart(reject);
|
|
65
|
-
proc.onError(resolve);
|
|
66
|
-
proc.onExit(reject);
|
|
67
|
-
});
|
|
68
|
-
// do not check the exact error code as this seems to change between nodejs version
|
|
69
|
-
expect(error).to.exist;
|
|
70
|
-
});
|
|
71
|
-
it('test start event', function () {
|
|
72
|
-
return new Promise(async (resolve, reject) => {
|
|
73
|
-
const args = ['-e', 'process.exit(3)'];
|
|
74
|
-
const rawProcess = rawProcessFactory({ command: process.execPath, 'args': args });
|
|
75
|
-
rawProcess.onStart(resolve);
|
|
76
|
-
rawProcess.onError(reject);
|
|
77
|
-
rawProcess.onExit(reject);
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
it('test exit', async function () {
|
|
81
|
-
const args = ['--version'];
|
|
82
|
-
const rawProcess = rawProcessFactory({ command: process.execPath, 'args': args });
|
|
83
|
-
const p = new Promise((resolve, reject) => {
|
|
84
|
-
rawProcess.onError(reject);
|
|
85
|
-
rawProcess.onExit(event => {
|
|
86
|
-
if (event.code === undefined) {
|
|
87
|
-
reject(new Error('event.code is undefined'));
|
|
88
|
-
}
|
|
89
|
-
else {
|
|
90
|
-
resolve(event.code);
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
const exitCode = await p;
|
|
95
|
-
expect(exitCode).equal(0);
|
|
96
|
-
});
|
|
97
|
-
it('test pipe stdout stream', async function () {
|
|
98
|
-
const output = await new Promise(async (resolve, reject) => {
|
|
99
|
-
const args = ['-e', 'console.log("text to stdout")'];
|
|
100
|
-
const outStream = new stream.PassThrough();
|
|
101
|
-
const rawProcess = rawProcessFactory({ command: process.execPath, 'args': args });
|
|
102
|
-
rawProcess.onError(reject);
|
|
103
|
-
rawProcess.outputStream.pipe(outStream);
|
|
104
|
-
let buf = '';
|
|
105
|
-
outStream.on('data', data => {
|
|
106
|
-
buf += data.toString();
|
|
107
|
-
});
|
|
108
|
-
outStream.on('end', () => {
|
|
109
|
-
resolve(buf.trim());
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
expect(output).to.be.equal('text to stdout');
|
|
113
|
-
});
|
|
114
|
-
it('test pipe stderr stream', async function () {
|
|
115
|
-
const output = await new Promise(async (resolve, reject) => {
|
|
116
|
-
const args = ['-e', 'console.error("text to stderr")'];
|
|
117
|
-
const outStream = new stream.PassThrough();
|
|
118
|
-
const rawProcess = rawProcessFactory({ command: process.execPath, 'args': args });
|
|
119
|
-
rawProcess.onError(reject);
|
|
120
|
-
rawProcess.errorStream.pipe(outStream);
|
|
121
|
-
let buf = '';
|
|
122
|
-
outStream.on('data', data => {
|
|
123
|
-
buf += data.toString();
|
|
124
|
-
});
|
|
125
|
-
outStream.on('end', () => {
|
|
126
|
-
resolve(buf.trim());
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
expect(output).to.be.equal('text to stderr');
|
|
130
|
-
});
|
|
131
|
-
it('test forked pipe stdout stream', async function () {
|
|
132
|
-
const args = ['version'];
|
|
133
|
-
const rawProcess = rawProcessFactory({ modulePath: FORK_TEST_FILE, args, options: { stdio: 'pipe' } });
|
|
134
|
-
const outStream = new stream.PassThrough();
|
|
135
|
-
const p = new Promise((resolve, reject) => {
|
|
136
|
-
let version = '';
|
|
137
|
-
outStream.on('data', data => {
|
|
138
|
-
version += data.toString();
|
|
139
|
-
});
|
|
140
|
-
outStream.on('end', () => {
|
|
141
|
-
resolve(version.trim());
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
rawProcess.outputStream.pipe(outStream);
|
|
145
|
-
expect(await p).to.be.equal('1.0.0');
|
|
146
|
-
});
|
|
147
|
-
it('test forked pipe stderr stream', async function () {
|
|
148
|
-
const rawProcess = rawProcessFactory({ modulePath: FORK_TEST_FILE, args: [], options: { stdio: 'pipe' } });
|
|
149
|
-
const outStream = new stream.PassThrough();
|
|
150
|
-
const p = new Promise((resolve, reject) => {
|
|
151
|
-
let version = '';
|
|
152
|
-
outStream.on('data', data => {
|
|
153
|
-
version += data.toString();
|
|
154
|
-
});
|
|
155
|
-
outStream.on('end', () => {
|
|
156
|
-
resolve(version.trim());
|
|
157
|
-
});
|
|
158
|
-
});
|
|
159
|
-
rawProcess.errorStream.pipe(outStream);
|
|
160
|
-
expect(await p).to.have.string('Error');
|
|
161
|
-
});
|
|
162
|
-
});
|
|
163
|
-
//# sourceMappingURL=raw-process.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"raw-process.spec.js","sourceRoot":"","sources":["../../src/node/raw-process.spec.ts"],"names":[],"m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unique symbol;
|
|
3
|
-
export interface TaskTerminalProcessFactory {
|
|
4
|
-
(options: TerminalProcessOptions): TaskTerminalProcess;
|
|
5
|
-
}
|
|
6
|
-
export declare class TaskTerminalProcess extends TerminalProcess {
|
|
7
|
-
exited: boolean;
|
|
8
|
-
attachmentAttempted: boolean;
|
|
9
|
-
protected onTerminalExit(code: number | undefined, signal: string | undefined): void;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=task-terminal-process.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-terminal-process.d.ts","sourceRoot":"","sources":["../../src/node/task-terminal-process.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE7E,eAAO,MAAM,0BAA0B,eAAuC,CAAC;AAC/E,MAAM,WAAW,0BAA0B;IACvC,CAAC,OAAO,EAAE,sBAAsB,GAAG,mBAAmB,CAAC;CAC1D;AAED,qBACa,mBAAoB,SAAQ,eAAe;IAE7C,MAAM,UAAS;IACf,mBAAmB,UAAS;cAEhB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;CAUhG"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2021 SAP SE or an SAP affiliate company and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.TaskTerminalProcess = exports.TaskTerminalProcessFactory = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const terminal_process_1 = require("./terminal-process");
|
|
22
|
-
exports.TaskTerminalProcessFactory = Symbol('TaskTerminalProcessFactory');
|
|
23
|
-
let TaskTerminalProcess = class TaskTerminalProcess extends terminal_process_1.TerminalProcess {
|
|
24
|
-
constructor() {
|
|
25
|
-
super(...arguments);
|
|
26
|
-
this.exited = false;
|
|
27
|
-
this.attachmentAttempted = false;
|
|
28
|
-
}
|
|
29
|
-
onTerminalExit(code, signal) {
|
|
30
|
-
this.emitOnExit(code, signal);
|
|
31
|
-
this.exited = true;
|
|
32
|
-
// Unregister process only if task terminal already attached (or failed attach),
|
|
33
|
-
// Fixes https://github.com/eclipse-theia/theia/issues/2961
|
|
34
|
-
if (this.attachmentAttempted) {
|
|
35
|
-
this.unregisterProcess();
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
exports.TaskTerminalProcess = TaskTerminalProcess;
|
|
40
|
-
exports.TaskTerminalProcess = TaskTerminalProcess = tslib_1.__decorate([
|
|
41
|
-
(0, inversify_1.injectable)()
|
|
42
|
-
], TaskTerminalProcess);
|
|
43
|
-
//# sourceMappingURL=task-terminal-process.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"task-terminal-process.js","sourceRoot":"","sources":["../../src/node/task-terminal-process.ts"],"names":[],"mappings":";AAAA,gFAAgF;AAChF,oEAAoE;AACpE,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;;;;AAEhF,4DAA0D;AAC1D,yDAA6E;AAEhE,QAAA,0BAA0B,GAAG,MAAM,CAAC,4BAA4B,CAAC,CAAC;AAMxE,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,kCAAe;IAAjD;;QAEI,WAAM,GAAG,KAAK,CAAC;QACf,wBAAmB,GAAG,KAAK,CAAC;IAYvC,CAAC;IAVsB,cAAc,CAAC,IAAwB,EAAE,MAA0B;QAClF,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC9B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,gFAAgF;QAChF,2DAA2D;QAC3D,IAAI,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAC3B,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAC7B,CAAC;IACL,CAAC;CAEJ,CAAA;AAfY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,sBAAU,GAAE;GACA,mBAAmB,CAe/B"}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { ILogger } from '@theia/core/lib/common';
|
|
3
|
-
import { Process, ProcessOptions } from './process';
|
|
4
|
-
import { ProcessManager } from './process-manager';
|
|
5
|
-
import { IPty } from 'node-pty';
|
|
6
|
-
import { MultiRingBuffer, MultiRingBufferReadableStream } from './multi-ring-buffer';
|
|
7
|
-
import { DevNullStream } from './dev-null-stream';
|
|
8
|
-
import { Writable } from 'stream';
|
|
9
|
-
export declare const TerminalProcessOptions: unique symbol;
|
|
10
|
-
export interface TerminalProcessOptions extends ProcessOptions {
|
|
11
|
-
/**
|
|
12
|
-
* Windows only. Allow passing complex command lines already escaped for CommandLineToArgvW.
|
|
13
|
-
*/
|
|
14
|
-
commandLine?: string;
|
|
15
|
-
isPseudo?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare const TerminalProcessFactory: unique symbol;
|
|
18
|
-
export interface TerminalProcessFactory {
|
|
19
|
-
(options: TerminalProcessOptions): TerminalProcess;
|
|
20
|
-
}
|
|
21
|
-
export declare enum NodePtyErrors {
|
|
22
|
-
EACCES = "Permission denied",
|
|
23
|
-
ENOENT = "No such file or directory"
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Run arbitrary processes inside pseudo-terminals (PTY).
|
|
27
|
-
*
|
|
28
|
-
* Note: a PTY is not a shell process (bash/pwsh/cmd...)
|
|
29
|
-
*/
|
|
30
|
-
export declare class TerminalProcess extends Process {
|
|
31
|
-
protected readonly options: TerminalProcessOptions;
|
|
32
|
-
protected readonly ringBuffer: MultiRingBuffer;
|
|
33
|
-
protected readonly terminal: IPty | undefined;
|
|
34
|
-
private _delayedResizer;
|
|
35
|
-
private _exitCode;
|
|
36
|
-
readonly outputStream: MultiRingBufferReadableStream;
|
|
37
|
-
readonly errorStream: DevNullStream;
|
|
38
|
-
readonly inputStream: Writable;
|
|
39
|
-
constructor(// eslint-disable-next-line @typescript-eslint/indent
|
|
40
|
-
options: TerminalProcessOptions, processManager: ProcessManager, ringBuffer: MultiRingBuffer, logger: ILogger);
|
|
41
|
-
/**
|
|
42
|
-
* Helper for the constructor to attempt to create the pseudo-terminal encapsulating the shell process.
|
|
43
|
-
*
|
|
44
|
-
* @param command the shell command to launch
|
|
45
|
-
* @param options options for the shell process
|
|
46
|
-
* @param ringBuffer a ring buffer in which to collect terminal output
|
|
47
|
-
* @returns the terminal PTY and a stream by which it may be sent input
|
|
48
|
-
*/
|
|
49
|
-
private createPseudoTerminal;
|
|
50
|
-
createOutputStream(): MultiRingBufferReadableStream;
|
|
51
|
-
get pid(): number;
|
|
52
|
-
get executable(): string;
|
|
53
|
-
get arguments(): string[];
|
|
54
|
-
protected onTerminalExit(code: number | undefined, signal: string | undefined): void;
|
|
55
|
-
unregisterProcess(): void;
|
|
56
|
-
kill(signal?: string): void;
|
|
57
|
-
resize(cols: number, rows: number): void;
|
|
58
|
-
write(data: string): void;
|
|
59
|
-
protected checkTerminal(): void | never;
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=terminal-process.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-process.d.ts","sourceRoot":"","sources":["../../src/node/terminal-process.ts"],"names":[],"mappings":";AAkBA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAe,cAAc,EAA2B,MAAM,WAAW,CAAC;AAC1F,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAS,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,6BAA6B,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGlD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,eAAO,MAAM,sBAAsB,eAAmC,CAAC;AACvE,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC1D;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,sBAAsB,eAAmC,CAAC;AACvE,MAAM,WAAW,sBAAsB;IACnC,CAAC,OAAO,EAAE,sBAAsB,GAAG,eAAe,CAAC;CACtD;AAED,oBAAY,aAAa;IACrB,MAAM,sBAAsB;IAC5B,MAAM,8BAA8B;CACvC;AAED;;;;GAIG;AACH,qBACa,eAAgB,SAAQ,OAAO;uBAWwB,OAAO,EAAE,sBAAsB;IAElE,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,eAAe;IAX3E,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,GAAG,SAAS,CAAC;IAC9C,OAAO,CAAC,eAAe,CAA6B;IACpD,OAAO,CAAC,SAAS,CAAqB;IAEtC,QAAQ,CAAC,YAAY,gCAA6B;IAClD,QAAQ,CAAC,WAAW,gBAA4C;IAChE,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC;gBAElB,qDAAqD;IACF,OAAO,EAAE,sBAAsB,EACnE,cAAc,EAAE,cAAc,EACV,UAAU,EAAE,eAAe,EACpC,MAAM,EAAE,OAAO;IAsEtD;;;;;;;OAOG;IACH,OAAO,CAAC,oBAAoB;IAoD5B,kBAAkB,IAAI,6BAA6B;IAInD,IAAI,GAAG,IAAI,MAAM,CAGhB;IAED,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED,IAAI,SAAS,IAAI,MAAM,EAAE,CAExB;IAED,SAAS,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAKpF,iBAAiB,IAAI,IAAI;IAIzB,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;IAM3B,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI;IA6BxC,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAKzB,SAAS,CAAC,aAAa,IAAI,IAAI,GAAG,KAAK;CAM1C"}
|
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// *****************************************************************************
|
|
3
|
-
// Copyright (C) 2017 Ericsson and others.
|
|
4
|
-
//
|
|
5
|
-
// This program and the accompanying materials are made available under the
|
|
6
|
-
// terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
-
// http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
-
//
|
|
9
|
-
// This Source Code may also be made available under the following Secondary
|
|
10
|
-
// Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
-
// Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
-
// with the GNU Classpath Exception which is available at
|
|
13
|
-
// https://www.gnu.org/software/classpath/license.html.
|
|
14
|
-
//
|
|
15
|
-
// SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
|
|
16
|
-
// *****************************************************************************
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.TerminalProcess = exports.NodePtyErrors = exports.TerminalProcessFactory = exports.TerminalProcessOptions = void 0;
|
|
19
|
-
const tslib_1 = require("tslib");
|
|
20
|
-
const inversify_1 = require("@theia/core/shared/inversify");
|
|
21
|
-
const core_1 = require("@theia/core");
|
|
22
|
-
const common_1 = require("@theia/core/lib/common");
|
|
23
|
-
const process_1 = require("./process");
|
|
24
|
-
const process_manager_1 = require("./process-manager");
|
|
25
|
-
const node_pty_1 = require("node-pty");
|
|
26
|
-
const multi_ring_buffer_1 = require("./multi-ring-buffer");
|
|
27
|
-
const dev_null_stream_1 = require("./dev-null-stream");
|
|
28
|
-
const utils_1 = require("./utils");
|
|
29
|
-
const pseudo_pty_1 = require("./pseudo-pty");
|
|
30
|
-
const stream_1 = require("stream");
|
|
31
|
-
exports.TerminalProcessOptions = Symbol('TerminalProcessOptions');
|
|
32
|
-
exports.TerminalProcessFactory = Symbol('TerminalProcessFactory');
|
|
33
|
-
var NodePtyErrors;
|
|
34
|
-
(function (NodePtyErrors) {
|
|
35
|
-
NodePtyErrors["EACCES"] = "Permission denied";
|
|
36
|
-
NodePtyErrors["ENOENT"] = "No such file or directory";
|
|
37
|
-
})(NodePtyErrors || (exports.NodePtyErrors = NodePtyErrors = {}));
|
|
38
|
-
/**
|
|
39
|
-
* Run arbitrary processes inside pseudo-terminals (PTY).
|
|
40
|
-
*
|
|
41
|
-
* Note: a PTY is not a shell process (bash/pwsh/cmd...)
|
|
42
|
-
*/
|
|
43
|
-
let TerminalProcess = class TerminalProcess extends process_1.Process {
|
|
44
|
-
constructor(options, processManager, ringBuffer, logger) {
|
|
45
|
-
super(processManager, logger, process_1.ProcessType.Terminal, options);
|
|
46
|
-
this.options = options;
|
|
47
|
-
this.ringBuffer = ringBuffer;
|
|
48
|
-
this.outputStream = this.createOutputStream();
|
|
49
|
-
this.errorStream = new dev_null_stream_1.DevNullStream({ autoDestroy: true });
|
|
50
|
-
if (options.isPseudo) {
|
|
51
|
-
// do not need to spawn a process, new a pseudo pty instead
|
|
52
|
-
this.terminal = new pseudo_pty_1.PseudoPty();
|
|
53
|
-
this.inputStream = new dev_null_stream_1.DevNullStream({ autoDestroy: true });
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
if (this.isForkOptions(this.options)) {
|
|
57
|
-
throw new Error('terminal processes cannot be forked as of today');
|
|
58
|
-
}
|
|
59
|
-
this.logger.debug('Starting terminal process', JSON.stringify(options, undefined, 2));
|
|
60
|
-
// Delay resizes to avoid conpty not respecting very early resize calls
|
|
61
|
-
// see https://github.com/microsoft/vscode/blob/a1c783c/src/vs/platform/terminal/node/terminalProcess.ts#L177
|
|
62
|
-
if (core_1.isWindows) {
|
|
63
|
-
this._delayedResizer = new DelayedResizer();
|
|
64
|
-
this._delayedResizer.onTrigger(dimensions => {
|
|
65
|
-
var _a;
|
|
66
|
-
(_a = this._delayedResizer) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
67
|
-
this._delayedResizer = undefined;
|
|
68
|
-
if (dimensions.cols && dimensions.rows) {
|
|
69
|
-
this.resize(dimensions.cols, dimensions.rows);
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
const startTerminal = (command) => {
|
|
74
|
-
try {
|
|
75
|
-
return this.createPseudoTerminal(command, options, ringBuffer);
|
|
76
|
-
}
|
|
77
|
-
catch (error) {
|
|
78
|
-
// Normalize the error to make it as close as possible as what
|
|
79
|
-
// node's child_process.spawn would generate in the same
|
|
80
|
-
// situation.
|
|
81
|
-
const message = error.message;
|
|
82
|
-
if (message.startsWith('File not found: ') || message.endsWith(NodePtyErrors.ENOENT)) {
|
|
83
|
-
if (core_1.isWindows && command && !command.toLowerCase().endsWith('.exe')) {
|
|
84
|
-
const commandExe = command + '.exe';
|
|
85
|
-
this.logger.debug(`Trying terminal command '${commandExe}' because '${command}' was not found.`);
|
|
86
|
-
return startTerminal(commandExe);
|
|
87
|
-
}
|
|
88
|
-
// Proceed with failure, reporting the original command because it was
|
|
89
|
-
// the intended command and it was not found
|
|
90
|
-
error.errno = 'ENOENT';
|
|
91
|
-
error.code = 'ENOENT';
|
|
92
|
-
error.path = options.command;
|
|
93
|
-
}
|
|
94
|
-
else if (message.endsWith(NodePtyErrors.EACCES)) {
|
|
95
|
-
// The shell program exists but was not accessible, so just fail
|
|
96
|
-
error.errno = 'EACCES';
|
|
97
|
-
error.code = 'EACCES';
|
|
98
|
-
error.path = options.command;
|
|
99
|
-
}
|
|
100
|
-
// node-pty throws exceptions on Windows.
|
|
101
|
-
// Call the client error handler, but first give them a chance to register it.
|
|
102
|
-
this.emitOnErrorAsync(error);
|
|
103
|
-
return { terminal: undefined, inputStream: new dev_null_stream_1.DevNullStream({ autoDestroy: true }) };
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
const { terminal, inputStream } = startTerminal(options.command);
|
|
107
|
-
this.terminal = terminal;
|
|
108
|
-
this.inputStream = inputStream;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Helper for the constructor to attempt to create the pseudo-terminal encapsulating the shell process.
|
|
112
|
-
*
|
|
113
|
-
* @param command the shell command to launch
|
|
114
|
-
* @param options options for the shell process
|
|
115
|
-
* @param ringBuffer a ring buffer in which to collect terminal output
|
|
116
|
-
* @returns the terminal PTY and a stream by which it may be sent input
|
|
117
|
-
*/
|
|
118
|
-
createPseudoTerminal(command, options, ringBuffer) {
|
|
119
|
-
const terminal = (0, node_pty_1.spawn)(command, (core_1.isWindows && options.commandLine) || options.args || [], options.options || {});
|
|
120
|
-
process.nextTick(() => this.emitOnStarted());
|
|
121
|
-
// node-pty actually wait for the underlying streams to be closed before emitting exit.
|
|
122
|
-
// We should emulate the `exit` and `close` sequence.
|
|
123
|
-
terminal.onExit(({ exitCode, signal }) => {
|
|
124
|
-
// see https://github.com/microsoft/node-pty/issues/751
|
|
125
|
-
if (exitCode === undefined) {
|
|
126
|
-
exitCode = 0;
|
|
127
|
-
}
|
|
128
|
-
// Make sure to only pass either code or signal as !undefined, not
|
|
129
|
-
// both.
|
|
130
|
-
//
|
|
131
|
-
// node-pty quirk: On Linux/macOS, if the process exited through the
|
|
132
|
-
// exit syscall (with an exit code), signal will be 0 (an invalid
|
|
133
|
-
// signal value). If it was terminated because of a signal, the
|
|
134
|
-
// signal parameter will hold the signal number and code should
|
|
135
|
-
// be ignored.
|
|
136
|
-
this._exitCode = exitCode;
|
|
137
|
-
if (signal === undefined || signal === 0) {
|
|
138
|
-
this.onTerminalExit(exitCode, undefined);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
this.onTerminalExit(undefined, (0, utils_1.signame)(signal));
|
|
142
|
-
}
|
|
143
|
-
process.nextTick(() => {
|
|
144
|
-
if (signal === undefined || signal === 0) {
|
|
145
|
-
this.emitOnClose(exitCode, undefined);
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
this.emitOnClose(undefined, (0, utils_1.signame)(signal));
|
|
149
|
-
}
|
|
150
|
-
});
|
|
151
|
-
});
|
|
152
|
-
terminal.onData((data) => {
|
|
153
|
-
ringBuffer.enq(data);
|
|
154
|
-
});
|
|
155
|
-
const inputStream = new stream_1.Writable({
|
|
156
|
-
write: (chunk) => {
|
|
157
|
-
this.write(chunk);
|
|
158
|
-
},
|
|
159
|
-
});
|
|
160
|
-
return { terminal, inputStream };
|
|
161
|
-
}
|
|
162
|
-
createOutputStream() {
|
|
163
|
-
return this.ringBuffer.getStream();
|
|
164
|
-
}
|
|
165
|
-
get pid() {
|
|
166
|
-
this.checkTerminal();
|
|
167
|
-
return this.terminal.pid;
|
|
168
|
-
}
|
|
169
|
-
get executable() {
|
|
170
|
-
return this.options.command;
|
|
171
|
-
}
|
|
172
|
-
get arguments() {
|
|
173
|
-
return this.options.args || [];
|
|
174
|
-
}
|
|
175
|
-
onTerminalExit(code, signal) {
|
|
176
|
-
this.emitOnExit(code, signal);
|
|
177
|
-
this.unregisterProcess();
|
|
178
|
-
}
|
|
179
|
-
unregisterProcess() {
|
|
180
|
-
this.processManager.unregister(this);
|
|
181
|
-
}
|
|
182
|
-
kill(signal) {
|
|
183
|
-
if (this.terminal && this.killed === false) {
|
|
184
|
-
this.terminal.kill(signal);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
resize(cols, rows) {
|
|
188
|
-
if (typeof cols !== 'number' || typeof rows !== 'number' || isNaN(cols) || isNaN(rows)) {
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
this.checkTerminal();
|
|
192
|
-
try {
|
|
193
|
-
// Ensure that cols and rows are always >= 1, this prevents a native exception in winpty.
|
|
194
|
-
cols = Math.max(cols, 1);
|
|
195
|
-
rows = Math.max(rows, 1);
|
|
196
|
-
// Delay resize if needed
|
|
197
|
-
if (this._delayedResizer) {
|
|
198
|
-
this._delayedResizer.cols = cols;
|
|
199
|
-
this._delayedResizer.rows = rows;
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
202
|
-
this.terminal.resize(cols, rows);
|
|
203
|
-
}
|
|
204
|
-
catch (error) {
|
|
205
|
-
// swallow error if the pty has already exited
|
|
206
|
-
// see also https://github.com/microsoft/vscode/blob/a1c783c/src/vs/platform/terminal/node/terminalProcess.ts#L549
|
|
207
|
-
if (this._exitCode !== undefined &&
|
|
208
|
-
error.message !== 'ioctl(2) failed, EBADF' &&
|
|
209
|
-
error.message !== 'Cannot resize a pty that has already exited') {
|
|
210
|
-
throw error;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
write(data) {
|
|
215
|
-
this.checkTerminal();
|
|
216
|
-
this.terminal.write(data);
|
|
217
|
-
}
|
|
218
|
-
checkTerminal() {
|
|
219
|
-
if (!this.terminal) {
|
|
220
|
-
throw new Error('pty process did not start correctly');
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
exports.TerminalProcess = TerminalProcess;
|
|
225
|
-
exports.TerminalProcess = TerminalProcess = tslib_1.__decorate([
|
|
226
|
-
(0, inversify_1.injectable)(),
|
|
227
|
-
tslib_1.__param(0, (0, inversify_1.inject)(exports.TerminalProcessOptions)),
|
|
228
|
-
tslib_1.__param(1, (0, inversify_1.inject)(process_manager_1.ProcessManager)),
|
|
229
|
-
tslib_1.__param(2, (0, inversify_1.inject)(multi_ring_buffer_1.MultiRingBuffer)),
|
|
230
|
-
tslib_1.__param(3, (0, inversify_1.inject)(common_1.ILogger)),
|
|
231
|
-
tslib_1.__param(3, (0, inversify_1.named)('process')),
|
|
232
|
-
tslib_1.__metadata("design:paramtypes", [Object, process_manager_1.ProcessManager,
|
|
233
|
-
multi_ring_buffer_1.MultiRingBuffer, Object])
|
|
234
|
-
], TerminalProcess);
|
|
235
|
-
/**
|
|
236
|
-
* Tracks the latest resize event to be trigger at a later point.
|
|
237
|
-
*/
|
|
238
|
-
class DelayedResizer extends core_1.DisposableCollection {
|
|
239
|
-
get onTrigger() { return this._onTrigger.event; }
|
|
240
|
-
constructor() {
|
|
241
|
-
super();
|
|
242
|
-
this._onTrigger = new core_1.Emitter();
|
|
243
|
-
this.push(this._onTrigger);
|
|
244
|
-
this._timeout = setTimeout(() => this._onTrigger.fire({ rows: this.rows, cols: this.cols }), 1000);
|
|
245
|
-
this.push(core_1.Disposable.create(() => clearTimeout(this._timeout)));
|
|
246
|
-
}
|
|
247
|
-
dispose() {
|
|
248
|
-
super.dispose();
|
|
249
|
-
clearTimeout(this._timeout);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
//# sourceMappingURL=terminal-process.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"terminal-process.js","sourceRoot":"","sources":["../../src/node/terminal-process.ts"],"names":[],"mappings":";AAAA,gFA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