-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Output directory messed up if tsc is triggered as VS Code task. #8837
Comments
Possibly related to microsoft/vscode#6719 ? |
@zhengbli any thoughts? |
Seems to be a VSCode task runner issue with node v6, the same as microsoft/vscode#6719. Running tsc from command line doesn't repro the error. |
The regression occurs in the cd1af12 commit. |
This (L590, program.ts) seems to be the offending change. It changes the capitalisation of the Windows drive letter (lower to upper in the case of microsoft/vscode#6719). When run from the command line, the drive letter is already capitalised and stays capitalised. |
After further digging, it's a change from Node v5 to Node v6 in the behaviour of In node v5:
In node v6:
|
@zhengbli could the 'external' tag be removed, and this be dealt with in TypeScript? See microsoft/vscode#6719 (comment). EDIT: See also comment from node.js contributor about this: nodejs/node#6624 (comment) |
Important observations from microsoft/vscode#6719:
|
@Seikho Thanks for the finding! The issue should be able to address from TypeScript side. |
@zhengbli shouldn't this be addressed in 2.0. It works in 1.8.x and is broken in @next. I am asking since it is tagged for 2.1 |
Fixing in @next would be great - We've had to disable the VSCode build task for all our affected projects since this surfaced, which is a minor hassle but still a hassle. |
This only happens if tsc is executed via Code.
TypeScript Version:
nightly (1.9.0-dev.20160525-1.0)
Code
.vscode/tasks.json
tsconfig.json
src/foo/bar.ts
src/biu/pia.js
// Empty file.
Expected behavior:
Compiles correctly.
Actual behavior:
And if you put another .ts file and import it in
src/foo.bar.ts
, it would be output as .js file nested to its .ts source.The text was updated successfully, but these errors were encountered: