-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
working with latest github version - error but no details #140
Comments
I have experienced this as well. I assumed they still haven't rewritten this part. But now I suspect they might be using var ret: ICompileResult = {
code: code,
output: String(result)
};
resolve(ret); to see what var result = {
stdout: stdout,
stderr: stderr,
code: code,
toString: function() {
if (code === 0) {
return stdout;
} else if ('fallback' in opts) {
return opts.fallback;
} else if (opts.grunt) {
// grunt.log.error uses standard out, to be fixed in 0.5.
return stderr || stdout;
}
return stderr;
}
}; Notice |
You are right, it is stdout it sets an issue is raised here microsoft/TypeScript#615 |
Feature was implemented after the $ node "node_modules/typescript/bin/tsc" "test/fail/ts/deep/fail.ts" > nul
D:\REPOS\GRUNT\grunt-ts\test\fail\ts\deep\fail.ts(7,1): error TS2095: Could not find symbol 'Simplebad'.
$ node "customcompiler/tsc" "test/fail/ts/deep/fail.ts" > nul
test/fail/ts/deep/fail.ts(7,1): Cannot find name 'Simplebad'. If I update to latest $ node "customcompiler/tsc" "test/fail/ts/deep/fail.ts" > nul
$ node "customcompiler/tsc" "test/fail/ts/deep/fail.ts"
test/fail/ts/deep/fail.ts(7,1): error TS2304: Cannot find name 'Simplebad'. |
Verfied that csharp works the same way the new compiler does: $ echo %ERRORLEVEL%
0
$ csc bad.cs > nul
$ echo %ERRORLEVEL%
1 i.e. nothing on |
npm : |
Hello,
when using with github version of typescript (https://github.com/Microsoft/TypeScript), there is no detailed error message. I tried installing the compiled file glibally (sudo npm install -g . on the source root) or setting
compiler
option of grunt-ts. Both results the below output.when switch to
https://git01.codeplex.com/typescript
branch, it works fine. Tried to look through the debugger, and this what I see. Not sure how the error reporting changed. Is there a way to make grunt-ts work with latest github version? thanks.The text was updated successfully, but these errors were encountered: