Title: Organize Imports: Debug Failure. Did not expect InterfaceDeclaration to have an Identifier in its trivia · Issue #22924 · microsoft/TypeScript · GitHub
Open Graph Title: Organize Imports: Debug Failure. Did not expect InterfaceDeclaration to have an Identifier in its trivia · Issue #22924 · microsoft/TypeScript
X Title: Organize Imports: Debug Failure. Did not expect InterfaceDeclaration to have an Identifier in its trivia · Issue #22924 · microsoft/TypeScript
Description: From microsoft/vscode#46698 TypeScript Version: 2.9.0-dev.20180327 Search Terms: Organize imports Code In the vscode codebase Open modes.ts: https://github.com/Microsoft/vscode/blob/master/src/vs/editor/common/modes.ts Delete the { IMark...
Open Graph Description: From microsoft/vscode#46698 TypeScript Version: 2.9.0-dev.20180327 Search Terms: Organize imports Code In the vscode codebase Open modes.ts: https://github.com/Microsoft/vscode/blob/master/src/vs/e...
X Description: From microsoft/vscode#46698 TypeScript Version: 2.9.0-dev.20180327 Search Terms: Organize imports Code In the vscode codebase Open modes.ts: https://github.com/Microsoft/vscode/blob/master/src/vs/e...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/22924
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Organize Imports: Debug Failure. Did not expect InterfaceDeclaration to have an Identifier in its trivia","articleBody":"From https://github.com/Microsoft/vscode/issues/46698\r\n\r\n**TypeScript Version:** 2.9.0-dev.20180327\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** \r\n- Organize imports\r\n\r\n**Code**\r\n\r\n1. In the vscode codebase\r\n2. Open `modes.ts`: https://github.com/Microsoft/vscode/blob/master/src/vs/editor/common/modes.ts\r\n3. Delete the `{ IMarkerData }` import\r\n4. Run Organize imports\r\n\r\n**Bug:**\r\nDebug failure:\r\n\r\n```\r\n[Error - 13:54:12] 'organizeImports' request failed with error.\r\nError processing request. Debug Failure. Did not expect InterfaceDeclaration to have an Identifier in its trivia\r\nError: Debug Failure. Did not expect InterfaceDeclaration to have an Identifier in its trivia\r\n at NodeObject.addSyntheticNodes (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:83936:34)\r\n at processNode (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:83980:29)\r\n at NodeObject.createChildren (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:83994:21)\r\n at NodeObject.getChildren (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:84020:22)\r\n at getTokenAtPositionWorker (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:66397:43)\r\n at getTouchingToken (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:66384:16)\r\n at Object.getTouchingPropertyName (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:66380:16)\r\n at /Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:71736:47\r\n at Array.some (native)\r\n at Object.isSymbolReferencedInFile (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:71735:85)\r\n at isDeclarationUsed (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:74069:102)\r\n at /Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:74055:95\r\n at Array.filter (native)\r\n at removeUnusedImports (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:74055:66)\r\n at /Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:74006:43\r\n at Object.flatMap (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:1774:25)\r\n at organizeImportsWorker (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:74004:41)\r\n at Object.organizeImports (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:73989:13)\r\n at Object.organizeImports (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:85310:39)\r\n at IOSession.Session.organizeImports (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:92327:60)\r\n at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:91225:61)\r\n at /Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:92510:88\r\n at IOSession.Session.executeWithRequestId (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:92501:28)\r\n at IOSession.Session.executeCommand (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:92510:33)\r\n at IOSession.Session.onMessage (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:92530:35)\r\n at Interface.\u003canonymous> (/Users/matb/projects/vscode/node_modules/typescript/lib/tsserver.js:93738: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\nAlso occurs on `references`","author":{"url":"https://github.com/mjbvz","@type":"Person","name":"mjbvz"},"datePublished":"2018-03-27T20:54:39Z","url":"https://github.com/microsoft/TypeScript/issues/22924"}
| 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:a20ba925-ae9f-e3e2-4947-e089915a466b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 91BC:213839:2D85430:3A318E9:6B01AEA4 |
| html-safe-nonce | 8cb78db4499fa82f5dcf4269c15d271e0f4aef7fdd291ef6de8e5c413d616f31 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUJDOjIxMzgzOToyRDg1NDMwOjNBMzE4RTk6NkIwMUFFQTQiLCJ2aXNpdG9yX2lkIjoiOTE5Nzg1ODc5MDQ1MDUwNzQyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | af08a887f1884e78b48aaad1a352b24a4b8fdcb5ae9de189e020e4e3b24d264b |
| hovercard-subject-tag | issue:309130103 |
| 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/22924/issue_layout |
| twitter:image | https://opengraph.githubassets.com/289b5394327a2f0ac14c66f731294d4abb33999b5fa9f097ac4272e355e26801/microsoft/TypeScript/issues/22924 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/289b5394327a2f0ac14c66f731294d4abb33999b5fa9f097ac4272e355e26801/microsoft/TypeScript/issues/22924 |
| og:image:alt | From microsoft/vscode#46698 TypeScript Version: 2.9.0-dev.20180327 Search Terms: Organize imports Code In the vscode codebase Open modes.ts: https://github.com/Microsoft/vscode/blob/master/src/vs/e... |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width