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
48.57k stars 2.9k forks source link

RPC request OpenBufferByPath failed: no such connection: 553/334974. Please try again. #19178

Open smellord opened 5 days ago

smellord commented 5 days ago

Check for existing issues

Describe the bug / provide steps to reproduce it

It used to work perfectly until 3-4 updates go, can't quite tell. This error shows up when I'm trying to access to a file via SSH on a remote server *edit Deleting the ssh connection and recreating it solves the problem but it reappears after a while, like after disconnecting from wifi or interrupting briefly the connection.

Environment

Hardware:

Hardware Overview:

  Model Name: MacBook Pro
  Model Identifier: Mac15,6
  Model Number: MRX33D/A
  Chip: Apple M3 Pro
  Total Number of Cores: 11 (5 performance and 6 efficiency)
  Memory: 18 GB
  System Firmware Version: 11881.1.1
  OS Loader Version: 11881.1.1
  Serial Number (system): J04D94KXL6
  Hardware UUID: 394D1D1A-0DF3-5035-86B6-CCED325644AF
  Provisioning UDID: 00006030-000611640C84001C
  Activation Lock Status: Enabled

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.log

2024-10-14T09:04:15.540207+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:15.558491+02:00 [ERROR] no worktrees when constructing LocalLspAdapterDelegate
2024-10-14T09:04:17.672809+02:00 [ERROR] not connected
2024-10-14T09:04:23.934797+02:00 [INFO] ========== starting zed ==========
2024-10-14T09:04:23.937397+02:00 [INFO] Opening main db
2024-10-14T09:04:23.939887+02:00 [INFO] Opening main db
2024-10-14T09:04:23.958071+02:00 [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")
2024-10-14T09:04:24.061656+02:00 [INFO] set environment variables from shell:/bin/zsh, path:/usr/local/opt/libpq/bin:/opt/homebrew/opt/e2fsprogs/sbin:/opt/homebrew/opt/e2fsprogs/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:/usr/local/opt/libpq/bin:/opt/homebrew/opt/e2fsprogs/sbin:/opt/homebrew/opt/e2fsprogs/bin:/Users/melisgia/.local/bin:/Users/melisgia/.local/bin:/Users/melisgia/.local/bin
2024-10-14T09:04:24.080656+02:00 [INFO] initializing context server client
2024-10-14T09:04:24.081149+02:00 [INFO] Registering built-in prompt template: content_prompt
2024-10-14T09:04:24.08163+02:00 [INFO] Registering built-in prompt template: edit_workflow
2024-10-14T09:04:24.081805+02:00 [INFO] Registering built-in prompt template: project_slash_command
2024-10-14T09:04:24.081918+02:00 [INFO] Registering built-in prompt template: step_resolution
2024-10-14T09:04:24.082192+02:00 [INFO] Registering built-in prompt template: terminal_assistant_prompt
2024-10-14T09:04:24.082365+02:00 [INFO] No prompt template overrides directory found at /Users/melisgia/.config/zed/prompt_overrides. Using built-in prompts.
2024-10-14T09:04:24.083771+02:00 [INFO] extensions updated. loading 6, reloading 0, unloading 0
2024-10-14T09:04:24.11541+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.115502+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.115584+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.115652+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.117287+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.117349+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.117402+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.117458+02:00 [INFO] Opening main db
2024-10-14T09:04:24.117516+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.117581+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.119124+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.148409+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.15088+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.152356+02:00 [INFO] Opening main db
2024-10-14T09:04:24.153062+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.15313+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.166984+02:00 [INFO] set status on client 0: Authenticating
2024-10-14T09:04:24.16949+02:00 [INFO] Initializing default prettier with plugins {}
2024-10-14T09:04:24.171623+02:00 [INFO] Initializing default prettier with plugins {}
2024-10-14T09:04:24.172183+02:00 [INFO] set status on client 155231: Connecting
2024-10-14T09:04:24.172417+02:00 [INFO] Opening main db
2024-10-14T09:04:24.172629+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.172699+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.173317+02:00 [ERROR] no worktrees when constructing LocalLspAdapterDelegate
2024-10-14T09:04:24.177375+02:00 [INFO] Initializing default prettier with plugins {}
2024-10-14T09:04:24.177938+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.246492+02:00 [INFO] Initializing default prettier with plugins {}
2024-10-14T09:04:24.246974+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:24.417981+02:00 [INFO] Initializing default prettier with plugins {}
2024-10-14T09:04:24.418422+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:25.561679+02:00 [INFO] Node runtime install_if_needed
2024-10-14T09:04:25.635442+02:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-10-14T09:04:25.808608+02:00 [INFO] starting language server process. binary path: "/Users/melisgia/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node", working directory: "/", args: ["/Users/melisgia/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-10-14T09:04:25.999282+02:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-10-14T07:04:25.994Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-10-14T07:04:25.994Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-10-14T09:04:25.999384+02:00 [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "269c1bf9-cc3e-461a-a8b6-596d451988bf",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-10-14T09:04:26.0247+02:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-10-14T07:04:26.001Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-10-14T07:04:26.001Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-10-14T09:04:26.199548+02:00 [INFO] add connection to peer
2024-10-14T09:04:26.19979+02:00 [INFO] add_connection;
2024-10-14T09:04:26.199924+02:00 [INFO] waiting for server hello
2024-10-14T09:04:26.245818+02:00 [INFO] got server hello
2024-10-14T09:04:26.246356+02:00 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 576, id: 13972 })
2024-10-14T09:04:26.24669+02:00 [INFO] set status on client 155231: Connected { peer_id: PeerId { owner_id: 576, id: 13972 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-10-14T09:04:41.318509+02:00 [INFO] downloaded update. path:"/var/folders/x4/w4h6qnnd7n561gh319v2hbfh0000gp/T/zed-auto-updatemNxXu0/Zed.dmg"
2024-10-14T09:04:47.697965+02:00 [INFO] Successfully unmounted the disk image
2024-10-14T09:04:48.943265+02:00 [INFO] ========== starting zed ==========
2024-10-14T09:04:48.947113+02:00 [INFO] Opening main db
2024-10-14T09:04:48.949617+02:00 [INFO] Opening main db
2024-10-14T09:04:48.971041+02:00 [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")
2024-10-14T09:04:49.047662+02:00 [INFO] set environment variables from shell:/bin/zsh, path:/usr/local/opt/libpq/bin:/opt/homebrew/opt/e2fsprogs/sbin:/opt/homebrew/opt/e2fsprogs/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:/usr/local/opt/libpq/bin:/opt/homebrew/opt/e2fsprogs/sbin:/opt/homebrew/opt/e2fsprogs/bin:/Users/melisgia/.local/bin:/Users/melisgia/.local/bin:/Users/melisgia/.local/bin
2024-10-14T09:04:49.084518+02:00 [INFO] initializing context server client
2024-10-14T09:04:49.084826+02:00 [INFO] Registering built-in prompt template: content_prompt
2024-10-14T09:04:49.085226+02:00 [INFO] Registering built-in prompt template: edit_workflow
2024-10-14T09:04:49.085367+02:00 [INFO] Registering built-in prompt template: project_slash_command
2024-10-14T09:04:49.085427+02:00 [INFO] Registering built-in prompt template: step_resolution
2024-10-14T09:04:49.085668+02:00 [INFO] Registering built-in prompt template: terminal_assistant_prompt
2024-10-14T09:04:49.085798+02:00 [INFO] No prompt template overrides directory found at /Users/melisgia/.config/zed/prompt_overrides. Using built-in prompts.
2024-10-14T09:04:49.087154+02:00 [INFO] extensions updated. loading 6, reloading 0, unloading 0
2024-10-14T09:04:49.122634+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.122715+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.122793+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.122856+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.124044+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.124114+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.12418+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.124262+02:00 [INFO] Opening main db
2024-10-14T09:04:49.124332+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.124394+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.126008+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.153945+02:00 [INFO] set status on client 0: Authenticating
2024-10-14T09:04:49.154306+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.154391+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.15445+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.154522+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.154698+02:00 [INFO] Opening main db
2024-10-14T09:04:49.16653+02:00 [INFO] set status on client 155231: Connecting
2024-10-14T09:04:49.168603+02:00 [INFO] Initializing default prettier with plugins {}
2024-10-14T09:04:49.170139+02:00 [INFO] Initializing default prettier with plugins {}
2024-10-14T09:04:49.170922+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.172891+02:00 [INFO] Opening main db
2024-10-14T09:04:49.172972+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.173204+02:00 [ERROR] no worktrees when constructing LocalLspAdapterDelegate
2024-10-14T09:04:49.176797+02:00 [INFO] Initializing default prettier with plugins {}
2024-10-14T09:04:49.177922+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.236599+02:00 [INFO] Initializing default prettier with plugins {}
2024-10-14T09:04:49.237836+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.419398+02:00 [INFO] Initializing default prettier with plugins {}
2024-10-14T09:04:49.419959+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:49.472152+02:00 [INFO] Node runtime install_if_needed
2024-10-14T09:04:49.506723+02:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-10-14T09:04:49.561644+02:00 [INFO] starting language server process. binary path: "/Users/melisgia/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node", working directory: "/", args: ["/Users/melisgia/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-10-14T09:04:49.745974+02:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-10-14T07:04:49.743Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-10-14T07:04:49.743Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-10-14T09:04:49.747174+02:00 [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "3281bbbc-058f-4b44-b60b-c3ddc42277e9",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-10-14T09:04:49.766779+02:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-10-14T07:04:49.749Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-10-14T07:04:49.749Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-10-14T09:04:50.087074+02:00 [INFO] add connection to peer
2024-10-14T09:04:50.087593+02:00 [INFO] add_connection;
2024-10-14T09:04:50.088006+02:00 [INFO] waiting for server hello
2024-10-14T09:04:50.122013+02:00 [INFO] got server hello
2024-10-14T09:04:50.122508+02:00 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 576, id: 14069 })
2024-10-14T09:04:50.123272+02:00 [INFO] set status on client 155231: Connected { peer_id: PeerId { owner_id: 576, id: 14069 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-10-14T09:04:54.718194+02:00 [INFO] Initializing default prettier with plugins {}
2024-10-14T09:04:54.7267+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:04:54.876937+02:00 [ERROR] RPC request SynchronizeContexts failed: no such connection: 553/334974
2024-10-14T09:04:58.450214+02:00 [ERROR] RPC request OpenBufferByPath failed: no such connection: 553/334974
2024-10-14T09:05:03.074815+02:00 [ERROR] RPC request OpenBufferByPath failed: no such connection: 553/334974
2024-10-14T09:05:07.040974+02:00 [ERROR] RPC request OpenBufferByPath failed: no such connection: 553/334974
2024-10-14T09:05:44.769467+02:00 [ERROR] RPC request OpenBufferByPath failed: no such connection: 553/334974
2024-10-14T09:05:46.750603+02:00 [ERROR] RPC request OpenBufferByPath failed: no such connection: 553/334974
2024-10-14T09:05:51.377851+02:00 [ERROR] RPC request OpenBufferByPath failed: no such connection: 553/334974
2024-10-14T09:06:05.518908+02:00 [ERROR] couldn't reconnect
2024-10-14T09:06:13.102086+02:00 [ERROR] RPC request OpenBufferByPath failed: no such connection: 553/334974
2024-10-14T09:06:24.701072+02:00 [INFO] ========== starting zed ==========
2024-10-14T09:06:24.702135+02:00 [INFO] Opening main db
2024-10-14T09:06:24.703721+02:00 [INFO] Opening main db
2024-10-14T09:06:24.723392+02:00 [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")
2024-10-14T09:06:24.790586+02:00 [INFO] set environment variables from shell:/bin/zsh, path:/usr/local/opt/libpq/bin:/opt/homebrew/opt/e2fsprogs/sbin:/opt/homebrew/opt/e2fsprogs/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/melisgia/.local/bin:/Users/melisgia/.local/bin
2024-10-14T09:06:24.829811+02:00 [INFO] initializing context server client
2024-10-14T09:06:24.829906+02:00 [INFO] Registering built-in prompt template: content_prompt
2024-10-14T09:06:24.830177+02:00 [INFO] Registering built-in prompt template: edit_workflow
2024-10-14T09:06:24.830322+02:00 [INFO] Registering built-in prompt template: project_slash_command
2024-10-14T09:06:24.830378+02:00 [INFO] Registering built-in prompt template: step_resolution
2024-10-14T09:06:24.830617+02:00 [INFO] Registering built-in prompt template: terminal_assistant_prompt
2024-10-14T09:06:24.830734+02:00 [INFO] No prompt template overrides directory found at /Users/melisgia/.config/zed/prompt_overrides. Using built-in prompts.
2024-10-14T09:06:24.831176+02:00 [INFO] extensions updated. loading 6, reloading 0, unloading 0
2024-10-14T09:06:24.865995+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:24.86609+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:24.866157+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:24.86622+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:24.86722+02:00 [INFO] Opening main db
2024-10-14T09:06:24.86731+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:24.867376+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:24.867441+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:24.867493+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:24.867546+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:24.868494+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:24.89281+02:00 [INFO] Opening main db
2024-10-14T09:06:24.893001+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:24.893063+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:24.893115+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:24.893171+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:24.904178+02:00 [INFO] Initializing default prettier with plugins {}
2024-10-14T09:06:24.904458+02:00 [INFO] set status on client 0: Authenticating
2024-10-14T09:06:24.90452+02:00 [INFO] Opening main db
2024-10-14T09:06:24.904768+02:00 [ERROR] no worktrees when constructing LocalLspAdapterDelegate
2024-10-14T09:06:24.904859+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:24.907345+02:00 [INFO] Initializing default prettier with plugins {}
2024-10-14T09:06:24.909509+02:00 [INFO] set status on client 155231: Connecting
2024-10-14T09:06:24.909897+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:24.916747+02:00 [INFO] Initializing default prettier with plugins {}
2024-10-14T09:06:24.917216+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:24.979188+02:00 [INFO] Initializing default prettier with plugins {}
2024-10-14T09:06:24.979637+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:25.161045+02:00 [INFO] Initializing default prettier with plugins {}
2024-10-14T09:06:25.161579+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:25.252673+02:00 [INFO] Node runtime install_if_needed
2024-10-14T09:06:25.271453+02:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-10-14T09:06:25.347281+02:00 [INFO] starting language server process. binary path: "/Users/melisgia/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node", working directory: "/", args: ["/Users/melisgia/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-10-14T09:06:25.526498+02:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-10-14T07:06:25.524Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-10-14T07:06:25.524Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-10-14T09:06:25.527527+02:00 [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "b644dae0-36a9-4146-90fe-b64d356fc64c",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-10-14T09:06:25.530491+02:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-10-14T07:06:25.530Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-10-14T07:06:25.530Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-10-14T09:06:25.857689+02:00 [INFO] add connection to peer
2024-10-14T09:06:25.858029+02:00 [INFO] add_connection;
2024-10-14T09:06:25.858239+02:00 [INFO] waiting for server hello
2024-10-14T09:06:25.907474+02:00 [INFO] got server hello
2024-10-14T09:06:25.908092+02:00 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 576, id: 14508 })
2024-10-14T09:06:25.908827+02:00 [INFO] set status on client 155231: Connected { peer_id: PeerId { owner_id: 576, id: 14508 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-10-14T09:06:27.611407+02:00 [INFO] Initializing default prettier with plugins {}
2024-10-14T09:06:27.616282+02:00 [WARN] request completed with error: failed to connect to the server
2024-10-14T09:06:27.768665+02:00 [ERROR] RPC request SynchronizeContexts failed: no such connection: 553/334974
2024-10-14T09:06:31.23317+02:00 [ERROR] RPC request OpenBufferByPath failed: no such connection: 553/334974
igamidanes commented 5 days ago

Yes, same issue

diwakergupta commented 4 days ago

Is there a known workaround? Remote projects has become effectively unusable for me in recent days. This problem happens multiple times a week, sometimes even within a day. Sometimes I'm able to make it work with some combination of zed restart, remote server reconnection, delete remote server and re-add it. There must be a better way!

smellord commented 3 days ago

ssh-error Just to clarify, the issue is happening somewhere between the ssh connection and the zed client, as the ssh in the console per-se is actually fully working, even if zed marks the connection as offline and fails to open any file. Refreshing the connection via the refresh button is also not working.

notpeter commented 3 days ago

Good morning,

There are significant changes underway to how we handle remote development, ssh reconnections, reaping server daemons, etc. Much of this work is already main and we expect to cut a Preview branch containing these updates later this week. You can track the status of that work here: