-
Notifications
You must be signed in to change notification settings - Fork 3k
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 project LSP not work #10871
Comments
It happened to me two days ago with Nuxt. I fixed it by installing typescript as a dev dependency of the project. |
Same for me, it happened after extracting vue from Zed and moving it to separate package. |
Please provide your project structure and behavioral. It may not be the same problem I encountered. FYI: If you have a monorepo project, you can try it #9388 (comment) |
This fixed my issue! However, on VSCode I didn't need to install typescript. It would be awesome if there was a notification for it or even better, without installing typescript package. |
Strangely enough, I now find that it has not taken effect again(this happened after I completely uninstalled zed) Steps
bun create vite my-vue-app --template vue
cd my-vue-app
bun i
Screen.Recording.2024-05-10.at.09.15.15.movZed
===================== But I found out that the official version works @mrnugget |
Freshly installed on fedora 40 here, and Vue Language Server wont install/start: Caused by:
expected value at line 1 column 1
[2024-05-10T09:57:38+02:00 ERROR project] failed to start language server "vue-language-server": Request initialize failed with message: Can't find typescript.js or tsserverlibrary.js in node_modules/typescript/lib
[2024-05-10T09:57:38+02:00 ERROR project] server stderr: Some("")
[2024-05-10T09:57:38+02:00 ERROR util] crates/lsp/src/lsp.rs:768: oneshot canceled
[2024-05-10T09:57:39+02:00 ERROR util] crates/language/src/language_registry.rs:885: server container removal When I run Zed, it does not install the vue-language-server at all to the languages folder. Typescript, tailwind and ESlint are all installed tho. |
I reconfirmed that in fact the official version of zed can work Zed
Zed Preview
Screen.Recording.2024-05-13.at.02.19.57.mov |
Can repro in Zed v0.135.2 (preview) on Arch Linux x86_64 |
Just a note:I know @mrnugget has fixed this issue
[language_servers.vue-language-server]
# Add one line it work
language_ids = { "Vue.js" = "vue" } |
It has just been updated: #11747 |
This fixes zed-industries#10871. The introduction of zed-industries#11412 broke Vue.js language support, since it made Zed rely more heavily on correct language name -> language ID mappings, which the Vue.js extension didn't have. Release Notes: - N/A
I'm on version 0.136.2 and had previously installed Zed. Vue LSP had suddenly stopped working in my Nuxt project, and can confirm that installing typescript as a dep solved this problem 🙌🏼 |
This fixes zed-industries/zed#10871. The introduction of zed-industries/zed#11412 broke Vue.js language support, since it made Zed rely more heavily on correct language name -> language ID mappings, which the Vue.js extension didn't have. Release Notes: - N/A
Check for existing issues
Describe the bug / provide steps to reproduce it
/Users/d1y/Library/Application Support/Zed/extensions/work/vue
Environment
Zed: v0.132.2 (Zed Preview)
OS: macOS 14.4.1
Memory: 16 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.No response
The text was updated successfully, but these errors were encountered: