{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/12080","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/12080/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/12080/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/12080/events","html_url":"https://github.com/Microsoft/TypeScript/issues/12080","id":187720715,"number":12080,"title":"Regression: Multiple projects linked by npm link do not compile properly within vscode","user":{"login":"kayahr","id":580493,"avatar_url":"https://avatars.githubusercontent.com/u/580493?v=3","gravatar_id":"","url":"https://api.github.com/users/kayahr","html_url":"https://github.com/kayahr","followers_url":"https://api.github.com/users/kayahr/followers","following_url":"https://api.github.com/users/kayahr/following{/other_user}","gists_url":"https://api.github.com/users/kayahr/gists{/gist_id}","starred_url":"https://api.github.com/users/kayahr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kayahr/subscriptions","organizations_url":"https://api.github.com/users/kayahr/orgs","repos_url":"https://api.github.com/users/kayahr/repos","events_url":"https://api.github.com/users/kayahr/events{/privacy}","received_events_url":"https://api.github.com/users/kayahr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","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":null,"comments":4,"created_at":"2016-11-07T14:09:31Z","updated_at":"2016-11-09T10:17:56Z","closed_at":"2016-11-07T21:19:50Z","body":"**TypeScript Version:**  2.0.6, 2.0.7 and 2.1.0-dev.20161107 \r\n**VSCode Version:**  1.7.1\r\n**OS Version:**  Debian GNU/Linux 8.6\r\n\r\nThis is a regression of  #9585. The original problem was fixed in TypeScript 2.0.2 but since 2.0.6 the problem is back. Here is a copy of the reproduction instructions which are still correct (But I haven't made a new screenshot because it would just show the same error with a different TypeScript version):\r\n\r\n**Steps to reproduce:**\r\n1. Globally install TypeScript (Current is 2.0.7) with \"npm install -g typescript\"\r\n2. Install latest vscode (Current is 1.7.1)\r\n3. Configure vscode to use the globally installed TypeScript by setting the typescript.tsdk path in the user settings.\r\n4. Unpack the [projects.zip](https://github.com/Microsoft/TypeScript/files/355439/projects.zip)\r\n   archive somewhere.\r\n5. Run `npm link` in `projects/base`.\r\n6. Run `npm link base` in `projects/ui`.\r\n7. Run `npm link` in `projects/ui`.\r\n8. Run `npm link base` in `projects/application`.\r\n9. Run `npm link ui` in `projects/application`.\r\n10. Run `tsc` in `projects/application` and notice that it compiles correctly.\r\n11. Now open `projects/application` in vscode and open the file `src/main/Impl.ts`. The following error is displayed:\r\n    \r\n    ```\r\n    Class 'TestImpl' incorrectly implements interface 'Test'.\r\n      Types of property 'getPoint' are incompatible.\r\n        Type '() => Point' is not assignable to type '() => Point'.\r\n          Type 'Point' is not assignable to type 'Point'.\r\n            Types have separate declarations of a private property 'x'.\r\n    ```\r\n12. Press Ctrl-Shift-B to compile the project with the command line compiler. The error disappears.\r\n13. Edit the file (inserting a whitespace for example) and the error re-appears.\r\n\r\nSo while the project compiles fine on the command line (Running `tsc` directly) it doesn't compile within vscode which uses the exact same compiler.\r\n\r\nHere is a screenshot of the error message:\r\n\r\n![screenshot](https://cloud.githubusercontent.com/assets/580493/16706478/7b2e9e4a-45ae-11e6-88c5-00a7370c7293.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/259379698","html_url":"https://github.com/Microsoft/TypeScript/issues/12080#issuecomment-259379698","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/12080","id":259379698,"user":{"login":"kayahr","id":580493,"avatar_url":"https://avatars.githubusercontent.com/u/580493?v=3","gravatar_id":"","url":"https://api.github.com/users/kayahr","html_url":"https://github.com/kayahr","followers_url":"https://api.github.com/users/kayahr/followers","following_url":"https://api.github.com/users/kayahr/following{/other_user}","gists_url":"https://api.github.com/users/kayahr/gists{/gist_id}","starred_url":"https://api.github.com/users/kayahr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kayahr/subscriptions","organizations_url":"https://api.github.com/users/kayahr/orgs","repos_url":"https://api.github.com/users/kayahr/repos","events_url":"https://api.github.com/users/kayahr/events{/privacy}","received_events_url":"https://api.github.com/users/kayahr/received_events","type":"User","site_admin":false},"created_at":"2016-11-09T10:17:56Z","updated_at":"2016-11-09T10:17:56Z","body":"No chance to get this fix in 2.0? It was fixed before for 2.0.2 and now its broken again which means we are stuck at 2.0.2 until 2.1 is released."}}
{"actor":{"display_login":"kayahr"}}