{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/6719","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/6719/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/6719/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/6719/events","html_url":"https://github.com/Microsoft/vscode/issues/6719","id":156448177,"number":6719,"title":"Strange build behaviour building TypeScript from VSCode with Node v6 on Windows","user":{"login":"yortus","id":1252361,"avatar_url":"https://avatars.githubusercontent.com/u/1252361?v=3","gravatar_id":"","url":"https://api.github.com/users/yortus","html_url":"https://github.com/yortus","followers_url":"https://api.github.com/users/yortus/followers","following_url":"https://api.github.com/users/yortus/following{/other_user}","gists_url":"https://api.github.com/users/yortus/gists{/gist_id}","starred_url":"https://api.github.com/users/yortus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yortus/subscriptions","organizations_url":"https://api.github.com/users/yortus/orgs","repos_url":"https://api.github.com/users/yortus/repos","events_url":"https://api.github.com/users/yortus/events{/privacy}","received_events_url":"https://api.github.com/users/yortus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode/labels/bug","name":"bug","color":"E57E7E"},{"url":"https://api.github.com/repos/Microsoft/vscode/labels/tasks","name":"tasks","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"dbaeumer","id":1931590,"avatar_url":"https://avatars.githubusercontent.com/u/1931590?v=3","gravatar_id":"","url":"https://api.github.com/users/dbaeumer","html_url":"https://github.com/dbaeumer","followers_url":"https://api.github.com/users/dbaeumer/followers","following_url":"https://api.github.com/users/dbaeumer/following{/other_user}","gists_url":"https://api.github.com/users/dbaeumer/gists{/gist_id}","starred_url":"https://api.github.com/users/dbaeumer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbaeumer/subscriptions","organizations_url":"https://api.github.com/users/dbaeumer/orgs","repos_url":"https://api.github.com/users/dbaeumer/repos","events_url":"https://api.github.com/users/dbaeumer/events{/privacy}","received_events_url":"https://api.github.com/users/dbaeumer/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Microsoft/vscode/milestones/20","html_url":"https://github.com/Microsoft/vscode/milestones/June%202016","labels_url":"https://api.github.com/repos/Microsoft/vscode/milestones/20/labels","id":1774575,"number":20,"title":"June 2016","description":"","creator":{"login":"bgashler1","id":11839736,"avatar_url":"https://avatars.githubusercontent.com/u/11839736?v=3","gravatar_id":"","url":"https://api.github.com/users/bgashler1","html_url":"https://github.com/bgashler1","followers_url":"https://api.github.com/users/bgashler1/followers","following_url":"https://api.github.com/users/bgashler1/following{/other_user}","gists_url":"https://api.github.com/users/bgashler1/gists{/gist_id}","starred_url":"https://api.github.com/users/bgashler1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgashler1/subscriptions","organizations_url":"https://api.github.com/users/bgashler1/orgs","repos_url":"https://api.github.com/users/bgashler1/repos","events_url":"https://api.github.com/users/bgashler1/events{/privacy}","received_events_url":"https://api.github.com/users/bgashler1/received_events","type":"User","site_admin":false},"open_issues":120,"closed_issues":158,"state":"open","created_at":"2016-05-18T17:48:57Z","updated_at":"2016-06-08T09:48:01Z","due_on":"2016-06-30T07:00:00Z","closed_at":null},"comments":11,"created_at":"2016-05-24T08:27:05Z","updated_at":"2016-06-08T10:19:56Z","closed_at":null,"body":"- VSCode Version: 1.1.1\r\n- OS Version: Windows 7, Windows 10\r\n\r\nSteps to Reproduce:\r\n\r\nSee https://github.com/yortus/repro-build-bug for full repro details and a cut-down project.\r\n\r\nFrom the README:\r\n\r\n## Bug Repro\r\n\r\n### Problem Description\r\n\r\n- Building a project with `Shift+Ctrl+B` puts some built files in the wrong location\r\n\r\n### Environment\r\n\r\n- **O/S**: Windows 7 and Windows 10\r\n- **VSCode**: v1.1.1\r\n- **Node.js**: v6.2\r\n- **TypeScript**: v1.9.0-dev.20160524-1.0\r\n\r\n\r\n\r\n### Steps to Reproduce\r\n\r\n##### Project setup\r\n\r\n1. `git clone https://github.com/yortus/repro-build-bug.git`\r\n2. `cd repro-build-bug`\r\n3. `npm install`\r\n\r\n\r\n##### Baseline build/run (this should work fine)\r\n\r\n1. Open a command prompt\r\n2. Build from the command prompt using `npm run build`\r\n  - should be no errors, and `/built` will contain built `.js` files\r\n3. Run from the command prompt using `node .`\r\n  - should be no errors, outputs `\"Hello, World!\"` to console\r\n\r\n\r\n##### VSCode build/run (this should repro the bug)\r\n\r\n1. Open the project folder in VSCode\r\n2. Delete the `/built` directory created in the previous steps\r\n2. Build from VSCode by pressing `Shift+Ctrl+B`\r\n  - should be no errors, but one `.js` file is output to `/built` and the other to `/src`\r\n3. Run from the command prompt using `node .`\r\n  - should show an error `\"cannot find module...\"` because of the wrong placement of built files\r\n  \r\n  \r\n\r\n### Further Notes\r\n\r\n- Bug could not be reproduced on linux\r\n- Bug could not be reproduced with node v4 or v5.\r\n- Bug goes away if `\"options\": {\"cwd\": \"<absolute project path>\"}` is added to `.vscode/tasks.json`\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/224548768","html_url":"https://github.com/Microsoft/vscode/issues/6719#issuecomment-224548768","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/6719","id":224548768,"user":{"login":"yortus","id":1252361,"avatar_url":"https://avatars.githubusercontent.com/u/1252361?v=3","gravatar_id":"","url":"https://api.github.com/users/yortus","html_url":"https://github.com/yortus","followers_url":"https://api.github.com/users/yortus/followers","following_url":"https://api.github.com/users/yortus/following{/other_user}","gists_url":"https://api.github.com/users/yortus/gists{/gist_id}","starred_url":"https://api.github.com/users/yortus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yortus/subscriptions","organizations_url":"https://api.github.com/users/yortus/orgs","repos_url":"https://api.github.com/users/yortus/repos","events_url":"https://api.github.com/users/yortus/events{/privacy}","received_events_url":"https://api.github.com/users/yortus/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T10:19:56Z","updated_at":"2016-06-08T10:19:56Z","body":"I've just repro'd this on another different machine (Windows 7). This was a clean machine, I had to install Node, GIT and VSCode. Behaves exactly as described in OP.\r\n\r\nIs it possible the TS5009 error you get is somehow related to the bug? The problem is path confusion after all. And clearly the two files `src/index.ts` and `src/other/thing.ts` have the common root `src/`, so the TS5009 is very strange and suspicious.\r\n\r\nI mean, how else could you structure a two-file project, with one file nested in a subdirectory, if tsc can't work out the common root? Do you still get TS5009 on your machine if you run `tsc index.ts subdir/index.ts` in a fresh directory with those files created?\r\n\r\n\r\n"}}
{"actor":{"display_login":"yortus"}}