Skip to content

Commit 8eb0637

Browse files
committed
Compiler output in output pane
1 parent 3aa0897 commit 8eb0637

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/vm/executor.service.ts

+4-9
Original file line numberDiff line numberDiff line change
@@ -27,39 +27,34 @@ export class ExecutorService {
2727

2828
this.reset.emit();
2929
const promise = new CancelablePromise<void>((resolve) => {
30-
console.debug('Starting Emulator');
3130
resolve(this.emulator.start());
3231
})
3332
.then(() => {
34-
console.debug('Sending file');
3533
return this.emulator.sendFile(filename + '.dme', code);
3634
})
3735
.then(() => {
38-
console.debug('Starting compiler');
3936
return this.commandQueue.runProcess(
4037
'/byond/bin/DreamMaker',
4138
'/mnt/host/' + filename + '.dme',
4239
new Map([['LD_LIBRARY_PATH', '/byond/bin']]),
4340
);
4441
})
4542
.then((compiler) => {
46-
console.debug('Waiting for compiler');
43+
this.output.emit('=== Compile stage ===\n');
44+
compiler.stdout.subscribe((val) => this.output.emit(val));
4745
stageAbort = compiler.kill;
4846
return once(compiler.exit);
4947
})
5048
.then(() => {
51-
console.debug('Starting server');
5249
return this.commandQueue.runProcess(
5350
'/byond/bin/DreamDaemon',
5451
`/mnt/host/${filename}.dmb\0-trusted`,
5552
new Map([['LD_LIBRARY_PATH', '/byond/bin']]),
5653
);
5754
})
5855
.then((server) => {
59-
console.debug('Waiting for server');
60-
server.stderr.subscribe((val) => {
61-
this.output.emit(val);
62-
});
56+
this.output.emit('\n=== Run stage ===\n');
57+
server.stderr.subscribe((val) => this.output.emit(val));
6358
stageAbort = server.kill;
6459
return once(server.exit);
6560
})

0 commit comments

Comments
 (0)