Skip to content
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-language-server is not working #9388

Closed
1 task done
klyuk88 opened this issue Mar 15, 2024 · 15 comments
Closed
1 task done

Vue-language-server is not working #9388

klyuk88 opened this issue Mar 15, 2024 · 15 comments
Labels
defect [core label] language server failure Language server doesn't work as expected language server An umbrella label for all language servers language An umbrella label for all programming languages syntax behaviors vue Vue.js framework support

Comments

@klyuk88
Copy link

klyuk88 commented Mar 15, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

Why is there a log with vue-language-server running, but no autocomplete or hints in the .vue files?

Environment

Mac OS Ventura Apple M2.

If applicable, add mockups / screenshots to help explain present your vision of the feature

Снимок экрана 2024-03-15 в 12 34 44

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

2024-03-15T12:14:54+03:00 [INFO] Language server with id 34 sent unhandled notification eslint/status:
{
"uri": "file:///Users/ba/Documents/%D0%9F%D1%80%D0%BE%D0%B5%D0%BA%D1%82%D1%8B/vue-project/src/main.ts",
"state": 1
}
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [ERROR] crates/project/src/project.rs:5210: Request completionItem/resolve failed with message: Cannot read properties of undefined (reading 'file')
2024-03-15T12:14:54+03:00 [INFO] Language server with id 34 sent unhandled notification eslint/status:
{
"uri": "file:///Users/ba/Documents/%D0%9F%D1%80%D0%BE%D0%B5%D0%BA%D1%82%D1%8B/vue-project/src/main.ts",
"state": 1
}
2024-03-15T12:16:02+03:00 [INFO] starting language server "json-language-server", path: "/Users/ba/Documents/Проекты/vue-project/", id: 36
2024-03-15T12:16:02+03:00 [INFO] starting language server. binary path: "/Users/ba/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node", working directory: "/Users/ba/Documents/Проекты/vue-project/", args: ["/Users/ba/Library/Application Support/Zed/languages/json-language-server/node_modules/vscode-json-languageserver/bin/vscode-json-languageserver", "--stdio"]
2024-03-15T12:19:37+03:00 [ERROR] crates/terminal_view/src/terminal_view.rs:285: error upgrading view
2024-03-15T12:22:06+03:00 [WARN] Generic lsp request to node failed: Unhandled method textDocument/definition
2024-03-15T12:22:06+03:00 [INFO] Language server with id 31 sent unhandled notification workspace/diagnostic/refresh:
null
2024-03-15T12:22:06+03:00 [INFO] Language server with id 34 sent unhandled notification eslint/status:
{
"uri": "file:///Users/ba/Documents/%D0%9F%D1%80%D0%BE%D0%B5%D0%BA%D1%82%D1%8B/vue-project/src/main.ts",
"state": 1
}
2024-03-15T12:22:22+03:00 [ERROR] crates/lsp/src/lsp.rs:720: oneshot canceled
2024-03-15T12:22:22+03:00 [ERROR] crates/lsp/src/lsp.rs:720: oneshot canceled
2024-03-15T12:22:22+03:00 [ERROR] crates/lsp/src/lsp.rs:720: oneshot canceled
2024-03-15T12:22:22+03:00 [ERROR] crates/lsp/src/lsp.rs:720: oneshot canceled
2024-03-15T12:22:22+03:00 [ERROR] crates/lsp/src/lsp.rs:720: oneshot canceled
2024-03-15T12:22:22+03:00 [ERROR] crates/lsp/src/lsp.rs:720: oneshot canceled
2024-03-15T12:22:22+03:00 [ERROR] crates/lsp/src/lsp.rs:720: oneshot canceled
2024-03-15T12:22:22+03:00 [ERROR] crates/lsp/src/lsp.rs:720: oneshot canceled
2024-03-15T12:22:22+03:00 [ERROR] crates/gpui/src/window.rs:434: window not found
2024-03-15T12:22:22+03:00 [ERROR] crates/lsp/src/lsp.rs:720: oneshot canceled
2024-03-15T12:22:22+03:00 [ERROR] crates/lsp/src/lsp.rs:720: oneshot canceled
2024-03-15T12:22:22+03:00 [ERROR] crates/terminal_view/src/terminal_view.rs:285: error upgrading view
2024-03-15T12:22:22+03:00 [ERROR] crates/terminal_view/src/terminal_view.rs:285: error upgrading view
2024-03-15T12:23:50+03:00 [INFO] Initializing default prettier with plugins {}
2024-03-15T12:23:50+03:00 [INFO] starting language server "vue-language-server", path: "/Users/ba/Documents/Проекты/vite-project/", id: 37
2024-03-15T12:23:50+03:00 [WARN] Skipping path "/Users/ba/Documents/Проекты/vite-project" that has no prettier dependency and no workspaces section in its package.json
2024-03-15T12:23:50+03:00 [INFO] starting language server. binary path: "/Users/ba/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node", working directory: "/Users/ba/Documents/Проекты/vite-project/", args: ["/Users/ba/Library/Application Support/Zed/languages/vue-language-server/node_modules/@vue/language-server/bin/vue-language-server.js", "--stdio"]
2024-03-15T12:23:59+03:00 [INFO] Initializing default prettier with plugins {}
2024-03-15T12:23:59+03:00 [INFO] starting language server "typescript-language-server", path: "/Users/ba/Documents/Проекты/vite-project/", id: 38
2024-03-15T12:23:59+03:00 [INFO] starting language server "eslint", path: "/Users/ba/Documents/Проекты/vite-project/", id: 39
2024-03-15T12:23:59+03:00 [WARN] Skipping path "/Users/ba/Documents/Проекты/vite-project" that has no prettier dependency and no workspaces section in its package.json
2024-03-15T12:23:59+03:00 [INFO] starting language server. binary path: "/Users/ba/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node", working directory: "/Users/ba/Documents/Проекты/vite-project/", args: ["/Users/ba/Library/Application Support/Zed/languages/typescript-language-server/node_modules/typescript-language-server/lib/cli.mjs", "--stdio"]
2024-03-15T12:23:59+03:00 [INFO] starting language server. binary path: "/Users/ba/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node", working directory: "/Users/ba/Documents/Проекты/vite-project/", args: ["/Users/ba/Library/Application Support/Zed/languages/eslint/vscode-eslint-release/2.2.20-Insider/vscode-eslint/server/out/eslintServer.js", "--stdio"]
2024-03-15T12:24:00+03:00 [INFO] Language server with id 39 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "ESLint server running in node v18.15.0"
}
2024-03-15T12:24:00+03:00 [INFO] Language server with id 38 sent unhandled notification window/logMessage:
{
"type": 3,
"message": "Using Typescript version (user-setting) 5.4.2 from path "/Users/ba/Documents/Проекты/vite-project/node_modules/typescript/lib/tsserver.js""
}
2024-03-15T12:24:00+03:00 [INFO] Language server with id 38 sent unhandled notification $/typescriptVersion:
{
"version": "5.4.2",
"source": "user-setting"
}
2024-03-15T12:24:00+03:00 [INFO] Language server with id 39 sent unhandled notification eslint/noLibrary:
{
"source": {
"uri": "file:///Users/ba/Documents/%D0%9F%D1%80%D0%BE%D0%B5%D0%BA%D1%82%D1%8B/vite-project/src/main.ts"
}
}

