gulp-tsc icon indicating copy to clipboard operation
gulp-tsc copied to clipboard

In windows, error messages are displayed as "Buffer"

Open tedre191 opened this issue 8 years ago • 2 comments

[11:11:30] [tsc] > <Buffer 6d 65 73 73 61 67 65 20 54 53 36 30 38 31 3a 20 41 72 67 75 6d 65 6e 74 20 66 6f 72 20 27 2d 2d 6a 73 78 27 20 6d 75 73 74 20 62 65 20 27 70 72 65 73 ... >

It looks like the lib "byline" is causing the issue but I'm not quite sure. Changing lines 227 to 235 in compiler.js "fixes" the issue.

proc.on('error', function (err) {
    _this.emit('error', err);
  });
  stdout.on('data', function (chunk) {
    _this.emit('stdout', chunk.toString('utf8'));
  });
  stderr.on('data', function (chunk) {
    _this.emit('stderr', chunk.toString('utf8'));
  });

Node version is v6.2.2, gulp-tsc is 1.1.5 and tsc is 1.8.10.

tedre191 avatar Jul 05 '16 15:07 tedre191

Thanks. I will release new version with fix soon.

kant2002 avatar Jul 05 '16 17:07 kant2002

@tedre191 Version 1.2.0 should fix that.

kant2002 avatar Jul 05 '16 19:07 kant2002