-
-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
typescript plugin conflict with typescript-lit-html-plugin and typescript-plugin-css-modules #4246
Comments
You can configure |
This exception appear in standalone tsserver (via typescript-language-server, not is vscode This settings doesn’t change anything, and as i wrote in edit, problem appear even without extra plugins |
This is a fault tolerance issue with tsserver, see microsoft/TypeScript#57630. This needs to be fixed by |
Is this related? In neovim i get bombarded with: tsserver: 1: <semantic> TypeScript Server Error (5.3.3)
Debug Failure. Did not expect ImportDeclaration to have an Identifier in its trivia
Error: Debug Failure. Did not expect ImportDeclaration to have an Identifier in its trivia
at addSyntheticNodes (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:143992:15)
at processNode (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:143966:5)
at visitNode2 (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:30227:18)
at forEachChildInImportDeclaration (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:30533:59)
at NodeObject.forEachChild (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:143949:12)
at createChildren (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:143977:8)
at NodeObject.getChildren (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:143928:48)
at getTokenAtPositionWorker (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:132140:32)
at getTouchingToken (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:132113:10)
at getTouchingPropertyName (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:132110:10)
at getReferencesAtLocation (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:163581:31)
at getReferencesInContainer (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:163574:7)
at getReferencesInContainerOrFiles (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:163157:7)
at getReferencedSymbolsForSymbol (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:163150:7)
at Object.getReferencedSymbolsForNode (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:162897:24)
at Object.getReferenceEntriesForNode (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:162541:30)
at getSemanticDocumentHighlights (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:135411:59)
at Object.getDocumentHighlights (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:135399:12)
at getDocumentHighlights (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:145195:31)
at C:\x\y\z\z.foo\bar\node_modules\@volar\typescript\lib\node\decorateLanguageService.js:204:120
at process (C:\x\y\z\z.foo\bar\node_modules\@volar\typescript\lib\node\decorateLanguageService.js:609:28)
at linkedCodeFeatureWorker (C:\x\y\z\z.foo\bar\node_modules\@volar\typescript\lib\node\decorateLanguageService.js:596:21)
at languageService.getDocumentHighlights (C:\x\y\z\z.foo\bar\node_modules\@volar\typescript\lib\node\decorateLanguageService.js:204:28)
at IpcIOSession.getDocumentHighlights (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:184178:61)
at documentHighlights (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:183149:43)
at c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:185375:69
at IpcIOSession.executeWithRequestId (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:185367:14)
at IpcIOSession.executeCommand (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:185375:29)
at IpcIOSession.onMessage (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:185417:51)
at process.<anonymous> (c:\x\y\z\z.foo\bar\node_modules\typescript\lib\tsserver.js:186999:14)
at process.emit (node:events:514:28)
at emit (node:internal/child_process:937:14)
at process.processTicksAndRejections (node:internal/process/task_queues:83:21) Project Dependencies: ...
"dependencies": {
"@headlessui/vue": "^1.7.19",
"pinia": "^2.1.7",
"validator": "^13.11.0",
"vue": "^3.3.11",
"vue-i18n": "^9.9.1",
"vue-router": "^4.2.5"
},
"devDependencies": {
"@total-typescript/ts-reset": "^0.5.1",
"@tsconfig/node18": "^18.2.2",
"@types/node": "^18.19.3",
"@types/validator": "^13.11.9",
"@vitejs/plugin-vue": "^4.5.2",
"@vue/tsconfig": "^0.5.0",
"@vue/typescript-plugin": "^2.0.13",
"autoprefixer": "^10.4.17",
"npm-run-all2": "^6.1.1",
"postcss": "^8.4.33",
"prettier": "^3.2.4",
"tailwindcss": "^3.4.1",
"typescript": "~5.3.0",
"vite": "^5.0.10",
"vue-tsc": "^1.8.25"
}
... neovim config (init.lua) ...
tsserver = {
init_options = {
plugins = {
{
name = '@vue/typescript-plugin',
location = '...',
languages = { 'vue' },
},
},
},
... |
@samuliraty Please try update |
That actually worked for me. I was 1 patch version behind. |
If I use any of this plugin in tsserver configuration, vue start crashing or I see
__VLS_*
completions everywherePart from logs (on crash)
EDIT, I see same error even without plugins, LOGS:
The text was updated successfully, but these errors were encountered: