{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/19462","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/19462/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/19462/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/19462/events","html_url":"https://github.com/Microsoft/TypeScript/issues/19462","id":268251699,"number":19462,"title":"[2.6.0] Crash in tsservice `getCodeFixes` command","user":{"login":"Kovensky","id":73085,"avatar_url":"https://avatars1.githubusercontent.com/u/73085?v=4","gravatar_id":"","url":"https://api.github.com/users/Kovensky","html_url":"https://github.com/Kovensky","followers_url":"https://api.github.com/users/Kovensky/followers","following_url":"https://api.github.com/users/Kovensky/following{/other_user}","gists_url":"https://api.github.com/users/Kovensky/gists{/gist_id}","starred_url":"https://api.github.com/users/Kovensky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kovensky/subscriptions","organizations_url":"https://api.github.com/users/Kovensky/orgs","repos_url":"https://api.github.com/users/Kovensky/repos","events_url":"https://api.github.com/users/Kovensky/events{/privacy}","received_events_url":"https://api.github.com/users/Kovensky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-25T03:03:45Z","updated_at":"2017-10-25T03:03:45Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**TypeScript Version:**  2.6.0-dev.20171019\r\n\r\n**Code**\r\n\r\n(unknown)\r\n\r\n**Expected behavior:**\r\n\r\nCompilation/typing errors to show up in the Problems view of VS Code.\r\n\r\n**Actual behavior:**\r\n\r\n```\r\n[Error  - 1:04:30 PM] 'getCodeFixes' request failed with error.\r\nError processing request. Cannot read property 'length' of undefined\r\nTypeError: Cannot read property 'length' of undefined\r\n    at Object.unescapeLeadingUnderscores (.../node_modules/typescript/lib/tsserver.js:8560:18)\r\n    at Object.getSuggestionForNonexistentSymbol (.../node_modules/typescript/lib/tsserver.js:19551:95)\r\n    at Object.getActionsForCorrectSpelling [as getCodeActions] (.../node_modules/typescript/lib/tsserver.js:73149:38)\r\n    at .../node_modules/typescript/lib/tsserver.js:72873:33\r\n    at Object.forEach (.../node_modules/typescript/lib/tsserver.js:1294:30)\r\n    at Object.getFixes (.../node_modules/typescript/lib/tsserver.js:72872:16)\r\n    at .../node_modules/typescript/lib/tsserver.js:76664:35\r\n    at Object.flatMap (.../node_modules/typescript/lib/tsserver.js:1526:25)\r\n    at Object.getCodeFixesAtPosition (.../node_modules/typescript/lib/tsserver.js:76662:23)\r\n    at IOSession.Session.getCodeFixes (.../node_modules/typescript/lib/tsserver.js:82655:64)\r\n    at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (.../node_modules/typescript/lib/tsserver.js:81577:61)\r\n    at .../node_modules/typescript/lib/tsserver.js:82799:88\r\n    at IOSession.Session.executeWithRequestId (.../node_modules/typescript/lib/tsserver.js:82790:28)\r\n    at IOSession.Session.executeCommand (.../node_modules/typescript/lib/tsserver.js:82799:33)\r\n    at IOSession.Session.onMessage (.../node_modules/typescript/lib/tsserver.js:82819:35)\r\n    at Interface.<anonymous> (.../node_modules/typescript/lib/tsserver.js:83945:27)\r\n    at emitOne (events.js:96:13)\r\n    at Interface.emit (events.js:191:7)\r\n    at Interface._onLine (readline.js:241:10)\r\n    at Interface._normalWrite (readline.js:384:12)\r\n    at Socket.ondata (readline.js:101:10)\r\n    at emitOne (events.js:96:13)\r\n    at Socket.emit (events.js:191:7)\r\n    at readableAddChunk (_stream_readable.js:178:18)\r\n    at Socket.Readable.push (_stream_readable.js:136:10)\r\n    at Pipe.onread (net.js:560:20)\r\n```\r\n\r\nI am unsure what caused this to happen, but the `Problems` panel / compilation error highlights became non-functional, typescript-wise, after this crash happened (tslint, etc still worked). Manually restarting the TS Service fixed it; but I did not do it immediately, so it is possible that I did further changes to the code or environment that avoided the crash."}}
{"actor":{"display_login":"Kovensky"}}