language-tools
language-tools copied to clipboard
Visual Studio Code - vue.volar extension - JS/TS language service cannot be started successfully
When loading/opening a non-Vue project (e.g. NextJS [React]) with the Visual Studio Code vue.volar
extension installed (v2.0.10+) I get the following error message:
Downgrading vue.volar
to v2.0.6 or disabling the extension altogether fixes this issue. Loading a Vue project (e.g. Nuxt) does not experience this issue.
Same here suing Vue - Official v2.0.10:
Still an issue in v2.0.14
This problem is really effecting DX... no type completion and refactoring of types is really bad. Productivity down 80%.
- Operating System: Windows_NT
- Node Version: v18.15.0
- Nuxt Version: 3.7.1
- CLI Version: 3.9.1
- Nitro Version: 2.7.0
- Package Manager: [email protected]
- Builder: -
- User Config: ssr, css, modules, ionic, vite, nitro
- Runtime Modules: @nuxtjs/[email protected], [email protected]
- Build Modules: -
Could you share the tsserver log?
Refs: https://github.com/microsoft/TypeScript/wiki/Getting-logs-from-TS-Server-in-VS-Code
OK I think I fixed it for now... though I do not know the reason.
I tried older versions of volar e.g. v2.0.6, but the problem still persisted.
Using now [email protected]
, I cloned my project into another folder and started fresh. Now everything is working as expected. Type completion and refactoring now work fine.
I manged to pull a few entries out of the logs as requested.. not sure that helps, but does look fishy somehow:
Info 480 [11:41:25.224] DirectoryWatcher:: Added:: WatchInfo: c:/Users/SuperUser/Code/fab-app/package.json 1 undefined Project: c:/Users/SuperUser/Code/fab-app/tsconfig.json WatchType: Failed Lookup Locations
Info 481 [11:41:25.224] watchDirectory for c:/Users/SuperUser/Code/fab-app/package.json uses cached drive information.
Info 482 [11:41:25.224] Elapsed:: 0.14120000042021275ms DirectoryWatcher:: Added:: WatchInfo: c:/Users/SuperUser/Code/fab-app/package.json 1 undefined Project: c:/Users/SuperUser/Code/fab-app/tsconfig.json WatchType: Failed Lookup Locations
Info 483 [11:41:25.225] FileWatcher:: Added:: WatchInfo: c:/Users/SuperUser/Code/fab-app/package.json 500 undefined WatchType: Closed Script info
Info 484 [11:41:25.247] FileWatcher:: Added:: WatchInfo: C:\Users\SuperUser\Code\fab-app\node_modules\.pnpm\[email protected]\node_modules\aws-iot-device-sdk-v2\package.json 2000 undefined Project: c:/Users/SuperUser/Code/fab-app/tsconfig.json WatchType: File location affecting resolution
Closing this one as many things have changed in the latest 2.x versions. Feel free to create a new issue with a minimal reproduction if you're still having issues, thanks!