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

GitHub Zed signin page doesn't open on wayland #19658

Open 2gn opened 1 month ago

2gn commented 1 month ago

Check for existing issues

Describe the bug / provide steps to reproduce it

On wayland Click on Sign in button on top right Nothing happens

There's a walkaround for GitHub Copilot authentication and that is to open https://github.com/login/device manually and paste the code

Edit: I was opening Chromium on Xwayland and I found several login pages opened. So this could be a walkaround as well. Still doesn't open on browsers running natively though (with Xwayland session closed)

Environment

Zed: v0.157.5 (Zed) OS: Linux Wayland debian 12 Memory: 15.3 GiB Architecture: x86_64 GPU: Intel(R) Graphics (RPL-P) || Intel open-source Mesa driver || Mesa 22.3.6

Additional information:

Window manager: Niri Xwayland: No

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-24T11:04:33.315781149+09:00 [WARN] request completed with error: failed to connect to the server
2024-10-24T11:04:33.517409684+09:00 [INFO] starting language server process. binary path: "/home/user/.volta/bin/node", working directory: "/", args: ["/home/user/.local/share/zed/copilot/copilot-v0.5.0/dist/agent.js", "--stdio"]
2024-10-24T11:04:33.755071252+09:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-10-24T02:04:33.752Z] Agent service starting",
  "metadataStr": "[DEBUG] [agent] [2024-10-24T02:04:33.752Z]",
  "extra": [
    "Agent service starting"
  ]
}
2024-10-24T11:04:33.757081414+09:00 [INFO] Language server with id 0 sent unhandled notification client/registerCapability:
{
  "registrations": [
    {
      "id": "84f06b6a-31ad-4f2c-b44c-591625466c5b",
      "method": "workspace/didChangeWorkspaceFolders",
      "registerOptions": {}
    }
  ]
}
2024-10-24T11:04:33.780790964+09:00 [INFO] Language server with id 0 sent unhandled notification LogMessage:
{
  "level": 0,
  "message": "[DEBUG] [agent] [2024-10-24T02:04:33.761Z] Telemetry initialized",
  "metadataStr": "[DEBUG] [agent] [2024-10-24T02:04:33.761Z]",
  "extra": [
    "Telemetry initialized"
  ]
}
2024-10-24T11:04:34.949198229+09:00 [INFO] response dropped without fully consuming the response body, connection won't be reused
Aborting a response without fully consuming the response body can result in sub-optimal performance. See https://github.com/sagebind/isahc/wiki/Connection-Reuse#closing-connections-early.
2024-10-24T11:04:58.184043289+09:00 [INFO] new;
2024-10-24T11:04:58.186897779+09:00 [INFO] keep_updated;
2024-10-24T11:04:58.187026077+09:00 [INFO] new;
2024-10-24T11:05:01.77575653+09:00 [INFO] Using surface present mode MAILBOX
2024-10-24T11:05:01.778188858+09:00 [WARN] Unable to forbid exclusive full screen
2024-10-24T11:05:37.805388403+09:00 [INFO] downloaded update. path:"/tmp/zed-auto-updatewLpfuy/zed.tar.gz"
2024-10-24T11:05:38.698774613+09:00 [ERROR] auto-update failed: error:No such file or directory (os error 2)
2024-10-24T11:06:51.634924806+09:00 [INFO] set status on client 0: Authenticating
2024-10-24T11:06:51.636530709+09:00 [INFO] perform;
2024-10-24T11:06:51.63666764+09:00 [INFO] authenticate;
2024-10-24T11:06:51.636832723+09:00 [INFO] read_command;
2024-10-24T11:06:51.638867684+09:00 [INFO] socket reader;
2024-10-24T11:06:51.751738606+09:00 [INFO] new;
2024-10-24T11:06:51.752850487+09:00 [INFO] keep_updated;
2024-10-24T11:06:51.752895446+09:00 [INFO] new;
2024-10-24T11:07:00.732223425+09:00 [INFO] set status on client 0: Reauthenticating
2024-10-24T11:07:00.732554284+09:00 [ERROR] authentication canceled
2024-10-24T11:07:00.733587123+09:00 [INFO] perform;
2024-10-24T11:07:00.733683972+09:00 [INFO] authenticate;
2024-10-24T11:07:00.733775671+09:00 [INFO] read_command;
2024-10-24T11:07:00.735700871+09:00 [INFO] socket reader;
2024-10-24T11:07:00.897481553+09:00 [INFO] new;
2024-10-24T11:07:00.898137371+09:00 [INFO] keep_updated;
2024-10-24T11:07:00.898213206+09:00 [INFO] new;
2024-10-24T11:07:21.096158852+09:00 [INFO] set status on client 0: Reauthenticating
2024-10-24T11:07:21.096930851+09:00 [ERROR] authentication canceled
2024-10-24T11:07:21.098541124+09:00 [INFO] perform;
2024-10-24T11:07:21.098717013+09:00 [INFO] authenticate;
2024-10-24T11:07:21.098879776+09:00 [INFO] read_command;
2024-10-24T11:07:21.10181968+09:00 [INFO] socket reader;
2024-10-24T11:07:21.277895834+09:00 [INFO] new;
2024-10-24T11:07:21.278741032+09:00 [INFO] keep_updated;
2024-10-24T11:07:21.278798952+09:00 [INFO] new;
2024-10-24T11:09:01.295522841+09:00 [INFO] set status on client 0: ConnectionError
2024-10-24T11:09:01.295696291+09:00 [ERROR] didn't receive login redirect

LambdaMike commented 1 month ago

Same error, I was using it in gnome (zorin 17.2) everything was working, but when I switch to wayland, copilot stops working and shows a popup for 1 second and then closes

https://github.com/user-attachments/assets/64d680dd-782b-434f-a39a-d4e7ac3a8fa7