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.02k stars 2.83k forks source link

Linux: prompt library is missing top bar (can't close or move window) #18177

Open red-co opened 2 weeks ago

red-co commented 2 weeks ago

Check for existing issues

Describe the bug / provide steps to reproduce it

rim zed v0.153.6, open assistant panel, open prompt library,

Environment

Zed: v0.153.6 (Zed) OS: Linux Wayland ubuntu 22.04 Memory: 7.5 GiB Architecture: x86_64 GPU: Intel(R) HD Graphics 5500 (BDW GT2) || Intel open-source Mesa driver || Mesa 23.2.1-1ubuntu3.1~22.04.2

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

Screenshot from 2024-09-21 18-55-23

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

Zed.log

299195292+08:00 [INFO] ========== starting zed ==========
2024-09-21T19:08:06.330302601+08:00 [INFO] perform;
2024-09-21T19:08:06.330390476+08:00 [INFO] authenticate;
2024-09-21T19:08:06.330487098+08:00 [INFO] read_command;
2024-09-21T19:08:06.33072006+08:00 [INFO] Opening main db
2024-09-21T19:08:06.331827606+08:00 [INFO] new;
2024-09-21T19:08:06.33206817+08:00 [INFO] socket reader;
2024-09-21T19:08:06.333419055+08:00 [INFO] keep_updated;
2024-09-21T19:08:06.334241993+08:00 [INFO] Using git binary path: None
2024-09-21T19:08:06.337209034+08:00 [ERROR] unknown variant `true`, expected one of `none`, `prefer_line`, `editor_width`, `preferred_line_length`, `bounded`
2024-09-21T19:08:06.381111574+08:00 [INFO] set environment variables from shell:/bin/bash, path:/home/ssyy/.local/bin:/home/ssyy/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin
2024-09-21T19:08:06.397530335+08:00 [ERROR] No such file or directory (os error 2) about ["/home/ssyy/.config/github-copilot"]
2024-09-21T19:08:06.397859032+08:00 [INFO] initializing context server client
2024-09-21T19:08:06.397972179+08:00 [INFO] Registering built-in prompt template: content_prompt
2024-09-21T19:08:06.398394691+08:00 [INFO] Registering built-in prompt template: edit_workflow
2024-09-21T19:08:06.398748472+08:00 [INFO] Registering built-in prompt template: step_resolution
2024-09-21T19:08:06.399366484+08:00 [INFO] Registering built-in prompt template: terminal_assistant_prompt
2024-09-21T19:08:06.399647413+08:00 [INFO] No prompt template overrides directory found at /home/ssyy/.local/share/zed/prompt_overrides. Using built-in prompts.
2024-09-21T19:08:06.40038754+08:00 [INFO] extensions updated. loading 1, reloading 0, unloading 0
2024-09-21T19:08:06.404420713+08:00 [INFO] activate is not implemented on Linux, ignoring the call
2024-09-21T19:08:06.404582641+08:00 [INFO] Opening main db
2024-09-21T19:08:06.407325178+08:00 [INFO] perform;
2024-09-21T19:08:06.407415885+08:00 [INFO] authenticate;
2024-09-21T19:08:06.407502851+08:00 [INFO] read_command;
2024-09-21T19:08:06.409827299+08:00 [INFO] socket reader;
2024-09-21T19:08:06.411746318+08:00 [WARN] request completed with error: failed to connect to the server
2024-09-21T19:08:06.411879398+08:00 [WARN] request completed with error: failed to connect to the server
2024-09-21T19:08:06.411950011+08:00 [WARN] request completed with error: failed to connect to the server
2024-09-21T19:08:06.412046244+08:00 [WARN] request completed with error: failed to connect to the server
2024-09-21T19:08:06.412365854+08:00 [WARN] request completed with error: failed to connect to the server
2024-09-21T19:08:06.412449472+08:00 [WARN] request completed with error: failed to connect to the server
2024-09-21T19:08:06.412520875+08:00 [WARN] request completed with error: failed to connect to the server
2024-09-21T19:08:06.412592426+08:00 [WARN] request completed with error: failed to connect to the server
2024-09-21T19:08:06.412663178+08:00 [WARN] request completed with error: failed to connect to the server
2024-09-21T19:08:06.412737989+08:00 [WARN] request completed with error: failed to connect to the server
2024-09-21T19:08:06.449203945+08:00 [INFO] Enabling color space support
2024-09-21T19:08:06.463181687+08:00 [INFO] Adapter: "Intel(R) HD Graphics 5500 (BDW GT2)"
2024-09-21T19:08:06.463739041+08:00 [INFO] No ray tracing extensions are supported
2024-09-21T19:08:06.466192321+08:00 [INFO] Using surface present mode MAILBOX
2024-09-21T19:08:06.494925479+08:00 [WARN] Unable to forbid exclusive full screen
2024-09-21T19:08:06.495664352+08:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-09-21T19:08:06.495765884+08:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-09-21T19:08:06.495876642+08:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: PreMultiplied }
2024-09-21T19:08:06.505896031+08:00 [INFO] Using GPU: GPUSpecs { is_software_emulated: false, device_name: "Intel(R) HD Graphics 5500 (BDW GT2)", driver_name: "Intel open-source Mesa driver", driver_info: "Mesa 23.2.1-1ubuntu3.1~22.04.2" }
2024-09-21T19:08:06.50822493+08:00 [WARN] request completed with error: failed to connect to the server
2024-09-21T19:08:06.509245124+08:00 [INFO] Opening main db
2024-09-21T19:08:06.601856233+08:00 [INFO] Initializing default prettier with plugins {}
2024-09-21T19:08:06.609481186+08:00 [ERROR] unknown variant `true`, expected one of `none`, `prefer_line`, `editor_width`, `preferred_line_length`, `bounded`
2024-09-21T19:08:06.612139538+08:00 [INFO] Initializing default prettier with plugins {}
2024-09-21T19:08:06.614840147+08:00 [ERROR] unknown variant `true`, expected one of `none`, `prefer_line`, `editor_width`, `preferred_line_length`, `bounded`
2024-09-21T19:08:06.615529682+08:00 [WARN] request completed with error: failed to connect to the server
2024-09-21T19:08:06.617537819+08:00 [INFO] Initializing default prettier with plugins {}
2024-09-21T19:08:06.619750127+08:00 [ERROR] no worktrees when constructing ProjectLspAdapterDelegate
2024-09-21T19:08:06.619874551+08:00 [WARN] request completed with error: failed to connect to the server
2024-09-21T19:08:06.620060845+08:00 [WARN] request completed with error: failed to connect to the server
2024-09-21T19:08:06.661084699+08:00 [INFO] Using surface present mode MAILBOX
2024-09-21T19:08:06.677151165+08:00 [WARN] Unable to forbid exclusive full screen
2024-09-21T19:08:06.715510937+08:00 [ERROR] unknown variant `true`, expected one of `none`, `prefer_line`, `editor_width`, `preferred_line_length`, `bounded`
2024-09-21T19:08:06.718347423+08:00 [INFO] Initializing default prettier with plugins {}
2024-09-21T19:08:06.733240109+08:00 [ERROR] unknown variant `true`, expected one of `none`, `prefer_line`, `editor_width`, `preferred_line_length`, `bounded`
2024-09-21T19:08:06.735866304+08:00 [INFO] Initializing default prettier with plugins {}
2024-09-21T19:08:06.803057659+08:00 [INFO] Opening main db
2024-09-21T19:08:06.887668136+08:00 [WARN] request completed with error: failed to connect to the server
2024-09-21T19:08:06.887862346+08:00 [WARN] request completed with error: failed to connect to the server
2024-09-21T19:08:06.941457292+08:00 [INFO] Initializing default prettier with plugins {}
2024-09-21T19:08:06.942954283+08:00 [WARN] request completed with error: failed to connect to the server
2024-09-21T19:08:14.221894146+08:00 [WARN] request completed with error: request or operation took longer than the configured timeout time
2024-09-21T19:08:14.222315122+08:00 [ERROR] error downloading copilot release

