Title: this.property assignment in JS often crashes the language service · Issue #22774 · microsoft/TypeScript · GitHub
Open Graph Title: this.property assignment in JS often crashes the language service · Issue #22774 · microsoft/TypeScript
X Title: this.property assignment in JS often crashes the language service · Issue #22774 · microsoft/TypeScript
Description: From Paulo Cesar (@pocesar) on March 21, 2018 21:20 Version 1.22.0-insider Commit 31c30b9 Date 2018-03-21T06:17:39.707Z Shell 1.7.12 Renderer 58.0.3029.110 Node 7.9.0 Architecture x64 Steps to Reproduce: Open an ES7 file Use the followin...
Open Graph Description: From Paulo Cesar (@pocesar) on March 21, 2018 21:20 Version 1.22.0-insider Commit 31c30b9 Date 2018-03-21T06:17:39.707Z Shell 1.7.12 Renderer 58.0.3029.110 Node 7.9.0 Architecture x64 Steps to Repr...
X Description: From Paulo Cesar (@pocesar) on March 21, 2018 21:20 Version 1.22.0-insider Commit 31c30b9 Date 2018-03-21T06:17:39.707Z Shell 1.7.12 Renderer 58.0.3029.110 Node 7.9.0 Architecture x64 Steps to Repr...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/22774
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"this.property assignment in JS often crashes the language service","articleBody":"_From @pocesar on March 21, 2018 21:20_\n\n\u003c!-- Do you have a question? Please ask it on https://stackoverflow.com/questions/tagged/vscode. -->\r\n\r\n\u003c!-- Use Help > Report Issue to prefill these. -->\r\n\r\nVersion 1.22.0-insider\r\nCommit 31c30b99345e65fffdc33066726d0962dfbecfa3\r\nDate 2018-03-21T06:17:39.707Z\r\nShell 1.7.12\r\nRenderer 58.0.3029.110\r\nNode 7.9.0\r\nArchitecture x64\r\n\r\nSteps to Reproduce:\r\n\r\n1. Open an ES7 file\r\n2. Use the following jsconfig.json:\r\n\r\n```json\r\n{\r\n \"compilerOptions\": {\r\n \"checkJs\": true,\r\n \"strict\": true,\r\n \"noUnusedLocals\": true,\r\n \"noUnusedParameters\": true,\r\n \"noImplicitAny\": false,\r\n \"module\": \"commonjs\",\r\n \"target\": \"es2017\",\r\n \"alwaysStrict\": true,\r\n \"moduleResolution\": \"node\",\r\n \"noImplicitReturns\": true,\r\n \"noFallthroughCasesInSwitch\": true,\r\n \"noImplicitUseStrict\": true,\r\n \"strictNullChecks\": false,\r\n \"baseUrl\": \"./\",\r\n \"rootDir\": \"./\",\r\n \"allowSyntheticDefaultImports\": true\r\n }\r\n}\r\n``` \r\n3. Variables that are defined at the top of the file are reporting as \"not being read\" (with a wriggly green line below), `require('./middleware')` is a wrong path, when I changed it to '../../middleware', it still shows as being './middleware'\r\n\r\nOutput > Typescript is returning this error:\r\n\r\n```\r\n[Error - 18:14:55] 'quickinfo' request failed with error.\r\nError processing request. Cannot read property 'members' of undefined\r\nTypeError: Cannot read property 'members' of undefined\r\n at bindThisPropertyAssignment (C:\\nodejs\\node_modules\\typescript\\lib\\tsserver.js:20673:66)\r\n at bindWorker (C:\\nodejs\\node_modules\\typescript\\lib\\tsserver.js:20432:29)\r\n at bind (C:\\nodejs\\node_modules\\typescript\\lib\\tsserver.js:20336:13)\r\n at visitNode (C:\\nodejs\\node_modules\\typescript\\lib\\tsserver.js:13322:24)\r\n at Object.forEachChild (C:\\nodejs\\node_modules\\typescript\\lib\\tsserver.js:13547:24)\r\n at bindEachChild (C:\\nodejs\\node_modules\\typescript\\lib\\tsserver.js:19294:16)\r\n at bindChildrenWorker (C:\\nodejs\\node_modules\\typescript\\lib\\tsserver.js:19383:21)\r\n at bindChildren (C:\\nodejs\\node_modules\\typescript\\lib\\tsserver.js:19269:17)\r\n at bind (C:\\nodejs\\node_modules\\typescript\\lib\\tsserver.js:20342:21)\r\n at bindEach (C:\\nodejs\\node_modules\\typescript\\lib\\tsserver.js:19286:21)\r\n at visitNodes (C:\\nodejs\\node_modules\\typescript\\lib\\tsserver.js:13327:24)\r\n at Object.forEachChild (C:\\nodejs\\node_modules\\typescript\\lib\\tsserver.js:13536:24)\r\n at bindEachChild (C:\\nodejs\\node_modules\\typescript\\lib\\tsserver.js:19294:16)\r\n at bindChildrenWorker (C:\\nodejs\\node_modules\\typescript\\lib\\tsserver.js:19383:21)\r\n at bindChildren (C:\\nodejs\\node_modules\\typescript\\lib\\tsserver.js:19269:17)\r\n at bindContainer (C:\\nodejs\\node_modules\\typescript\\lib\\tsserver.js:19250:17)\r\n at bind (C:\\nodejs\\node_modules\\typescript\\lib\\tsserver.js:20345:21)\r\n```\r\n\r\nPS: When doing the `Reload Window` it takes forever for the file to start being checked (30s+)\r\n\r\n\u003c!-- Launch with `code --disable-extensions` to check. -->\r\nDoes this issue occur when all extensions are disabled?: Yes\r\n\n\n_Copied from original issue: Microsoft/vscode#46292_","author":{"url":"https://github.com/mjbvz","@type":"Person","name":"mjbvz"},"datePublished":"2018-03-21T21:43:51Z","url":"https://github.com/microsoft/TypeScript/issues/22774"}
| 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:b1c3fbcb-d14c-8a8d-fc0c-eecbfbd1ea52 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D6D4:1F2B:DE6050:12971CB:6B01D921 |
| html-safe-nonce | 5b0e518d2ae4c7e857211043bf088e192a1d919a70ba55e18775f2e9494ec9c4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkQ0OjFGMkI6REU2MDUwOjEyOTcxQ0I6NkIwMUQ5MjEiLCJ2aXNpdG9yX2lkIjoiNDE1MTkwNjU3MTQzNTIzNTYxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b70c4f75c5eced84c585caee39bbb9d2957962d2b91e710c894686e5572695f3 |
| hovercard-subject-tag | issue:307429046 |
| 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/microsoft/TypeScript/22774/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c021df17ab4dadedef00b79ae7ccf38174d8f27e44898befc7aa69e73a82249e/microsoft/TypeScript/issues/22774 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c021df17ab4dadedef00b79ae7ccf38174d8f27e44898befc7aa69e73a82249e/microsoft/TypeScript/issues/22774 |
| og:image:alt | From Paulo Cesar (@pocesar) on March 21, 2018 21:20 Version 1.22.0-insider Commit 31c30b9 Date 2018-03-21T06:17:39.707Z Shell 1.7.12 Renderer 58.0.3029.110 Node 7.9.0 Architecture x64 Steps to Repr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mjbvz |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width