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.08k stars 3.07k forks source link

Project Panel empty in remote sessions #17900

Closed derekparker closed 1 week ago

derekparker commented 2 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

The project panel containing files and directories is empty when opening a remote project.

Environment

Zed: v0.152.3 (Zed) OS: macOS 14.6.1 Memory: 16 GiB Architecture: aarch64

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

Screenshot 2024-09-16 at 11 06 45 AM

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

Zed.log

==== Linux (remote) logs ====
2024-09-16T11:02:22.69529531-07:00 [INFO] ========== starting zed ==========
2024-09-16T11:02:22.711739959-07:00 [WARN] Failed to load a font face 0 from '/home/deparker/.local/share/fonts/Sauce Code Pro Nerd Font Complete.ttf' cause malformed font.
2024-09-16T11:02:22.844440906-07:00 [WARN] Failed to load a font face 0 from '/home/deparker/.local/share/fonts/Sauce Code Pro Nerd Font Complete.ttf' cause malformed font.
2024-09-16T11:02:22.854691174-07:00 [INFO] Opening main db
2024-09-16T11:02:22.85658982-07:00 [INFO] Using git binary path: None
2024-09-16T11:02:22.886199275-07:00 [INFO] initializing context server client
2024-09-16T11:02:22.886291729-07:00 [INFO] Registering built-in prompt template: content_prompt
2024-09-16T11:02:22.886566052-07:00 [INFO] Registering built-in prompt template: edit_workflow
2024-09-16T11:02:22.88678879-07:00 [INFO] Registering built-in prompt template: step_resolution
2024-09-16T11:02:22.887187376-07:00 [INFO] Registering built-in prompt template: terminal_assistant_prompt
2024-09-16T11:02:22.887373184-07:00 [INFO] No prompt template overrides directory found at /home/deparker/.local/share/zed/prompt_overrides. Using built-in prompts.
2024-09-16T11:02:22.887870916-07:00 [INFO] extensions updated. loading 1, reloading 0, unloading 0
2024-09-16T11:02:22.889553758-07:00 [INFO] set status on client 0: Authenticating
2024-09-16T11:02:22.889587892-07:00 [INFO] set status on client 0: Connecting
2024-09-16T11:02:22.890042373-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:22.890131721-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:22.890192464-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:22.890252186-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:22.890448835-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:22.991557932-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:23.021641456-07:00 [INFO] set environment variables from shell:/usr/bin/zsh, path:/home/deparker/.rbenv/shims:/home/deparker/Code/Rider/Rider for Unreal Engine-2021.3.1/bin:/home/deparker/Data/.npm-packages/bin:/home/deparker/Code/goroot/bin:/home/deparker/go/bin:/home/deparker/Data/Downloads/goland/bin:.git/safe/../../bin:/usr/local/bin:/home/deparker/.cargo/bin:/bin:/usr/bin:/usr/ucb:/usr/local/sbin
2024-09-16T11:02:23.097314184-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:23.132010106-07:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-09-16T11:02:23.186595941-07:00 [INFO] Node runtime install_if_needed
2024-09-16T11:02:23.223289264-07:00 [INFO] installing extension html 0.1.2
2024-09-16T11:02:23.2696911-07:00 [INFO] starting language server. binary path: "/home/deparker/.local/share/zed/node/node-v22.5.1-linux-x64/bin/node", working directory: "/", args: ["/home/deparker/.local/share/zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-09-16T11:02:23.428795708-07:00 [INFO] add connection to peer
2024-09-16T11:02:23.428861692-07:00 [INFO] add_connection;
2024-09-16T11:02:23.428923017-07:00 [INFO] waiting for server hello
2024-09-16T11:02:23.432813804-07:00 [INFO] got server hello
2024-09-16T11:02:23.432883965-07:00 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 540, id: 9254508 })
2024-09-16T11:02:23.432975216-07:00 [INFO] set status on client 0: Connected { peer_id: PeerId { owner_id: 540, id: 9254508 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-09-16T11:02:23.576195013-07:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-09-16T18:02:23.572Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-09-16T18:02:23.572Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-09-16T11:02:23.577775834-07:00 [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "9ebddf6f-3fbc-4966-9cf6-536f3df398a4",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-09-16T11:02:23.839931537-07:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 1,
  "message": "[INFO] [auth] [2024-09-16T18:02:23.838Z] Failed to get copilot token due to 401 status",
  "metadataStr": "[INFO] [auth] [2024-09-16T18:02:23.838Z]",
  "extra": [
    "Failed to get copilot token due to 401 status"
  ]
}
2024-09-16T11:02:23.850319192-07:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-09-16T18:02:23.844Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-09-16T18:02:23.844Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-09-16T11:02:24.372369493-07:00 [INFO] rebuilt extension index in 1.869321ms
2024-09-16T11:02:24.3724695-07:00 [INFO] extensions updated. loading 0, reloading 1, unloading 0
2024-09-16T11:02:24.578136677-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:43.158539457-07:00 [INFO] building git repository, `.git` path in the worktree: ".git"
2024-09-16T11:02:43.603939299-07:00 [INFO] unhandled message SynchronizeContexts
2024-09-16T11:02:43.609609138-07:00 [INFO] unhandled message CreateContext
2024-09-16T11:02:59.960372934-07:00 [INFO] unhandled message SynchronizeContexts
2024-09-16T11:02:59.968921504-07:00 [INFO] unhandled message CreateContext
2024-09-16T11:06:27.134131985-07:00 [INFO] unhandled message SynchronizeContexts
2024-09-16T11:06:27.140652297-07:00 [INFO] unhandled message CreateContext

==== MacOS (local) logs ====

2024-09-16T11:02:54.238664-07:00 [INFO] ========== starting zed ==========
2024-09-16T11:02:54.240197-07:00 [INFO] Opening main db
2024-09-16T11:02:54.259888-07:00 [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git")
2024-09-16T11:02:54.391098-07:00 [ERROR] theme not found: DarkPark Nord
2024-09-16T11:02:54.391524-07:00 [INFO] initializing context server client
2024-09-16T11:02:54.39167-07:00 [INFO] Registering built-in prompt template: content_prompt
2024-09-16T11:02:54.392111-07:00 [INFO] Registering built-in prompt template: edit_workflow
2024-09-16T11:02:54.392327-07:00 [INFO] Registering built-in prompt template: step_resolution
2024-09-16T11:02:54.392731-07:00 [INFO] Registering built-in prompt template: terminal_assistant_prompt
2024-09-16T11:02:54.392928-07:00 [INFO] No prompt template overrides directory found at /Users/derekparker/.config/zed/prompt_overrides. Using built-in prompts.
2024-09-16T11:02:54.393907-07:00 [INFO] extensions updated. loading 4, reloading 0, unloading 0
2024-09-16T11:02:54.434756-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.434869-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.435074-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.435196-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.435294-07:00 [INFO] Opening main db
2024-09-16T11:02:54.435986-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.436076-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.436234-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.436446-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.436705-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.437291-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.444655-07:00 [WARN] Theme "DarkPark Nord" is using a deprecated style property: scrollbar_thumb.background. Use `scrollbar.thumb.background` instead.
2024-09-16T11:02:54.447367-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.447576-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.44974-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.449945-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.451021-07:00 [INFO] building git repository, `.git` path in the worktree: "xcrypto/.git"
2024-09-16T11:02:54.481634-07:00 [INFO] Opening main db
2024-09-16T11:02:54.482064-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.482721-07:00 [INFO] set status on client 0: Authenticating
2024-09-16T11:02:54.484491-07:00 [INFO] Opening main db
2024-09-16T11:02:54.497875-07:00 [INFO] set status on client 65796: Connecting
2024-09-16T11:02:54.503114-07:00 [INFO] starting language servers for Go Mod: gopls
2024-09-16T11:02:54.503223-07:00 [INFO] starting language server "gopls", path: "/Users/derekparker/Code/argon2", id: 1
2024-09-16T11:02:54.504482-07:00 [INFO] starting language servers for Go Work: gopls
2024-09-16T11:02:54.504677-07:00 [INFO] Initializing default prettier with plugins {}
2024-09-16T11:02:54.50478-07:00 [INFO] starting language servers for Go Mod: gopls
2024-09-16T11:02:54.504868-07:00 [INFO] starting language servers for Go Work: gopls
2024-09-16T11:02:54.505062-07:00 [INFO] Initializing default prettier with plugins {}
2024-09-16T11:02:54.505202-07:00 [INFO] Initializing default prettier with plugins {}
2024-09-16T11:02:54.509884-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.510153-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.510869-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:02:54.512141-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:02:54.513385-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:02:54.51357-07:00 [INFO] Initializing default prettier with plugins {}
2024-09-16T11:02:54.513617-07:00 [INFO] starting language servers for Go Work: gopls
2024-09-16T11:02:54.513662-07:00 [INFO] starting language servers for Go Mod: gopls
2024-09-16T11:02:54.513705-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:02:54.513748-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:02:54.513807-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:02:54.514045-07:00 [INFO] Initializing default prettier with plugins {}
2024-09-16T11:02:54.514106-07:00 [INFO] Initializing default prettier with plugins {}
2024-09-16T11:02:54.514163-07:00 [INFO] Initializing default prettier with plugins {}
2024-09-16T11:02:54.515271-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.547873-07:00 [INFO] Initializing default prettier with plugins {}
2024-09-16T11:02:54.547941-07:00 [INFO] starting language servers for Go Work: gopls
2024-09-16T11:02:54.547985-07:00 [INFO] starting language servers for Go Mod: gopls
2024-09-16T11:02:54.548029-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:02:54.548075-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:02:54.548118-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:02:54.55286-07:00 [INFO] Initializing default prettier with plugins {}
2024-09-16T11:02:54.55293-07:00 [INFO] starting language servers for Go Work: gopls
2024-09-16T11:02:54.552977-07:00 [INFO] starting language servers for Go Mod: gopls
2024-09-16T11:02:54.553031-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:02:54.553078-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:02:54.553124-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:02:54.553225-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.555735-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.634552-07:00 [INFO] Initializing default prettier with plugins {}
2024-09-16T11:02:54.634632-07:00 [INFO] starting language servers for Go Work: gopls
2024-09-16T11:02:54.634679-07:00 [INFO] starting language servers for Go Mod: gopls
2024-09-16T11:02:54.634725-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:02:54.634769-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:02:54.634813-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:02:54.639253-07:00 [WARN] request completed with error: failed to connect to the server
2024-09-16T11:02:54.705292-07:00 [INFO] set environment variables from shell:/bin/zsh, path:/opt/homebrew/opt/binutils/bin:/opt/homebrew/opt/node@16/bin:/Users/derekparker/Code/goroot/bin:/Users/derekparker/go/bin:/usr/local/go/bin:.git/safe/../../bin:/usr/local/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/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:/Applications/VMware Fusion Tech Preview.app/Contents/Public:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Users/derekparker/.cargo/bin:/Users/derekparker/Library/Application Support/JetBrains/Toolbox/scripts:/Users/derekparker/Code/dotmatrix/hr/bin
2024-09-16T11:02:54.705454-07:00 [INFO] found user-installed language server for Go Mod. path: "/Users/derekparker/go/bin/gopls", arguments: ["-mode=stdio"]
2024-09-16T11:02:54.705527-07:00 [INFO] starting language server. binary path: "/Users/derekparker/go/bin/gopls", working directory: "/Users/derekparker/Code/argon2", args: ["-mode=stdio"]
2024-09-16T11:02:54.738447-07:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc
2024-09-16T11:02:54.81746-07:00 [INFO] Node runtime install_if_needed
2024-09-16T11:02:55.008099-07:00 [INFO] starting language server. binary path: "/Users/derekparker/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node", working directory: "/", args: ["/Users/derekparker/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-09-16T11:02:55.079223-07:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-09-16T11:02:55.108996-07:00 [INFO] add connection to peer
2024-09-16T11:02:55.109056-07:00 [INFO] add_connection;
2024-09-16T11:02:55.1091-07:00 [INFO] waiting for server hello
2024-09-16T11:02:55.116313-07:00 [INFO] got server hello
2024-09-16T11:02:55.116367-07:00 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 540, id: 9254907 })
2024-09-16T11:02:55.116452-07:00 [INFO] set status on client 65796: Connected { peer_id: PeerId { owner_id: 540, id: 9254907 }, connection_id: ConnectionId { owner_id: 0, id: 0 } }
2024-09-16T11:02:55.360383-07:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-09-16T18:02:55.355Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-09-16T18:02:55.355Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-09-16T11:02:55.361449-07:00 [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "5d8ba125-2000-4811-a4f0-0c48d62ddc25",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-09-16T11:02:55.380927-07:00 [INFO] language server 1: unregistered workspace/DidChangeWatchedFiles capability with id workspace/didChangeWatchedFiles-0
2024-09-16T11:02:55.756023-07:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-09-16T18:02:55.746Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-09-16T18:02:55.746Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-09-16T11:02:59.809826-07:00 [ERROR] oneshot canceled
2024-09-16T11:03:00.010236-07:00 [ERROR] RPC request SynchronizeContexts failed: message SynchronizeContexts was not handled
2024-09-16T11:03:00.01761-07:00 [ERROR] RPC request CreateContext failed: message CreateContext was not handled
2024-09-16T11:06:03.153092-07:00 [INFO] building git repository, `.git` path in the worktree: "xcrypto/.git"
2024-09-16T11:06:03.179159-07:00 [INFO] starting language servers for Go Work: gopls
2024-09-16T11:06:03.179365-07:00 [INFO] starting language server "gopls", path: "/Users/derekparker/Code/argon2", id: 2
2024-09-16T11:06:03.179608-07:00 [INFO] Initializing default prettier with plugins {}
2024-09-16T11:06:03.179901-07:00 [INFO] starting language servers for Go Mod: gopls
2024-09-16T11:06:03.180093-07:00 [INFO] Initializing default prettier with plugins {}
2024-09-16T11:06:03.180531-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:06:03.180733-07:00 [INFO] Initializing default prettier with plugins {}
2024-09-16T11:06:03.182188-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:06:03.182371-07:00 [INFO] Initializing default prettier with plugins {}
2024-09-16T11:06:03.187688-07:00 [INFO] starting language servers for Go: gopls
2024-09-16T11:06:03.187883-07:00 [INFO] Initializing default prettier with plugins {}
2024-09-16T11:06:03.497065-07:00 [INFO] found user-installed language server for Go Work. path: "/Users/derekparker/go/bin/gopls", arguments: ["-mode=stdio"]
2024-09-16T11:06:03.497192-07:00 [INFO] starting language server. binary path: "/Users/derekparker/go/bin/gopls", working directory: "/Users/derekparker/Code/argon2", args: ["-mode=stdio"]
2024-09-16T11:06:03.653398-07:00 [WARN] unhandled capability registration: Registration { id: "workspace/didChangeConfiguration", method: "workspace/didChangeConfiguration", register_options: None }
2024-09-16T11:06:03.875864-07:00 [INFO] language server 2: unregistered workspace/DidChangeWatchedFiles capability with id workspace/didChangeWatchedFiles-0
2024-09-16T11:06:26.991287-07:00 [ERROR] oneshot canceled
2024-09-16T11:06:27.181438-07:00 [ERROR] RPC request SynchronizeContexts failed: message SynchronizeContexts was not handled
2024-09-16T11:06:27.189178-07:00 [ERROR] RPC request CreateContext failed: message CreateContext was not handled
JanKoppe commented 1 month ago

Same issue here. Trying to connect from Zed 0.152.4 on macOS 15.0 (24A335) to a remote host running Arch Linux. This worked fine in the past.

Zed.log ``` 2024-09-18T15:17:26.610092+02:00 [INFO] ========== starting zed ========== 2024-09-18T15:17:26.613602+02:00 [INFO] Opening main db 2024-09-18T15:17:26.634299+02:00 [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git") 2024-09-18T15:17:26.711394+02:00 [INFO] set environment variables from shell:/bin/zsh, path:/Users/j/.asdf/shims:/opt/homebrew/opt/asdf/libexec/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/TeX/texbin:/Users/j/.orbstack/bin:/Users/j/.orbstack/bin 2024-09-18T15:17:26.765876+02:00 [ERROR] theme not found: Chanterelle 2024-09-18T15:17:26.767025+02:00 [INFO] initializing context server client 2024-09-18T15:17:26.767303+02:00 [INFO] Registering built-in prompt template: content_prompt 2024-09-18T15:17:26.767659+02:00 [INFO] Registering built-in prompt template: edit_workflow 2024-09-18T15:17:26.767803+02:00 [INFO] Registering built-in prompt template: step_resolution 2024-09-18T15:17:26.768053+02:00 [INFO] Registering built-in prompt template: terminal_assistant_prompt 2024-09-18T15:17:26.76822+02:00 [INFO] No prompt template overrides directory found at /Users/j/.config/zed/prompt_overrides. Using built-in prompts. 2024-09-18T15:17:26.769864+02:00 [INFO] extensions updated. loading 6, reloading 0, unloading 0 2024-09-18T15:17:26.801915+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:26.802011+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:26.802074+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:26.802133+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:26.803262+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:26.803329+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:26.803393+02:00 [INFO] Opening main db 2024-09-18T15:17:26.803457+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:26.803546+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:26.803614+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:26.804683+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:26.806836+02:00 [ERROR] theme not found: Chanterelle 2024-09-18T15:17:26.807376+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:26.808714+02:00 [INFO] building git repository, `.git` path in the worktree: ".git" 2024-09-18T15:17:26.844581+02:00 [INFO] Opening main db 2024-09-18T15:17:26.845405+02:00 [INFO] set status on client 0: Authenticating 2024-09-18T15:17:26.846093+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:26.84616+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:26.846222+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:26.846517+02:00 [INFO] Opening main db 2024-09-18T15:17:26.847734+02:00 [INFO] set status on client 46676: Connecting 2024-09-18T15:17:26.854289+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:26.894407+02:00 [INFO] starting language servers for Markdown: 2024-09-18T15:17:26.894555+02:00 [INFO] Initializing default prettier with plugins {} 2024-09-18T15:17:26.897034+02:00 [INFO] Initializing default prettier with plugins {} 2024-09-18T15:17:26.897105+02:00 [INFO] starting language servers for Markdown: 2024-09-18T15:17:26.897742+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:26.926137+02:00 [INFO] Initializing default prettier with plugins {} 2024-09-18T15:17:26.926214+02:00 [INFO] starting language servers for Markdown: 2024-09-18T15:17:26.929275+02:00 [INFO] starting language servers for Python: pyright 2024-09-18T15:17:26.929349+02:00 [INFO] starting language server "pyright", path: "/Users/j/*****", id: 1 2024-09-18T15:17:26.929663+02:00 [INFO] starting language servers for Python: pyright 2024-09-18T15:17:26.929794+02:00 [INFO] Initializing default prettier with plugins {} 2024-09-18T15:17:26.929848+02:00 [INFO] starting language servers for Markdown: 2024-09-18T15:17:26.929898+02:00 [INFO] starting language servers for Python: pyright 2024-09-18T15:17:26.929949+02:00 [INFO] starting language servers for Python: pyright 2024-09-18T15:17:26.930149+02:00 [INFO] Initializing default prettier with plugins {} 2024-09-18T15:17:26.930206+02:00 [INFO] Initializing default prettier with plugins {} 2024-09-18T15:17:26.931531+02:00 [INFO] fetching latest version of language server "pyright" 2024-09-18T15:17:26.931614+02:00 [INFO] Node runtime install_if_needed 2024-09-18T15:17:26.93168+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:26.932967+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:27.030893+02:00 [INFO] Node runtime install_if_needed 2024-09-18T15:17:27.106257+02:00 [INFO] Initializing default prettier with plugins {} 2024-09-18T15:17:27.106348+02:00 [INFO] starting language servers for Markdown: 2024-09-18T15:17:27.106402+02:00 [INFO] starting language servers for Python: pyright 2024-09-18T15:17:27.10645+02:00 [INFO] starting language servers for Python: pyright 2024-09-18T15:17:27.107141+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:27.111726+02:00 [INFO] Node runtime install_if_needed 2024-09-18T15:17:27.118005+02:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc 2024-09-18T15:17:27.189254+02:00 [INFO] starting language server. binary path: "/Users/j/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node", working directory: "/", args: ["/Users/j/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"] 2024-09-18T15:17:27.38679+02:00 [INFO] Language server with id 0 sent unhandled notification LogMessage: { "level": 0, "message": "[DEBUG] [agent] [2024-09-18T13:17:27.381Z] Agent service starting", "metadataStr": "[DEBUG] [agent] [2024-09-18T13:17:27.381Z]", "extra": [ "Agent service starting" ] } 2024-09-18T15:17:27.386949+02:00 [INFO] Language server with id 0 sent unhandled notification client/registerCapability: { "registrations": [ { "id": "47664c06-e8c5-4049-9f66-d021edece382", "method": "workspace/didChangeWorkspaceFolders", "registerOptions": {} } ] } 2024-09-18T15:17:27.486738+02:00 [INFO] downloading language server "pyright" 2024-09-18T15:17:27.487611+02:00 [INFO] Node runtime install_if_needed 2024-09-18T15:17:27.536832+02:00 [INFO] add connection to peer 2024-09-18T15:17:27.536907+02:00 [INFO] add_connection; 2024-09-18T15:17:27.53696+02:00 [INFO] waiting for server hello 2024-09-18T15:17:27.546048+02:00 [INFO] got server hello 2024-09-18T15:17:27.546146+02:00 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 540, id: 11066394 }) 2024-09-18T15:17:27.546267+02:00 [INFO] set status on client 46676: Connected { peer_id: PeerId { owner_id: 540, id: 11066394 }, connection_id: ConnectionId { owner_id: 0, id: 0 } } 2024-09-18T15:17:27.572226+02:00 [INFO] starting language server. binary path: "/Users/j/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node", working directory: "/Users/j/git/git.chaoswest.tv/thunfisch/mediadumpster", args: ["/Users/j/Library/Application Support/Zed/languages/pyright/node_modules/pyright/langserver.index.js", "--stdio"] 2024-09-18T15:17:27.690009+02:00 [INFO] Language server with id 0 sent unhandled notification LogMessage: { "level": 0, "message": "[DEBUG] [agent] [2024-09-18T13:17:27.687Z] Telemetry initialized", "metadataStr": "[DEBUG] [agent] [2024-09-18T13:17:27.687Z]", "extra": [ "Telemetry initialized" ] } 2024-09-18T15:17:27.762516+02:00 [INFO] language server 1: unregistered workspace/DidChangeWatchedFiles capability with id 72dbbbeb-639f-4c1b-a2d5-684bada37957 2024-09-18T15:17:33.659879+02:00 [INFO] Initializing default prettier with plugins {} 2024-09-18T15:17:33.660069+02:00 [INFO] starting language servers for Markdown: 2024-09-18T15:17:33.660187+02:00 [INFO] starting language servers for Python: pyright 2024-09-18T15:17:33.660307+02:00 [INFO] starting language servers for Python: pyright 2024-09-18T15:17:33.677562+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:17:33.766781+02:00 [INFO] language server 1: unregistered workspace/DidChangeWatchedFiles capability with id ce2276fd-eced-407c-a848-4bc7791d0dc4 2024-09-18T15:17:33.934194+02:00 [ERROR] RPC request SynchronizeContexts failed: message SynchronizeContexts was not handled 2024-09-18T15:17:33.995043+02:00 [ERROR] RPC request CreateContext failed: message CreateContext was not handled 2024-09-18T15:17:41.054702+02:00 [ERROR] oneshot canceled 2024-09-18T15:18:06.466273+02:00 [ERROR] couldn't reconnect 2024-09-18T15:18:10.442785+02:00 [ERROR] couldn't reconnect 2024-09-18T15:18:40.307653+02:00 [ERROR] couldn't reconnect 2024-09-18T15:18:47.962396+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:47.969557+02:00 [ERROR] no worktrees when constructing ProjectLspAdapterDelegate 2024-09-18T15:18:49.938519+02:00 [INFO] ========== starting zed ========== 2024-09-18T15:18:49.939567+02:00 [INFO] Opening main db 2024-09-18T15:18:49.956698+02:00 [INFO] Using git binary path: Some("/Applications/Zed.app/Contents/MacOS/git") 2024-09-18T15:18:50.008942+02:00 [INFO] set environment variables from shell:/bin/zsh, path:/Users/j/.asdf/shims:/opt/homebrew/opt/asdf/libexec/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/TeX/texbin:/Users/j/.orbstack/bin 2024-09-18T15:18:50.056815+02:00 [ERROR] theme not found: Chanterelle 2024-09-18T15:18:50.057066+02:00 [INFO] initializing context server client 2024-09-18T15:18:50.057162+02:00 [INFO] Registering built-in prompt template: content_prompt 2024-09-18T15:18:50.057379+02:00 [INFO] Registering built-in prompt template: edit_workflow 2024-09-18T15:18:50.057521+02:00 [INFO] Registering built-in prompt template: step_resolution 2024-09-18T15:18:50.057767+02:00 [INFO] Registering built-in prompt template: terminal_assistant_prompt 2024-09-18T15:18:50.057891+02:00 [INFO] No prompt template overrides directory found at /Users/j/.config/zed/prompt_overrides. Using built-in prompts. 2024-09-18T15:18:50.058445+02:00 [INFO] extensions updated. loading 6, reloading 0, unloading 0 2024-09-18T15:18:50.095411+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.095508+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.095562+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.095617+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.096022+02:00 [INFO] Opening main db 2024-09-18T15:18:50.096094+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.09616+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.096223+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.096277+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.09634+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.097263+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.127167+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.128838+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.129037+02:00 [INFO] Opening main db 2024-09-18T15:18:50.129545+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.129606+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.141683+02:00 [INFO] set status on client 0: Authenticating 2024-09-18T15:18:50.142806+02:00 [INFO] Initializing default prettier with plugins {} 2024-09-18T15:18:50.144224+02:00 [INFO] Initializing default prettier with plugins {} 2024-09-18T15:18:50.144711+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.144873+02:00 [INFO] set status on client 46676: Connecting 2024-09-18T15:18:50.144968+02:00 [INFO] Opening main db 2024-09-18T15:18:50.145286+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.145425+02:00 [ERROR] no worktrees when constructing ProjectLspAdapterDelegate 2024-09-18T15:18:50.154823+02:00 [INFO] Initializing default prettier with plugins {} 2024-09-18T15:18:50.155382+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.17911+02:00 [INFO] Node runtime install_if_needed 2024-09-18T15:18:50.210405+02:00 [INFO] Initializing default prettier with plugins {} 2024-09-18T15:18:50.210935+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.257132+02:00 [INFO] starting language server. binary path: "/Users/j/Library/Application Support/Zed/node/node-v22.5.1-darwin-arm64/bin/node", working directory: "/", args: ["/Users/j/Library/Application Support/Zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"] 2024-09-18T15:18:50.373271+02:00 [INFO] Initializing default prettier with plugins {} 2024-09-18T15:18:50.374015+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:50.397631+02:00 [INFO] connected to rpc endpoint https://collab.zed.dev/rpc 2024-09-18T15:18:50.440759+02:00 [INFO] Language server with id 0 sent unhandled notification LogMessage: { "level": 0, "message": "[DEBUG] [agent] [2024-09-18T13:18:50.438Z] Agent service starting", "metadataStr": "[DEBUG] [agent] [2024-09-18T13:18:50.438Z]", "extra": [ "Agent service starting" ] } 2024-09-18T15:18:50.441728+02:00 [INFO] Language server with id 0 sent unhandled notification client/registerCapability: { "registrations": [ { "id": "45f266a3-5871-4b5b-89f1-57abcc84d0dc", "method": "workspace/didChangeWorkspaceFolders", "registerOptions": {} } ] } 2024-09-18T15:18:50.72729+02:00 [INFO] Language server with id 0 sent unhandled notification LogMessage: { "level": 0, "message": "[DEBUG] [agent] [2024-09-18T13:18:50.723Z] Telemetry initialized", "metadataStr": "[DEBUG] [agent] [2024-09-18T13:18:50.723Z]", "extra": [ "Telemetry initialized" ] } 2024-09-18T15:18:50.814243+02:00 [INFO] add connection to peer 2024-09-18T15:18:50.814421+02:00 [INFO] add_connection; 2024-09-18T15:18:50.814541+02:00 [INFO] waiting for server hello 2024-09-18T15:18:50.824234+02:00 [INFO] got server hello 2024-09-18T15:18:50.824358+02:00 [INFO] set status to connected (connection id: ConnectionId { owner_id: 0, id: 0 }, peer id: PeerId { owner_id: 540, id: 11067368 }) 2024-09-18T15:18:50.824557+02:00 [INFO] set status on client 46676: Connected { peer_id: PeerId { owner_id: 540, id: 11067368 }, connection_id: ConnectionId { owner_id: 0, id: 0 } } 2024-09-18T15:18:58.278566+02:00 [INFO] Initializing default prettier with plugins {} 2024-09-18T15:18:58.301635+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:18:58.536348+02:00 [ERROR] RPC request SynchronizeContexts failed: message SynchronizeContexts was not handled 2024-09-18T15:18:58.562543+02:00 [ERROR] RPC request CreateContext failed: message CreateContext was not handled 2024-09-18T15:20:32.33985+02:00 [WARN] request completed with error: failed to connect to the server 2024-09-18T15:20:32. ```

Edit

To make sure this isn't an issue with old version on remote, I've completely removed the ~/.local/zed.app directory on the remote, and let Zed reinstall it when connecting to the remote. This did not solve the issue for me.

ds-sebastian commented 1 month ago

I've noticed this too with a recent update. My remote instances either don't show anything in the project panel or sometimes it will show the contents of the folder that was there when I last connected despite me opening a different repo from the "open remote" menu

derekparker commented 1 month ago

I've noticed that sometimes, when I search for files via cmd+p I can open remote files and then the project panel will populate correctly.

charypar commented 1 month ago

I'm not sure this is related, but I noticed the project panel sometimes doesn't populate, and it looks related to the state of the git index.

I use https://github.com/martinvonz/jj as a daily driver, which doesn't work with the git index. Zed seems to rely on it to show the git status of files and seems to attempt to compute the status itself, maybe? In a large repo, this seems to just hang forever.

BeppeMarnell commented 1 month ago

I've noticed that sometimes, when I search for files via cmd+p I can open remote files and then the project panel will populate correctly.

Yep, this seems to show the project panel. Also, opening a single folder takes quite a long time, but if consecutively open multiple folders then they start appearing quite fast.

fonnesbeck commented 1 month ago

I'm getting a similar issue, with a twist: the side panel is showing my local file tree, while the terminal is properly connected to the remote session. The title bar also show a connected session. But, I cannot open any remote files, making Zed currently unusable for remote editing.

Using ctrl-O (I am on Linux) to open a folder is not responsive when trying to select a remote folder. It simply presents the remote projects panel (I am already connected, so this makes no sense) and nothing happens when I click on the remote project again.

BeppeMarnell commented 1 month ago

With 156 the panel issues are solved

fonnesbeck commented 1 month ago

@BeppeMarnell I am on 0.156.1 -- should I create a new issue?

mrnugget commented 2 weeks ago

@fonnesbeck can you try with the latest Preview release?

ConradIrwin commented 1 week ago

Closing for now, but please re-open if this is still an issue in 0.159/0.160