You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using 'Go To Definition' that moves me to a file in a different workspace npm workspace crashes the LSP with the following error message:
The logs display the following messages:
[ERROR][2024-12-24 14:10:50] .../vim/lsp/rpc.lua:770 "rpc"
"/Users/r.de.ruijter/.local/share/nvim/mason/bin/astro-ls" "stderr"
"/Users/r.de.ruijter/.local/share/nvim/mason/packages/astro-language-server/node_modules/typescript/lib/typescript.js:140899\n
return !!entry.sourceFile;\n ^\n\nTypeError: Cannot read properties of undefined
(reading 'sourceFile')\n at isDocumentRegistryEntry
(/Users/r.de.ruijter/.local/share/nvim/mason/packages/astro-language-server/node_modules/typescript/lib/typescript.js:140899:18)\n
at getDocumentRegistryEntry
(/Users/r.de.ruijter/.local/share/nvim/mason/packages/astro-language-server/node_modules/typescript/lib/typescript.js:140975:19)\n
at Object.releaseDocumentWithKey
(/Users/r.de.ruijter/.local/share/nvim/mason/packages/astro-language-server/node_modules/typescript/lib/typescript.js:141070:19)\n
at
/Users/r.de.ruijter/.local/share/nvim/mason/packages/astro-language-server/node_modules/typescript/lib/typescript.js:150006:65\n
at forEach
(/Users/r.de.ruijter/.local/share/nvim/mason/packages/astro-language-server/node_modules/typescript/lib/typescript.js:2282:22)\n
at cleanupSemanticCache
(/Users/r.de.ruijter/.local/share/nvim/mason/packages/astro-language-server/node_modules/typescript/lib/typescript.js:150006:7)\n
at Object.dispose
(/Users/r.de.ruijter/.local/share/nvim/mason/packages/astro-language-server/node_modules/typescript/lib/typescript.js:150011:5)\n
at Object.dispose
(/Users/r.de.ruijter/.local/share/nvim/mason/packages/astro-language-server/node_modules/@astrojs/language-server/node_modules/volar-service-typescript/lib/plugins/semantic.js:219:37)\n
at
/Users/r.de.ruijter/.local/share/nvim/mason/packages/astro-language-server/node_modules/@astrojs/language-server/node_modules/@volar/language-service/lib/languageService.js:229:77\n
at Array.forEach (<anonymous>)\n\nNode.js v23.3.0\n"
[ERROR][2024-12-24 14:10:50] ...lsp/handlers.lua:623 "Failed to refresh diagnostics"
Steps to Reproduce
I am unable to create a reproduction for this issue, but there is an attempt to reproduce the setup in link below
I have a sense that it happens only in my monorepo setup where there are a large number of Astro components lying around.
Describe the Bug
Using 'Go To Definition' that moves me to a file in a different workspace npm workspace crashes the LSP with the following error message:
The logs display the following messages:
Steps to Reproduce
I am unable to create a reproduction for this issue, but there is an attempt to reproduce the setup in link below
I have a sense that it happens only in my monorepo setup where there are a large number of Astro components lying around.
Link to Minimal Reproducible Example
https://github.com/RogierdeRuijter/go-to-definition-astro
The text was updated successfully, but these errors were encountered: