{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11727","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11727/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11727/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11727/events","html_url":"https://github.com/Microsoft/TypeScript/issues/11727","id":183883368,"number":11727,"title":"Incorrectly resolving path for input files in mapped virtual drives in Windows","user":{"login":"cacogr","id":1235920,"avatar_url":"https://avatars.githubusercontent.com/u/1235920?v=3","gravatar_id":"","url":"https://api.github.com/users/cacogr","html_url":"https://github.com/cacogr","followers_url":"https://api.github.com/users/cacogr/followers","following_url":"https://api.github.com/users/cacogr/following{/other_user}","gists_url":"https://api.github.com/users/cacogr/gists{/gist_id}","starred_url":"https://api.github.com/users/cacogr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cacogr/subscriptions","organizations_url":"https://api.github.com/users/cacogr/orgs","repos_url":"https://api.github.com/users/cacogr/repos","events_url":"https://api.github.com/users/cacogr/events{/privacy}","received_events_url":"https://api.github.com/users/cacogr/received_events","type":"User","site_admin":false},"labels":[{"id":113970366,"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Bug","name":"Bug","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":{"login":"andy-ms","id":19274678,"avatar_url":"https://avatars.githubusercontent.com/u/19274678?v=3","gravatar_id":"","url":"https://api.github.com/users/andy-ms","html_url":"https://github.com/andy-ms","followers_url":"https://api.github.com/users/andy-ms/followers","following_url":"https://api.github.com/users/andy-ms/following{/other_user}","gists_url":"https://api.github.com/users/andy-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-ms/subscriptions","organizations_url":"https://api.github.com/users/andy-ms/orgs","repos_url":"https://api.github.com/users/andy-ms/repos","events_url":"https://api.github.com/users/andy-ms/events{/privacy}","received_events_url":"https://api.github.com/users/andy-ms/received_events","type":"User","site_admin":false},"assignees":[{"login":"andy-ms","id":19274678,"avatar_url":"https://avatars.githubusercontent.com/u/19274678?v=3","gravatar_id":"","url":"https://api.github.com/users/andy-ms","html_url":"https://github.com/andy-ms","followers_url":"https://api.github.com/users/andy-ms/followers","following_url":"https://api.github.com/users/andy-ms/following{/other_user}","gists_url":"https://api.github.com/users/andy-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-ms/subscriptions","organizations_url":"https://api.github.com/users/andy-ms/orgs","repos_url":"https://api.github.com/users/andy-ms/repos","events_url":"https://api.github.com/users/andy-ms/events{/privacy}","received_events_url":"https://api.github.com/users/andy-ms/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/31","html_url":"https://github.com/Microsoft/TypeScript/milestones/TypeScript%202.1.3","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/31/labels","id":2098216,"number":31,"title":"TypeScript 2.1.3","description":"","creator":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":51,"state":"open","created_at":"2016-10-27T18:47:38Z","updated_at":"2016-11-11T22:03:58Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-10-19T07:14:40Z","updated_at":"2016-11-11T22:06:39Z","closed_at":null,"body":"**TypeScript Version:**  2.0.3\n**OS**: windows 10 x64\n**node**: 6.3.1\n\n**Code**\nProject file structure:\n- index.ts\n- tsconfig.json\n- src/foo.ts\n\n**tsconfig.json**\n\n``` json\n{\n    \"compilerOptions\": {\n        \"module\": \"commonjs\",\n        \"target\": \"es5\",\n        \"noImplicitAny\": false,\n        \"outDir\": \"./dist\",\n        \"rootDir\": \".\",\n        \"sourceMap\": false,\n        \"listFiles\": true,\n        \"traceResolution\": true\n    },\n    \"files\": [\n        \"index.ts\"\n    ]\n}\n```\n\n**index.ts**\n\n``` ts\nexport * from './src/foo';\n```\n\n**src/foo.ts**\n\n``` ts\nexport class foo { }\n```\n\n**Expected behavior:**\nI have mapped a virtual drive `W: -> D:\\projects\\` using Vsubst. When compiling in version 1.8.10 it works fine. tsc with `\"listFiles\": true` shows the following:\n\n_Using typescript 1.8.10_\n\n```\nW:\\tsc-test>tsc                                                                                                                                \nC:/Users/xxxxx/AppData/Roaming/npm/node_modules/typescript/lib/lib.d.ts                                                                                      \nW:/tsc-test/src/foo.ts                                                                                                                           \nindex.ts \n```\n\n**Actual behavior:** \nVersion 2.0.3 throws `error TS5009: Cannot find the common subdirectory path for the input files`. Running tsc with \"listFiles\" and \"traceResolution\" set to true reveals the problem:\n\n_Using typescript 2.0.3_\n\n```\nW:\\tsc-test>tsc\n======== Resolving module './src/foo' from 'W:/tsc-test/index.ts'. ========                                                                      \nModule resolution kind is not specified, using 'NodeJs'.\nLoading module as file / folder, candidate module location 'W:/tsc-test/src/foo'.                                                                \nFile 'W:/tsc-test/src/foo.ts' exist - use it as a name resolution result.                                                                        \nResolving real path for 'W:/tsc-test/src/foo.ts', result 'D:/projects/tsc-test/src/foo.ts'                                           \n======== Module name './src/foo' was successfully resolved to 'D:/projects/tsc-test/src/foo.ts'. ========\nerror TS5009: Cannot find the common subdirectory path for the input files.                                                                                 \nerror TS6059: File 'D:/projects/tsc-test/src/foo.ts' is not under 'rootDir' 'W:/tsc-test'. 'rootDir' is expected to contain all source files.\nC:/Users/xxxxx/AppData/Roaming/npm/node_modules/typescript/lib/lib.d.ts                                                                                      \nD:/projects/tsc-test/src/foo.ts                                                                                                                 \nW:/tsc-test/index.ts\n```\n\nThe same applies to \"include\" array and probably to \"exclude\" also.\n\nUPDATE: Setting `\"moduleResolution\": \"classic\"` in `\"compilerOptions\"` resolves paths correcty but it obviously cannot resolve `node_modules` dependencies like `\"moduleResolution\": \"node\"` does, so it isn't a solution.\n\n_Using typescript 2.0.3_\n\n```\nW:\\tsc-test>tsc                                                                                                                                  \n======== Resolving module './src/foo' from 'W:/tsc-test/index.ts'. ========                                                                      \nExplicitly specified module resolution kind: 'Classic'.                                                                                                     \nFile 'W:/tsc-test/src/foo.ts' exist - use it as a name resolution result.                                                                        \n======== Module name './src/foo' was successfully resolved to 'W:/tsc-test/src/foo.ts'. ========                                                 \n======== Resolving module '@angular/core' from 'W:/tsc-test/src/foo.ts'. ========                                                                \nExplicitly specified module resolution kind: 'Classic'.                                                                                                     \nFile 'W:/tsc-test/src/@angular/core.ts' does not exist.                                                                                          \nFile 'W:/tsc-test/src/@angular/core.d.ts' does not exist.                                                                                        \nFile 'W:/tsc-test/@angular/core.ts' does not exist.                                                                                              \nFile 'W:/tsc-test/@angular/core.d.ts' does not exist.                                                                                            \nFile 'W:/@angular/core.ts' does not exist.                                                                                                       \nFile 'W:/@angular/core.d.ts' does not exist.                                                                                                               \n======== Module name '@angular/core' was not resolved. ========                                                                                             \nsrc/foo.ts(1,27): error TS2307: Cannot find module '@angular/core'.                                                                                         \nC:/Users/xxxxx/AppData/Roaming/npm/node_modules/typescript/lib/lib.d.ts                                                                                      \nW:/tsc-test/src/foo.ts                                                                                                                           \nW:/tsc-test/index.ts\n```\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/260066646","html_url":"https://github.com/Microsoft/TypeScript/issues/11727#issuecomment-260066646","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11727","id":260066646,"user":{"login":"andy-ms","id":19274678,"avatar_url":"https://avatars.githubusercontent.com/u/19274678?v=3","gravatar_id":"","url":"https://api.github.com/users/andy-ms","html_url":"https://github.com/andy-ms","followers_url":"https://api.github.com/users/andy-ms/followers","following_url":"https://api.github.com/users/andy-ms/following{/other_user}","gists_url":"https://api.github.com/users/andy-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/andy-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andy-ms/subscriptions","organizations_url":"https://api.github.com/users/andy-ms/orgs","repos_url":"https://api.github.com/users/andy-ms/repos","events_url":"https://api.github.com/users/andy-ms/events{/privacy}","received_events_url":"https://api.github.com/users/andy-ms/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T22:06:38Z","updated_at":"2016-11-11T22:06:38Z","body":"This is probably fixed by #12020. Could you test with `typescript@next` (as of tomorrow's build) and tell us if this works for you now?"}}
{"actor":{"display_login":"andy-ms"}}