-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
🐛 BUG: Astro VSCode extension crashing Typescript language server #850
Comments
Can't do much without a reproduction. Do you have a project I can check out? |
Hello @funabab. Please provide a minimal reproduction using a GitHub repository or at least sharing the file where the issue happen. Issues marked with |
Same Issue here. Here's the output from my console: [Error - 8:57:44 PM] Server initialization failed. |
That's not the same error. Yours seems to be related to our extension not being able to find TypeScript when using TypeScript's nightly. |
I had the same problem. Try updating your VS Code to the latest version; this is how I solve this error.
|
yep im also having the same issue |
Same issue here. Logs:
|
I Started seeing this issue after adding .svelte files with Typescript to my project. When I disable the astro extension the crash is gone. Followed the standard setup for Svelte on Astro. |
I still cannot do anything without a reproduction or more detailed logs. Everything seems to work fine for me, even when using Svelte and other extensions. |
I face the same problem when I use VS Code refactor tools. After unable the Astro plugin, the refactor tools work properly.
|
This is unrelated to this issue. The issue you're encountering is this one: #812 |
The latest version of Svelte extension fixes the compatibility issue with Volar-based TS plugin, please make sure you have updated it. |
Same issue here astro Client Crashing in Neovim and VSCode on two Systems this are the lsp.log i get. [START][2024-05-28 16:42:17] LSP logging initiated |
I am having the same problem, and have isolated it down to the Astro extension. I have been able to reproduce the error in a freshly created scaffold, where the only things I have added to the empty astro template is react and tailwind. These are the only steps I have done to create this repository: npm create astro@latest
npx astro add react
npx astro add tailwind I then created a directory When I open VSCode I get the error, as well as whenever I restart the JS/TS language server. The error disappears when I disable the Astro extension. VSCode version information:Version: 1.90.1 Astro extension information:Version: v2.10.2 |
🎉 Issue IdentifiedAfter some digging around further, I was able to resolve this problem by telling VS Code to use the workspace version of Typescript instead of VS Code's version. On my machine, the VS Code version is 5.1.6. When I initialised an empty Astro project using |
Describe the Bug
Unable to work with any TS project because VSCode TS server keeps crashing with the following message.
Just as the error stated, I disabled all extensions mentioned and manually enabled each one. Eventually, I discovered disabling only astro extension prevented the crash.
Steps to Reproduce
VSCode Version: 1.87.2
Typescript Version: 5.3.2
Astro VSCode Extension Version: 2.8.5
OS: Ubuntu 22.04.4
The text was updated successfully, but these errors were encountered: