-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Vue js Volar plugin fails to find typescript.js #12443
Comments
For anyone looking to investigate this, the path in question seems to be very suspiciously looking like the path we return for |
Hi, it seems like volar is using vscode.env.appRoot here: https://github.com/volarjs/volar.js/blob/cd3695a14a9156e74735fff66451062dc862ef1c/packages/vscode/lib/features/tsVersion.ts#L141C1-L166C3 the error is thrown here: https://github.com/volarjs/volar.js/blob/cd3695a14a9156e74735fff66451062dc862ef1c/packages/language-server/node.ts#L86-L117 here's a workaround (for linux): mkdir ~/node_modules/@theia/plugin-ext/lib/plugin/node/extensions
ln -s ~/node_modules ~/node_modules/@theia/plugin-ext/lib/plugin/node/extensions/ I don't know if this issue must be solved here, or if it's better to open an issue in volar repo BTW, sorry for my spelling, not i don't speak english too much |
@mind-ar Thanks for looking into it! Yeah, seems like the volar extension is using some very specific behavior of vscode that cannot be (easily) replicated by every Theia app. The volar extension seems to rely on the fact that there's always an Note that the value we return for |
Hi @msujew , thanks for the response. I agree that I'll open an issue in volar to see if it can be solved at their side BTW: i love theia!! Thanks! |
@mind-ar I've created a PR over at the Volar repo, see volarjs/volar.js#195. Note that this doesn't really fix the issue (there is no real fix, since Theia just works differently from VS Code), but instead provides a helpful message when no TypeScript distribution can be found. |
The PR volarjs/volar.js#195 has been merged and the associated issue over at the volar repo closed. I'll close this one as well. |
The volar plugin fails to finde the required typescript module to work.
Message: Request initialize failed with message: Can't find typescript.js or tsserverlibrary.js in D:\Tools\theia-blueprint\node_modules\@theia\plugin-ext\lib\plugin\node\extensions\node_modules\typescript\lib
Maybe the plugin search in the wrong path. I find the typescript.js in D:\Tools\theia\node_modules\typescriptt\lib
Any idea how to fix that?
Bug Description:
Additional Information
The text was updated successfully, but these errors were encountered: