{"action":"created","issue":{"url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/681","repository_url":"https://api.github.com/repos/TypeStrong/atom-typescript","labels_url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/681/labels{/name}","comments_url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/681/comments","events_url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/681/events","html_url":"https://github.com/TypeStrong/atom-typescript/issues/681","id":112893126,"number":681,"title":"TypeScript Compilation Context Issue","user":{"login":"proff321","id":4560619,"avatar_url":"https://avatars.githubusercontent.com/u/4560619?v=3","gravatar_id":"","url":"https://api.github.com/users/proff321","html_url":"https://github.com/proff321","followers_url":"https://api.github.com/users/proff321/followers","following_url":"https://api.github.com/users/proff321/following{/other_user}","gists_url":"https://api.github.com/users/proff321/gists{/gist_id}","starred_url":"https://api.github.com/users/proff321/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/proff321/subscriptions","organizations_url":"https://api.github.com/users/proff321/orgs","repos_url":"https://api.github.com/users/proff321/repos","events_url":"https://api.github.com/users/proff321/events{/privacy}","received_events_url":"https://api.github.com/users/proff321/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/TypeStrong/atom-typescript/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-10-22T21:14:51Z","updated_at":"2016-06-11T05:36:31Z","closed_at":null,"body":"## The Issue\r\nA file named `acs.ts` resides within the project in subfolder `controllers`.  When the file is opened in Atom an error stating that the file is not included in the TypeScript compiler's context appears.  When referencing `tsconfig.json` the `\"files\":[]` property contains the relative path to the `acs.ts` file and is saved to disk.\r\n\r\nIf the user clicks on the file reference link in the error, numerous (about 25 - 30) tabs open all referencing the file at a different location.  The \"different location\" is inside of a `Controllers` folder within the same project.  It is critical to note that the subfolder `Controllers` does **not** exist.  Here are a few things that I have noticed while investigating the issue: \r\n\r\n1. When the file is opened as `Controllers/acs.ts` the compiler context error no longer appears.\r\n1. A change made to the file in the fictional path `Controllers/acs.ts` will appear in the file at the real path `controllers/acs.ts` and the reverse holds true as well.\r\n1. If the user were to completely quit Atom and then re-open the `controllers/acs.ts` file, the issue of opening numerous tabs will not occur.  Instead it will behave as expected and bring the user's attention to the first line of the file.  \r\n1. Continuing to use Atom (opening, closing, and editing files) and then clicking the error will re-create the numerous tabs issue.  Unfortunately a concise way to reproduce the bug has not been identified. \r\n\r\nIn an effort to identify a source for the bug, the subfolder `controllers` was renamed to `Controllers` and the compiler context error no longer appeared.  Changing the folder name back to its lowercase representation again introduces the error.  Note that the `tsconfig.json` file updated the `\"files\":[]` property to reflect the correct capitalization of the path.\r\n\r\nA similar issue occurs with file `tests/Credential/credentialHelper.ts`.  The major difference is that the error does not open a phantom file path, but instead opens the file at its real location.  Again, the file's relative path is properly populated in the `tsconfig.json` file.\r\n\r\nThe project folder has been moved around the operating system as well as locations containing no spaces or special characters in the path.  No location was found that resolved the compilation context issue.\r\n\r\n## System Information\r\n**OS:** OS X El Capitan\r\n**OS Version:** 10.11\r\n**Atom-TypeScript Version:** 7.5.0\r\n**Atom Version:** 1.0.19\r\n**Node Version:** 0.12.4\r\n**TSC Version:** 1.5.0-beta"},"comment":{"url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/comments/225338402","html_url":"https://github.com/TypeStrong/atom-typescript/issues/681#issuecomment-225338402","issue_url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/681","id":225338402,"user":{"login":"rators","id":10375881,"avatar_url":"https://avatars.githubusercontent.com/u/10375881?v=3","gravatar_id":"","url":"https://api.github.com/users/rators","html_url":"https://github.com/rators","followers_url":"https://api.github.com/users/rators/followers","following_url":"https://api.github.com/users/rators/following{/other_user}","gists_url":"https://api.github.com/users/rators/gists{/gist_id}","starred_url":"https://api.github.com/users/rators/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rators/subscriptions","organizations_url":"https://api.github.com/users/rators/orgs","repos_url":"https://api.github.com/users/rators/repos","events_url":"https://api.github.com/users/rators/events{/privacy}","received_events_url":"https://api.github.com/users/rators/received_events","type":"User","site_admin":false},"created_at":"2016-06-11T05:36:30Z","updated_at":"2016-06-11T05:36:30Z","body":"This issue still persists. Any word on if there is a fix in the works?"}}
{"actor":{"display_login":"rators"}}