@klyuk88 klyuk88 added admin read Pending admin review defect [core label] triage Maintainer needs to classify the issue labels Mar 15, 2024
@klyuk88
Copy link
Author

klyuk88 commented Mar 15, 2024

node js v20.11.0

@mrnugget mrnugget added the language server An umbrella label for all language servers label Mar 19, 2024
@Moshyfawn Moshyfawn added language An umbrella label for all programming languages syntax behaviors language server failure Language server doesn't work as expected vue Vue.js framework support and removed triage Maintainer needs to classify the issue labels Mar 19, 2024
@mstiles-grs
Copy link

I thought I was the only one! I have a M1 mac with node js v20.11.0 running vue3

I've also tried to add a local LSP with no luck or errors.

@epreglej
Copy link

I thought I was the only one! I have a M1 mac with node js v20.11.0 running vue3

I've also tried to add a local LSP with no luck or errors.

Same here, but running latest node on M1, all other languages work as expected only vue seems to be not giving any autocomplete.

@mariagq777
Copy link

node js v20 and vue is not working. tested in m1 macbook and intel imac 2015 thanks

@JosephTLyons JosephTLyons removed the admin read Pending admin review label Mar 25, 2024
mrnugget added a commit that referenced this issue Mar 27, 2024
After `@vue/language-server` release 2.0, vue lsp doesn't work. I tried
to support 2.0, but since I'm not familiar with `@vue/language-server`
and `zed` I was unsuccessful. To avoid long-term unavailability, I
temporarily fixed the version to 1.8 until we have 2.0 support.

