Skip to content

MSBuild error message parsing logic fails with errors with no file #9878

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

Closed
mhegazy opened this issue Jul 21, 2016 · 1 comment
Closed

MSBuild error message parsing logic fails with errors with no file #9878

mhegazy opened this issue Jul 21, 2016 · 1 comment
Assignees
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue Visual Studio Integration with Visual Studio

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Jul 21, 2016

Configuration errors are not reported in a specific source file. for instance combining sourceMap and inlineSourceMap in tsconfig.json results in this MSBuild log:

1>  C:\Program Files (x86)\Microsoft SDKs\TypeScript\2.0\tsc.exe --project "C:\Users\mhegazy\Documents\Visual Studio 2015\Projects\TypeScriptHTMLApp46\TypeScriptHTMLApp46\tsconfig.json" --listEmittedFiles
1>  C:\Users\mhegazy\Documents\Visual Studio 2015\Projects\TypeScriptHTMLApp46\TypeScriptHTMLApp46\error TS5053:Build:Option 'sourceMap' cannot be specified with option 'inlineSourceMap'.
1>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\TypeScript\Microsoft.TypeScript.targets(223,5): error MSB6006: "tsc.exe" exited with code 1.

specifically:

C:\Users\mhegazy\Documents\Visual Studio 2015\Projects\TypeScriptHTMLApp46\TypeScriptHTMLApp46\error TS5053:Build:Option* 'sourceMap' cannot be specified with option 'inlineSourceMap'.

this results in VS not parsing the output correctly and reporting tsc.exe exited with status 1 error.

see #9781 (comment) for more details.

@mhegazy mhegazy added Bug A bug in TypeScript Visual Studio Integration with Visual Studio labels Jul 21, 2016
@mhegazy mhegazy added this to the TypeScript 2.1 milestone Jul 21, 2016
@paulvanbrenk paulvanbrenk added the Fixed A PR has been merged for this issue label Jul 22, 2016
@paulvanbrenk
Copy link
Contributor

Fix in CR

@mhegazy mhegazy modified the milestones: TypeScript 2.0.1, TypeScript 2.1 Jul 22, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue Visual Studio Integration with Visual Studio
Projects
None yet
Development

No branches or pull requests

2 participants