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.59k stars 3.14k forks source link

NX Monorepo not resolving dependencies #15183

Open ogmzh opened 4 months ago

ogmzh commented 4 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

I'm using nx and yarn 3 for a microfrontend monorepo react nextjs project, and I'm getting the "ts: Cannot find module 'react' or its corresponding type declarations" error every external dependency, i.e react, react-intl, mui/material, etc.

To note: everything works fine in VSCode, and for Zed, I can open a single react project just fine, the monorepo is giving me issues.

image

Environment

Zed: v0.145.1 (Zed) OS: macOS 14.5.0 Memory: 18 GiB Architecture: aarch64

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

No response

If applicable, attach your Zed.log file to this issue.

zed.looog
2024-07-25T12:25:34.360618Z [INFO] ========== starting zed ==========
2024-07-25T12:25:34.361218Z [INFO] Opening main db
2024-07-25T12:25:34.362993Z [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")
2024-07-25T12:25:34.485225Z [INFO] extensions updated. loading 2, reloading 0, unloading 0
2024-07-25T12:25:34.518251Z [INFO] Opening main db
2024-07-25T12:25:34.550684Z [INFO] set status on client 0: Authenticating
2024-07-25T12:25:34.579581Z [INFO] set status on client 198891: Connecting
2024-07-25T12:25:34.944771Z [INFO] Node runtime install_if_needed
2024-07-25T12:25:34.957937Z [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-07-25T12:25:35.116078Z [INFO] starting language server. binary path: "/Users/ogm/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node", working directory: "/", args: ["/Users/ogm/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-07-25T12:25:35.315304Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-07-25T12:25:35.313Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-07-25T12:25:35.313Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-07-25T12:25:35.316546Z [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "b0361164-dfa0-4c18-8186-00a5d352f774",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-07-25T12:25:35.336114Z [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-07-25T12:25:35.319Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-07-25T12:25:35.319Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-07-25T12:25:35.407119Z [INFO] add connection to peer
2024-07-25T12:25:35.407177Z [INFO] add_connection;
2024-07-25T12:25:35.407222Z [INFO] waiting for server hello
2024-07-25T12:25:35.414676Z [INFO] got server hello
2024-07-25T12:25:35.414735Z [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 454, id: 1652479 })
2024-07-25T12:25:35.414816Z [INFO] set status on client 198891: Connected { peer_id: PeerId { owner_id: 454, id: 1652479 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-07-25T12:25:35.588253Z [INFO] set environment variables from shell:/bin/zsh, path:/usr/local/opt/python@3.9/bin:/Users/ogm/.rd/bin:/Users/ogm/.rbenv/shims:/Users/ogm/.rbenv/shims:/Users/ogm/.rbenv/bin:/Users/ogm/.nvm/versions/node/v22.0.0/bin:/Users/ogm/.nvm/versions/node/v16.20.2/bin:/opt/homebrew/Cellar/openjdk@17/17.0.11/libexec/openjdk.jdk/Contents/Home/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/Users/ogm/.nvm/versions/node/v16.20.2/bin:/usr/local/opt/python@3.9/bin:/Users/ogm/.rd/bin:/Users/ogm/.rbenv/shims:/Users/ogm/.rbenv/bin:/Users/ogm/.nvm/versions/node/v22.0.0/bin:/Users/ogm/.nvm/versions/node/v14.16.0/bin:/opt/homebrew/Cellar/openjdk@17/17.0.11/libexec/openjdk.jdk/Contents/Home/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/Users/ogm/Library/Android/sdk/emulator:/Users/ogm/Library/Android/sdk/platform-tools:/Users/ogm/Library/Android/sdk/emulator:/Users/ogm/Library/Android/sdk/platform-tools
2024-07-25T12:25:39.740056Z [INFO] Opening main db
2024-07-25T12:25:39.801806Z [INFO] Initializing default prettier with plugins {}
2024-07-25T12:25:39.801907Z [INFO] starting language servers for TSX: vtsls, tailwindcss-language-server, eslint
2024-07-25T12:25:39.801955Z [INFO] starting language server "vtsls", path: "/Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1", id: 1
2024-07-25T12:25:39.802022Z [INFO] starting language server "tailwindcss-language-server", path: "/Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1", id: 2
2024-07-25T12:25:39.802079Z [INFO] starting language server "eslint", path: "/Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1", id: 3
2024-07-25T12:25:39.802146Z [ERROR] Failed to parse workspaces for "/Users/ogm/Projects/myproject/frontend-monorepo" from package.json, got Object {"packages": Array [String("packages/**")]}. Skipping.
2024-07-25T12:25:39.802242Z [INFO] Initializing default prettier with plugins {}
2024-07-25T12:25:39.802304Z [INFO] starting language servers for TSX: vtsls, tailwindcss-language-server, eslint
2024-07-25T12:25:39.802464Z [ERROR] Failed to parse workspaces for "/Users/ogm/Projects/myproject/frontend-monorepo" from package.json, got Object {"packages": Array [String("packages/**")]}. Skipping.
2024-07-25T12:25:39.802755Z [INFO] fetching latest version of language server "vtsls"
2024-07-25T12:25:39.802805Z [INFO] Node runtime install_if_needed
2024-07-25T12:25:39.803125Z [INFO] fetching latest version of language server "tailwindcss-language-server"
2024-07-25T12:25:39.803177Z [INFO] fetching latest version of language server "eslint"
2024-07-25T12:25:39.803227Z [INFO] downloading language server "eslint"
2024-07-25T12:25:39.960862Z [INFO] Node runtime install_if_needed
2024-07-25T12:25:40.136267Z [INFO] Node runtime install_if_needed
2024-07-25T12:25:40.311864Z [INFO] starting language server. binary path: "/Users/ogm/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node", working directory: "/Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1", args: ["/Users/ogm/Library/Application Support/Zed/languages/eslint/vscode-eslint-release/2.4.4/vscode-eslint/server/out/eslintServer.js", "--stdio"]
2024-07-25T12:25:40.373139Z [INFO] Language server with id 3 sent unhandled notification window/logMessage:
{
  "type": 3,
  "message": "ESLint server running in node v18.15.0"
}
2024-07-25T12:25:40.374635Z [WARN] unhandled capability registration: Registration { id: "704442e0-1408-4c10-8747-0675c75fa438", method: "workspace/didChangeConfiguration", register_options: Some(Object {}) }
2024-07-25T12:25:40.374741Z [WARN] unhandled capability registration: Registration { id: "5353ba3b-5f51-4753-8396-54f82ad98707", method: "workspace/didChangeWorkspaceFolders", register_options: Some(Object {}) }
2024-07-25T12:25:40.400227Z [INFO] Language server with id 3 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1/src/pages/_app.tsx"
  }
}
2024-07-25T12:25:40.440869Z [INFO] Node runtime install_if_needed
2024-07-25T12:25:40.558763Z [INFO] downloading language server "tailwindcss-language-server"
2024-07-25T12:25:40.600138Z [INFO] Node runtime install_if_needed
2024-07-25T12:25:40.773199Z [INFO] starting language server. binary path: "/Users/ogm/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node", working directory: "/Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1", args: ["/Users/ogm/Library/Application Support/Zed/languages/tailwindcss-language-server/node_modules/.bin/tailwindcss-language-server", "--stdio"]
2024-07-25T12:25:40.869606Z [INFO] Language server with id 2 sent unhandled notification window/logMessage:
{
  "type": 4,
  "message": "Setting up server…"
}
2024-07-25T12:25:40.869699Z [INFO] Language server with id 2 sent unhandled notification window/logMessage:
{
  "type": 4,
  "message": "Listening for messages…"
}
2024-07-25T12:25:40.892828Z [WARN] unhandled capability registration: Registration { id: "a126d184-165d-4e7a-b6d7-9e9c956db7c8", method: "workspace/didChangeWorkspaceFolders", register_options: Some(Object {}) }
2024-07-25T12:25:41.038088Z [INFO] downloading language server "vtsls"
2024-07-25T12:25:41.03858Z [INFO] Node runtime install_if_needed
2024-07-25T12:25:41.193465Z [INFO] starting language server. binary path: "/Users/ogm/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node", working directory: "/Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1", args: ["/Users/ogm/Library/Application Support/Zed/languages/vtsls/node_modules/@vtsls/language-server/bin/vtsls.js", "--stdio"]
2024-07-25T12:25:45.452985Z [INFO] Opening main db
2024-07-25T12:26:13.040032Z [INFO] Initializing default prettier with plugins {}
2024-07-25T12:26:13.040438Z [INFO] starting language servers for TSX: vtsls, tailwindcss-language-server, eslint
2024-07-25T12:26:13.04057Z [ERROR] Failed to parse workspaces for "/Users/ogm/Projects/myproject/frontend-monorepo" from package.json, got Object {"packages": Array [String("packages/**")]}. Skipping.
2024-07-25T12:26:13.071238Z [INFO] Language server with id 3 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1/src/pages/_app.tsx"
  }
}
2024-07-25T12:26:48.681942Z [INFO] open paths ["/Users/ogm/.config/zed/settings.json"]
2024-07-25T12:26:48.687115Z [INFO] Initializing default prettier with plugins {}
2024-07-25T12:26:48.687196Z [INFO] starting language servers for TSX: vtsls, tailwindcss-language-server, eslint
2024-07-25T12:26:48.687449Z [ERROR] Failed to parse workspaces for "/Users/ogm/Projects/myproject/frontend-monorepo" from package.json, got Object {"packages": Array [String("packages/**")]}. Skipping.
2024-07-25T12:26:48.690766Z [INFO] Initializing default prettier with plugins {}
2024-07-25T12:26:48.690835Z [INFO] starting language servers for JSONC: json-language-server
2024-07-25T12:26:48.690881Z [INFO] starting language server "json-language-server", path: "/Users/ogm/.config/zed/settings.json", id: 4
2024-07-25T12:26:48.691007Z [INFO] Initializing default prettier with plugins {}
2024-07-25T12:26:48.691055Z [INFO] Initializing default prettier with plugins {}
2024-07-25T12:26:48.6911Z [INFO] starting language servers for TSX: vtsls, tailwindcss-language-server, eslint
2024-07-25T12:26:48.691146Z [INFO] starting language servers for JSONC: json-language-server
2024-07-25T12:26:48.691197Z [ERROR] Failed to parse workspaces for "/Users/ogm/Projects/myproject/frontend-monorepo" from package.json, got Object {"packages": Array [String("packages/**")]}. Skipping.
2024-07-25T12:26:48.691523Z [INFO] fetching latest version of language server "json-language-server"
2024-07-25T12:26:48.691574Z [INFO] Node runtime install_if_needed
2024-07-25T12:26:48.844716Z [INFO] Language server with id 3 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1/src/pages/_app.tsx"
  }
}
2024-07-25T12:26:48.847599Z [INFO] Language server with id 3 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1/src/pages/_app.tsx"
  }
}
2024-07-25T12:26:49.280102Z [INFO] downloading language server "json-language-server"
2024-07-25T12:26:49.280551Z [INFO] Node runtime install_if_needed
2024-07-25T12:26:49.437177Z [INFO] starting language server. binary path: "/Users/ogm/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node", working directory: "/Users/ogm/.config/zed", args: ["/Users/ogm/Library/Application Support/Zed/languages/json-language-server/node_modules/vscode-langservers-extracted/bin/vscode-json-language-server", "--stdio"]
2024-07-25T12:27:19.346804Z [INFO] Waiting for default prettier to install
2024-07-25T12:27:19.347113Z [INFO] Starting prettier at path "/Users/ogm/Library/Application Support/Zed/prettier"
2024-07-25T12:27:19.347387Z [INFO] Node runtime install_if_needed
2024-07-25T12:27:19.514604Z [INFO] starting language server. binary path: "/Users/ogm/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node", working directory: "/Users/ogm/Library/Application Support/Zed/prettier", args: ["/Users/ogm/Library/Application Support/Zed/prettier/prettier_server.js", "/Users/ogm/Library/Application Support/Zed/prettier"]
2024-07-25T12:27:19.561733Z [INFO] Started default prettier in "/Users/ogm/Library/Application Support/Zed/prettier"
2024-07-25T12:27:20.02635Z [INFO] starting language servers for TSX: vtsls, tailwindcss-language-server, eslint
2024-07-25T12:27:20.026648Z [INFO] starting language servers for JSONC: json-language-server
2024-07-25T12:27:20.064804Z [INFO] Language server with id 3 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1/src/pages/_app.tsx"
  }
}
2024-07-25T12:27:25.158118Z [INFO] starting language servers for TSX: vtsls, tailwindcss-language-server, eslint
2024-07-25T12:27:25.184406Z [INFO] Language server with id 3 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1/src/pages/_app.tsx"
  }
}
2024-07-25T12:30:27.838182Z [INFO] starting language servers for TSX: vtsls, tailwindcss-language-server, eslint
2024-07-25T12:30:27.838494Z [INFO] starting language servers for JSONC: json-language-server
2024-07-25T12:30:27.846828Z [INFO] starting language servers for TSX: vtsls, tailwindcss-language-server, eslint
2024-07-25T12:30:27.868588Z [INFO] Language server with id 3 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1/src/pages/_app.tsx"
  }
}
2024-07-25T12:30:27.87116Z [INFO] Language server with id 3 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1/src/utils/styledTheme.tsx"
  }
}
2024-07-25T12:34:59.943981Z [INFO] starting language servers for TSX: vtsls, tailwindcss-language-server, eslint
2024-07-25T12:34:59.945051Z [INFO] starting language servers for JSONC: json-language-server
2024-07-25T12:34:59.985627Z [INFO] Language server with id 3 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1/src/pages/_app.tsx"
  }
}
2024-07-25T12:39:07.381318Z [INFO] building git repository, `.git` path in the worktree: ".git"
2024-07-25T12:39:07.392544Z [INFO] starting language servers for TSX: vtsls, tailwindcss-language-server, eslint
2024-07-25T12:39:07.392763Z [INFO] starting language servers for JSONC: json-language-server
2024-07-25T12:39:07.424914Z [INFO] Initializing default prettier with plugins {}
2024-07-25T12:39:07.424983Z [INFO] starting language servers for TSX: vtsls, tailwindcss-language-server, eslint
2024-07-25T12:39:07.425032Z [INFO] starting language server "vtsls", path: "/Users/ogm/Projects/myproject/frontend-monorepo", id: 6
2024-07-25T12:39:07.425093Z [INFO] starting language server "tailwindcss-language-server", path: "/Users/ogm/Projects/myproject/frontend-monorepo", id: 7
2024-07-25T12:39:07.425157Z [INFO] starting language server "eslint", path: "/Users/ogm/Projects/myproject/frontend-monorepo", id: 8
2024-07-25T12:39:07.426242Z [INFO] Initializing default prettier with plugins {}
2024-07-25T12:39:07.426303Z [INFO] starting language servers for Markdown: 
2024-07-25T12:39:07.426394Z [INFO] starting language server. binary path: "/Users/ogm/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node", working directory: "/Users/ogm/Projects/myproject/frontend-monorepo", args: ["/Users/ogm/Library/Application Support/Zed/languages/vtsls/node_modules/@vtsls/language-server/bin/vtsls.js", "--stdio"]
2024-07-25T12:39:07.426878Z [INFO] starting language server. binary path: "/Users/ogm/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node", working directory: "/Users/ogm/Projects/myproject/frontend-monorepo", args: ["/Users/ogm/Library/Application Support/Zed/languages/tailwindcss-language-server/node_modules/.bin/tailwindcss-language-server", "--stdio"]
2024-07-25T12:39:07.427166Z [INFO] starting language server. binary path: "/Users/ogm/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node", working directory: "/Users/ogm/Projects/myproject/frontend-monorepo", args: ["/Users/ogm/Library/Application Support/Zed/languages/eslint/vscode-eslint-release/2.4.4/vscode-eslint/server/out/eslintServer.js", "--stdio"]
2024-07-25T12:39:07.428105Z [ERROR] Deserializer does not exist for item kind: diagnostics
2024-07-25T12:39:07.428168Z [ERROR] No worktree for path: "/Users/ogm/.config/zed/settings.json"
2024-07-25T12:39:07.44113Z [INFO] starting language servers for TSX: vtsls, tailwindcss-language-server, eslint
2024-07-25T12:39:07.441205Z [INFO] starting language servers for JSONC: json-language-server
2024-07-25T12:39:07.441465Z [INFO] Initializing default prettier with plugins {}
2024-07-25T12:39:07.441522Z [INFO] starting language servers for TSX: vtsls, tailwindcss-language-server, eslint
2024-07-25T12:39:07.44157Z [INFO] starting language servers for Markdown: 
2024-07-25T12:39:07.470658Z [INFO] Language server with id 3 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1/src/pages/_app.tsx"
  }
}
2024-07-25T12:39:07.494511Z [INFO] starting language servers for TSX: vtsls, tailwindcss-language-server, eslint
2024-07-25T12:39:07.494583Z [INFO] starting language servers for JSONC: json-language-server
2024-07-25T12:39:07.494783Z [INFO] Initializing default prettier with plugins {}
2024-07-25T12:39:07.49484Z [INFO] starting language servers for TSX: vtsls, tailwindcss-language-server, eslint
2024-07-25T12:39:07.494888Z [INFO] starting language servers for Markdown: 
2024-07-25T12:39:07.499356Z [INFO] Language server with id 3 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1/src/pages/_app.tsx"
  }
}
2024-07-25T12:39:07.536421Z [INFO] Language server with id 8 sent unhandled notification window/logMessage:
{
  "type": 3,
  "message": "ESLint server running in node v18.15.0"
}
2024-07-25T12:39:07.537039Z [INFO] Language server with id 3 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1/src/pages/_app.tsx"
  }
}
2024-07-25T12:39:07.538723Z [WARN] unhandled capability registration: Registration { id: "2cda0e32-5ec6-4b6a-84b4-41dc767e6b36", method: "workspace/didChangeConfiguration", register_options: Some(Object {}) }
2024-07-25T12:39:07.538875Z [WARN] unhandled capability registration: Registration { id: "96694c64-8a12-4bd6-8f7f-04666e08b66f", method: "workspace/didChangeWorkspaceFolders", register_options: Some(Object {}) }
2024-07-25T12:39:07.570117Z [INFO] Language server with id 8 sent unhandled notification eslint/noLibrary:
{
  "source": {
    "uri": "file:///Users/ogm/Projects/myproject/frontend-monorepo/packages/mfe/a1/src/components/LandingPageContent/Hero/index.tsx"
  }
}
2024-07-25T12:39:07.583402Z [INFO] Language server with id 7 sent unhandled notification window/logMessage:
{
  "type": 4,
  "message": "Setting up server…"
}
2024-07-25T12:39:07.583488Z [INFO] Language server with id 7 sent unhandled notification window/logMessage:
{
  "type": 4,
  "message": "Listening for messages…"
}
2024-07-25T12:39:08.021842Z [WARN] unhandled capability registration: Registration { id: "cb47363d-aff9-4661-8fab-168fe4186888", method: "workspace/didChangeWorkspaceFolders", register_options: Some(Object {}) }
2024-07-25T12:39:10.87671Z [INFO] Initializing default prettier with plugins {}
2024-07-25T12:39:10.876791Z [INFO] starting language servers for JSON: json-language-server, package-version-server
2024-07-25T12:39:10.876836Z [INFO] starting language server "json-language-server", path: "/Users/ogm/Projects/myproject/frontend-monorepo", id: 9
2024-07-25T12:39:10.876904Z [INFO] starting language server "package-version-server", path: "/Users/ogm/Projects/myproject/frontend-monorepo", id: 10
2024-07-25T12:39:10.877008Z [INFO] fetching latest version of language server "json-language-server"
2024-07-25T12:39:10.877058Z [INFO] Node runtime install_if_needed
2024-07-25T12:39:11.014335Z [INFO] fetching latest version of language server "package-version-server"
2024-07-25T12:39:11.358748Z [INFO] downloading language server "package-version-server"
2024-07-25T12:39:11.35888Z [INFO] starting language server. binary path: "/Users/ogm/Library/Application Support/Zed/languages/package-version-server/package-version-server-v0.0.4", working directory: "/Users/ogm/Projects/myproject/frontend-monorepo", args: []
2024-07-25T12:39:11.501331Z [INFO] downloading language server "json-language-server"
2024-07-25T12:39:11.501942Z [INFO] Node runtime install_if_needed
2024-07-25T12:39:11.658752Z [INFO] starting language server. binary path: "/Users/ogm/Library/Application Support/Zed/node/node-v18.15.0-darwin-arm64/bin/node", working directory: "/Users/ogm/Projects/myproject/frontend-monorepo", args: ["/Users/ogm/Library/Application Support/Zed/languages/json-language-server/node_modules/vscode-langservers-extracted/bin/vscode-json-language-server", "--stdio"]
2024-07-25T12:39:20.275513Z [INFO] Initializing default prettier with plugins {}
2024-07-25T12:39:20.275595Z [INFO] starting language servers for JSON: json-language-server, package-version-server
notpeter commented 4 months ago

Can you try and provide a minimal reproduction repo or an open source project that triggers this?

ovidius72 commented 4 months ago

I've been working with an NX monorepo and I've had this problem a couple of time. It got resolved just by closing and reopen zed

bhardy commented 3 months ago

I can't provide an example right now but I am having the same issue with a turbo repo. it isn't happening with every package though!

image

ogmzh commented 3 months ago

meanwhile my team has moved from yarn 3 to pnpm and things are working fine now