zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.07k stars 3.07k forks source link

Vue-language-server is not working #9388

Closed klyuk88 closed 6 months ago

klyuk88 commented 8 months ago

Check for existing issues

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 commented 8 months ago

node js v20.11.0

mstiles-grs commented 8 months ago

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 commented 7 months ago

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 commented 7 months ago

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

WalkAlone0325 commented 7 months ago

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

mrnugget commented 7 months ago

https://github.com/zed-industries/zed/pull/9846 has been merged. Try using 0.129.x-preview release, which contains the fix.

Moshyfawn commented 6 months ago

Can anyone confirm that this has been resolved?

fazulk commented 6 months ago

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 commented 6 months ago

fyi- got this working by adding this to my tsconfig

"plugins": [{ "name": "@vue/typescript-plugin" }],
d1y commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago
Снимок экрана 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 commented 6 months ago

@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 commented 6 months ago

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: https://github.com/zed-industries/zed/issues/9329)

joshuaia commented 5 months ago

Fixed for me as well but not in workspace based repos, see https://github.com/zed-industries/zed/issues/12019