Release Notes:

- Pinned `@vue/language-server` to version `1.8` until Zed supports
`2.x`. ([#9388](#9388) &
[#9329](#9329)).

---------

Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
@WalkAlone0325
Copy link

m1 macbook, node 18.20.0, Zed 0.128.3。Vue-language-server is not working. RPC logs is working

@mrnugget
Copy link
Member

mrnugget commented Apr 2, 2024

#9846 has been merged. Try using 0.129.x-preview release, which contains the fix.

@Moshyfawn Moshyfawn added the needs info / awaiting response Issue that needs more information from the user label Apr 23, 2024
@Moshyfawn
Copy link
Member

Can anyone confirm that this has been resolved?

@fazulk
Copy link

fazulk commented Apr 23, 2024

Still having this issue with 0.131.7 vue language server looks like this

  "dependencies": {
    "@vue/language-server": "1.8.27",
    "typescript": "5.4.5"
  }

TS is working inside the .vue files, but i'm getting a error on any TS trying to import a .vue file.
image

@fazulk
Copy link

fazulk commented Apr 24, 2024

fyi- got this working by adding this to my tsconfig

"plugins": [{ "name": "@vue/typescript-plugin" }],

@d1y
Copy link
Contributor

d1y commented Apr 25, 2024

Update(carry another #10871):

I use monorepo not work:

❯ tree -L 2
├── backend
├── frontend
│  ├── admin # vue project
│  ├── client # vue project
│  ├── types # vue project

Workaround:

As @olrtg mentioned, typescript dependencies need to be installed manually

cd $root
npm init -y
npm i --save-dev typescript

@mrnugget
Copy link
Member

Can someone summarize what the exact state of the problem is? Or give steps to reproduce it reliably?

As far as I can tell, we pinned the Vue language server version to the last-known-working version: 1.8.x. Then, again: as far as I know, some Vue updates came out and things started to break. Is that correct? If so, what can we, as an editor, do here? Upgrade to newer vue language server? Or detect a different version and use different settings?

@klyuk88
Copy link
Author

klyuk88 commented Apr 25, 2024

Снимок экрана 2024-04-25 в 15 42 05 In the current version of Zed, Vue support is included in the extension. After installing the extension, everything works out of the box.

@olrtg
Copy link
Contributor

olrtg commented Apr 25, 2024

@mrnugget for this particular case OP seems to have fixed the problem by reinstalling the extension. But there are other cases (in nuxt projects for example) where typescript is not a dev dependency (and it shouldn't be) so the vue language server doesn't know where to look for the file to start the typescript server. I have a feeling that other editors are solving this by shipping their own version of typescript along with the language server. But that's only a theory.

There's also another problem why you guys decided to pin the vue version, but I couldn't understand the problem.

So those are the main problems with vue/zed integration. Just a quick summary.
Keep up the great work. Big fan of yours!

@mrnugget
Copy link
Member

Thanks @klyuk88 and @olrtg! Seems like we can close this issue then and create new, more specific issues for more test cases.

(As for pinning: we pinned because the 2.x broke the support for a lot of users and until we figure out what exactly we need to do to fix it, we pin to last-known-working version. See: #9329)

@d1y d1y mentioned this issue May 2, 2024
1 task
@d1y d1y mentioned this issue May 28, 2024
1 task
@joshuaia
Copy link

Fixed for me as well but not in workspace based repos, see #12019

@notpeter notpeter removed the needs info / awaiting response Issue that needs more information from the user label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect [core label] language server failure Language server doesn't work as expected language server An umbrella label for all language servers language An umbrella label for all programming languages syntax behaviors vue Vue.js framework support
Projects
None yet
Development

No branches or pull requests