Caused by:
    0: request or operation took longer than the configured timeout time
    1: [28] Timeout was reached
2024-09-21T19:08:17.202883446+08:00 [INFO] Enabling color space support
2024-09-21T19:08:17.234306834+08:00 [INFO] Adapter: "Intel(R) HD Graphics 5500 (BDW GT2)"
2024-09-21T19:08:17.234926464+08:00 [INFO] No ray tracing extensions are supported
2024-09-21T19:08:17.238554903+08:00 [INFO] Using surface present mode MAILBOX
2024-09-21T19:08:17.252170007+08:00 [WARN] Unable to forbid exclusive full screen
2024-09-21T19:08:17.253261547+08:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-09-21T19:08:17.253393031+08:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-09-21T19:08:17.253482605+08:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: PreMultiplied }
2024-09-21T19:08:17.266695402+08:00 [INFO] Using surface present mode MAILBOX
2024-09-21T19:08:17.267968658+08:00 [WARN] Unable to forbid exclusive full screen
2024-09-21T19:08:17.268320828+08:00 [INFO] Initializing Blade pipelines for surface SurfaceInfo { format: Bgra8UnormSrgb, alpha: Ignored }
2024-09-21T19:08:17.312226457+08:00 [INFO] Using surface present mode MAILBOX
2024-09-21T19:08:17.320767426+08:00 [WARN] Unable to forbid exclusive full screen
2024-09-21T19:08:17.321055051+08:00 [INFO] Using surface present mode MAILBOX
2024-09-21T19:08:17.321752616+08:00 [WARN] Unable to forbid exclusive full screen
2024-09-21T19:08:20.070142495+08:00 [INFO] Using surface present mode MAILBOX
2024-09-21T19:08:20.091575707+08:00 [WARN] Unable to forbid exclusive full screen

apricotbucket28 commented 1 week ago

The issue here is that Mutter (Gnome's compositor) doesn't support the xdg-decoration protocol, and Zed does not try to draw its own decorations in this case. I wonder if the decorations used for the main window could be reused in the prompt library.

P.S: You should be able to close the window via the task bar or with Alt + F4. You should also be able to move it via some shortcuts.