Title: [plugin] @angular/language-service doesn't work with TypeScript 2.8 and above. · Issue #24865 · angular/angular · GitHub
Open Graph Title: [plugin] @angular/language-service doesn't work with TypeScript 2.8 and above. · Issue #24865 · angular/angular
X Title: [plugin] @angular/language-service doesn't work with TypeScript 2.8 and above. · Issue #24865 · angular/angular
Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [x] Bug report [ ] Performance issue [ ] Feature request [ ] Documentation issue or request [ ] Support request => Please do not submi...
Open Graph Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [x] Bug report [ ] Performance issue [ ] Feature request [ ] Documentation issue or request [ ...
X Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [x] Bug report [ ] Performance issue [ ] Feature request [ ] Documentation issue or reques...
Opengraph URL: https://github.com/angular/angular/issues/24865
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[plugin] @angular/language-service doesn't work with TypeScript 2.8 and above. ","articleBody":"\u003c!--\r\nPLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.\r\n\r\nISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.\r\n-->\r\n\r\n## I'm submitting a...\r\n\u003c!-- Check one of the following options with \"x\" -->\r\n\u003cpre>\u003ccode>\r\n[ ] Regression (a behavior that used to work and stopped working in a new release)\r\n[x] Bug report \u003c!-- Please search GitHub for a similar issue or PR before submitting -->\r\n[ ] Performance issue\r\n[ ] Feature request\r\n[ ] Documentation issue or request\r\n[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n[ ] Other... Please describe:\r\n\u003c/code>\u003c/pre>\r\n\r\n## Current behavior\r\n\u003c!-- Describe how the issue manifests. -->\r\nCurrently unusable with **_TypeScript 2.8+_** versions when used as **_tsserver_** plugin in **_tsconfig.json_**.\r\n\r\nI got this error.\r\nhttps://github.com/Microsoft/TypeScript/issues/19000\r\n\r\nBut I don't think it's TypeScript issue, since it works on TS 2.7.2.\r\n\r\nTypeScript log from debug window in VSCode. ```*must_hide_path*```. I had to hide path since it contains some sensitive info from this project (NDA signed).\r\n```\r\n[Info - 9:23:21 AM] Started TSServer\r\n[Error - 9:23:25 AM] 'navtree' request failed with error.\r\nError processing request. Cannot read property 'getSourceFile' of undefined\r\nTypeError: Cannot read property 'getSourceFile' of undefined\r\n at tryCall (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\@angular\\language-service\\bundles\\language-service.umd.js:48051:44)\r\n at Object.getNavigationTree (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\@angular\\language-service\\bundles\\language-service.umd.js:48062:45)\r\n at Object.proxy.(anonymous function) [as getNavigationTree] (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\@angular\\language-service\\bundles\\language-service.umd.js:48133:50)\r\n at IOSession.Session.getNavigationTree (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:91851:44)\r\n at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:90837:61)\r\n at c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92167:88\r\n at IOSession.Session.executeWithRequestId (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92158:28)\r\n at IOSession.Session.executeCommand (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92167:33)\r\n at IOSession.Session.onMessage (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92187:35)\r\n at Interface.\u003canonymous> (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:93384:27)\r\n at emitOne (events.js:116:13)\r\n at Interface.emit (events.js:211:7)\r\n at Interface._onLine (readline.js:282:10)\r\n at Interface._normalWrite (readline.js:424:12)\r\n at Socket.ondata (readline.js:141:10)\r\n at emitOne (events.js:116:13)\r\n at Socket.emit (events.js:211:7)\r\n at addChunk (_stream_readable.js:263:12)\r\n at readableAddChunk (_stream_readable.js:250:11)\r\n at Socket.Readable.push (_stream_readable.js:208:10)\r\n at Pipe.onread (net.js:594:20)\r\n[Error - 9:23:25 AM] 'getOutliningSpans' request failed with error.\r\nError processing request. Cannot read property 'getSourceFile' of undefined\r\nTypeError: Cannot read property 'getSourceFile' of undefined\r\n at tryCall (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\@angular\\language-service\\bundles\\language-service.umd.js:48051:44)\r\n at Object.getOutliningSpans (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\@angular\\language-service\\bundles\\language-service.umd.js:48062:45)\r\n at Object.proxy.(anonymous function) [as getOutliningSpans] (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\@angular\\language-service\\bundles\\language-service.umd.js:48133:50)\r\n at IOSession.Session.getOutliningSpans (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:91526:45)\r\n at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:90703:61)\r\n at c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92167:88\r\n at IOSession.Session.executeWithRequestId (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92158:28)\r\n at IOSession.Session.executeCommand (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92167:33)\r\n at IOSession.Session.onMessage (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92187:35)\r\n at Interface.\u003canonymous> (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:93384:27)\r\n at emitOne (events.js:116:13)\r\n at Interface.emit (events.js:211:7)\r\n at Interface._onLine (readline.js:282:10)\r\n at Interface._normalWrite (readline.js:424:12)\r\n at Socket.ondata (readline.js:141:10)\r\n at emitOne (events.js:116:13)\r\n at Socket.emit (events.js:211:7)\r\n at addChunk (_stream_readable.js:263:12)\r\n at readableAddChunk (_stream_readable.js:250:11)\r\n at Socket.Readable.push (_stream_readable.js:208:10)\r\n at Pipe.onread (net.js:594:20)\r\n[Error - 9:23:25 AM] 'getApplicableRefactors' request failed with error.\r\nError processing request. Cannot read property 'getMissingFilePaths' of undefined\r\nTypeError: Cannot read property 'getMissingFilePaths' of undefined\r\n at Object.updateMissingFilePathsWatch (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:86824:40)\r\n at ConfiguredProject.Project.updateGraphWorker (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:88381:24)\r\n at ConfiguredProject.Project.updateGraph (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:88320:39)\r\n at ConfiguredProject.updateGraph (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:88675:61)\r\n at ConfiguredProject.Project.getLanguageService (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:88036:26)\r\n at IOSession.Session.getApplicableRefactors (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:91955:32)\r\n at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:90881:61)\r\n at c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92167:88\r\n at IOSession.Session.executeWithRequestId (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92158:28)\r\n at IOSession.Session.executeCommand (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92167:33)\r\n at IOSession.Session.onMessage (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92187:35)\r\n at Interface.\u003canonymous> (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:93384:27)\r\n at emitOne (events.js:116:13)\r\n at Interface.emit (events.js:211:7)\r\n at Interface._onLine (readline.js:282:10)\r\n at Interface._normalWrite (readline.js:424:12)\r\n at Socket.ondata (readline.js:141:10)\r\n at emitOne (events.js:116:13)\r\n at Socket.emit (events.js:211:7)\r\n at addChunk (_stream_readable.js:263:12)\r\n at readableAddChunk (_stream_readable.js:250:11)\r\n at Socket.Readable.push (_stream_readable.js:208:10)\r\n at Pipe.onread (net.js:594:20)\r\n[Error - 9:23:25 AM] 'getApplicableRefactors' request failed with error.\r\nError processing request. Cannot read property 'getMissingFilePaths' of undefined\r\nTypeError: Cannot read property 'getMissingFilePaths' of undefined\r\n at Object.updateMissingFilePathsWatch (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:86824:40)\r\n at ConfiguredProject.Project.updateGraphWorker (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:88381:24)\r\n at ConfiguredProject.Project.updateGraph (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:88320:39)\r\n at ConfiguredProject.updateGraph (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:88675:61)\r\n at ConfiguredProject.Project.getLanguageService (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:88036:26)\r\n at IOSession.Session.getApplicableRefactors (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:91955:32)\r\n at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:90881:61)\r\n at c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92167:88\r\n at IOSession.Session.executeWithRequestId (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92158:28)\r\n at IOSession.Session.executeCommand (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92167:33)\r\n at IOSession.Session.onMessage (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92187:35)\r\n at Interface.\u003canonymous> (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:93384:27)\r\n at emitOne (events.js:116:13)\r\n at Interface.emit (events.js:211:7)\r\n at Interface._onLine (readline.js:282:10)\r\n at Interface._normalWrite (readline.js:424:12)\r\n at Socket.ondata (readline.js:141:10)\r\n at emitOne (events.js:116:13)\r\n at Socket.emit (events.js:211:7)\r\n at addChunk (_stream_readable.js:263:12)\r\n at readableAddChunk (_stream_readable.js:250:11)\r\n at Socket.Readable.push (_stream_readable.js:208:10)\r\n at Pipe.onread (net.js:594:20)\r\n[Error - 9:23:25 AM] 'getApplicableRefactors' request failed with error.\r\nError processing request. Cannot read property 'getMissingFilePaths' of undefined\r\nTypeError: Cannot read property 'getMissingFilePaths' of undefined\r\n at Object.updateMissingFilePathsWatch (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:86824:40)\r\n at ConfiguredProject.Project.updateGraphWorker (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:88381:24)\r\n at ConfiguredProject.Project.updateGraph (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:88320:39)\r\n at ConfiguredProject.updateGraph (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:88675:61)\r\n at ConfiguredProject.Project.getLanguageService (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:88036:26)\r\n at IOSession.Session.getApplicableRefactors (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:91955:32)\r\n at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:90881:61)\r\n at c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92167:88\r\n at IOSession.Session.executeWithRequestId (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92158:28)\r\n at IOSession.Session.executeCommand (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92167:33)\r\n at IOSession.Session.onMessage (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:92187:35)\r\n at Interface.\u003canonymous> (c:\\Users\\dknezevic\\Documents\\*must_hide_path*\\node_modules\\typescript\\lib\\tsserver.js:93384:27)\r\n at emitOne (events.js:116:13)\r\n at Interface.emit (events.js:211:7)\r\n at Interface._onLine (readline.js:282:10)\r\n at Interface._normalWrite (readline.js:424:12)\r\n at Socket.ondata (readline.js:141:10)\r\n at emitOne (events.js:116:13)\r\n at Socket.emit (events.js:211:7)\r\n at addChunk (_stream_readable.js:263:12)\r\n at readableAddChunk (_stream_readable.js:250:11)\r\n at Socket.Readable.push (_stream_readable.js:208:10)\r\n at Pipe.onread (net.js:594:20)\r\n```\r\n## Expected behavior\r\n\u003c!-- Describe what the desired behavior would be. -->\r\nTo work with TypeScript 2.8+ versions\r\n\r\n## Minimal reproduction of the problem with instructions\r\n\u003c!--\r\nFor bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem via\r\nhttps://stackblitz.com or similar (you can use this template as a starting point: https://stackblitz.com/fork/angular-gitter).\r\n-->\r\n\r\nSimply use TypeScript 2.8+ and add @angular/language-service to plugins in tsconfig.json\r\n\r\n## What is the motivation / use case for changing the behavior?\r\n\u003c!-- Describe the motivation or the concrete use case. -->\r\n\r\n\r\n## Environment\r\n\r\n\u003cpre>\u003ccode>\r\nAngular version: 6.0.7\r\n\u003c!-- Check whether this is still an issue in the most recent Angular version -->\r\nno\r\nBrowser:\r\n- [ ] Chrome (desktop) version XX\r\n- [ ] Chrome (Android) version XX\r\n- [ ] Chrome (iOS) version XX\r\n- [ ] Firefox version XX\r\n- [ ] Safari (desktop) version XX\r\n- [ ] Safari (iOS) version XX\r\n- [ ] IE version XX\r\n- [ ] Edge version XX\r\n \r\nFor Tooling issues:\r\n- Node version: 8.11.3 \u003c!-- run `node --version` -->\r\n- Platform: Windows \u003c!-- Mac, Linux, Windows -->\r\n\r\nOthers:\r\n\u003c!-- Anything else relevant? Operating system version, IDE, package manager, HTTP server, ... -->\r\n\u003c/code>\u003c/pre>\r\nUsed VSCode to get debug info from TypeScript since tsserver log is useless in this case\r\n","author":{"url":"https://github.com/duki994","@type":"Person","name":"duki994"},"datePublished":"2018-07-13T07:33:52Z","url":"https://github.com/angular/angular/issues/24865"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:23edfb30-2227-72ac-87bc-0312d21fbb1c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6C2:842EC:A78FDF:E0FD67:6B00EFE4 |
| html-safe-nonce | ea6483fd80808e6a8741cf0e3cf7d0a2404493ac067198a5766f482bbfc9a42d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkMyOjg0MkVDOkE3OEZERjpFMEZENjc6NkIwMEVGRTQiLCJ2aXNpdG9yX2lkIjoiMTI1NjcxOTE3NTA0NTQxMDc4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e134c4a7488841441bf58af34bd606e002c907b4230c851a4596c0c1668eb791 |
| hovercard-subject-tag | issue:340912938 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/24865/issue_layout |
| twitter:image | https://opengraph.githubassets.com/80fd63b9467eb907932753bf2f63de45b23b0aca9fb2fa693df9614d0858b577/angular/angular/issues/24865 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/80fd63b9467eb907932753bf2f63de45b23b0aca9fb2fa693df9614d0858b577/angular/angular/issues/24865 |
| og:image:alt | I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [x] Bug report [ ] Performance issue [ ] Feature request [ ] Documentation issue or request [ ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | duki994 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width