IntelliSense not working for .svelte files on existing project, but not on new projects. #11080
-
Describe the bugFor some reason, my IntelliSense stopped working for all .svelte files (routes or components stored inside If I create a new fresh Sveltekit project it work well again. (screen below is from a fresh install, the one above is from my existing project) I tried to :
Autocompletion work well on the old project when using Jetbrain Webstorm. So definitely a typescript/vscode/sveltekit bug. But I don't know what's the cause of it. Any investigation ideas ? Thanks for your help. ReproductionCan't reproduce the bug in a new environment. And I can't share the broken environment for NDA reasons. LogsNo errors System InfoSystem:
OS: Windows 10 10.0.22621
CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz
Memory: 19.49 GB / 31.79 GB
Binaries:
Node: 20.9.0 - D:\Node20\node.EXE
npm: 8.19.1 - D:\Node20\npm.CMD
Browsers:
Edge: Chromium (119.0.2151.58)
Internet Explorer: 11.0.22621.1
npmPackages:
@sveltejs/adapter-auto: ^2.1.1 => 2.1.1
@sveltejs/kit: ^1.27.6 => 1.27.6
svelte: ^4.2.5 => 4.2.5
vite: ^4.0.0 => 4.5.0 Severityannoyance Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
If you can't provide a reproduction, it's impossible to troubleshoot the issue. I can only suggest incrementally migrating your old project files into the new project to find out what the issue is. |
Beta Was this translation helpful? Give feedback.
-
Do you have any VSCode workspace config? It might be a wrong svelte.language-server.ls-path or svelte.language-server.runtime config that cause the language server to crash. It may be that the config references non-existent files or a mix-up between these two configs. |
Beta Was this translation helpful? Give feedback.
-
I fixed it. When I uninstalled all my packages and restarted the Svelte language server, my intellisense worked again. I then tried to isolate the faulty package and found out it was the fault of the The weird thing is that I installed/reinstalled it multiples times (with multiples other packages) in my attempt to find the faulty package. Everytime it was reinstalled, the Svelte language server crashed. But when I finally found it was the fault of this single package So now I have the exact same configuration than before ( |
Beta Was this translation helpful? Give feedback.
I fixed it. When I uninstalled all my packages and restarted the Svelte language server, my intellisense worked again. I then tried to isolate the faulty package and found out it was the fault of the
colors
package. It somehow crashed the Svelte language server.The weird thing is that I installed/reinstalled it multiples times (with multiples other packages) in my attempt to find the faulty package. Everytime it was reinstalled, the Svelte language server crashed. But when I finally found it was the fault of this single package
colors
, I reinstalled this one package only, and It started working again.So now I have the exact same configuration than before (
colors
package is installed wit…