Re:Zed on Linux Is Here
by winternewt on Wednesday July 10, 2024 @04:19PM
(#40931092)
I just tried it on NixOS 24.05. It starts, but nothing happens when I click "Open a project" or Ctrl+O. It's as if it lacks the ability to show a file selection dialog.
Could this be your issue? https://zed.dev/docs/linux#opening-files-does-not-work
Re:Zed on Linux Is Here
by winternewt on Wednesday July 10, 2024 @05:23PM
(#40931612)
Apparently yes. I tried installing xdg-desktop-portal-gtk at first, but that didn't work. xdg-desktop-portal-kde did.
But now I get issues that are likely due to problems with downloading language server binaries and running them, as the parent comment indicated. When I open a Rust project it says "Language server rust-analyzer-2024-07-08 (id 1) status update: Failed to load workspaces."
Also, it dumps core every time I quit. :)
This is almost definitely the problem they're facing although I think that description is a little bit odd. It's missing the operative word: "portals". It's the XDG desktop portals service that is involved here. What you need to ensure is that you have a desktop portal provider set up that provides org.freedesktop.impl.portal.FileChooser. What's kind of neat about the way xdg-desktop-portals is architected, you can pick and choose different implementations for different services. This is especially useful outside of desktop environments where you might need to use e.g. the wlr provider for screenshots and screen capture, but you still want e.g. KDE file dialogs.
It's unfortunate that the documentation for XDG desktop portals (and generally, setting up a complete desktop setup when using compositors like labwc or Sway) is relatively poorly documented. I have my feelings about the pervasiveness of DBus services everywhere but overall I like desktop portals.
NixOS 24.05 contains an older version of zed, as feature updates are generally not backported to stable NixOS releases. Try running the package from nixos-unstable instead.
Re:Zed on Linux Is Here
by winternewt on Wednesday July 10, 2024 @05:40PM
(#40931794)
Well that got rid of the core dump each time I quit, and it fixed the language server issues. So together with the portals configuration it seems to be working as well as it can.
[OP] yeah I'm using nixos-unstable too. I should have mentioned that
There's also this, has AUR-style *-git packages: https://www.nyx.chaotic.cx
NixOS is listed here: https://zed.dev/docs/linux
For me, works as expected.