zed icon indicating copy to clipboard operation
zed copied to clipboard

OpenSUSE package installation script support

Open QazCetelic opened this issue 1 year ago • 5 comments

Check for existing issues

  • [X] Completed

Describe the feature

I've looked and the required packages from the existing script have the following names on OpenSUSE:

  • alsa-lib-devel
  • fontconfig-devel
  • vulkan-validationlayers
  • libxkbcommon-x11-devel

There is no package named wayland on OpenSUSE, but that shouldn't matter because people that do use Wayland instead of X11 obviously already have it installed.

I'm currently compiling zed and will share whether I've been able to successfully run it when it's done.

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

No response

QazCetelic avatar Feb 21 '24 19:02 QazCetelic

Update: I've been able to run it, but it's not without flaws.

Both displays disconnect (monitor receives no Displayport input) a couple seconds after the editor opens. A few seconds later, the main monitor comes back, but the second one requires disabling and enabling it to get it back.

QazCetelic avatar Feb 21 '24 19:02 QazCetelic

The display disconnect seems to be triggered by minimizing/unminimizing the window, I have been able to reproduce it 3 times. Below are the logs.

1

    Finished dev [unoptimized + debuginfo] target(s) in 7m 12s
     Running `target/debug/Zed`
[2024-02-21T20:02:49+01:00 ERROR fs] watch path does not exist: /home/user/.config/zed/settings.json
[2024-02-21T20:02:49+01:00 ERROR fs] watch path does not exist: /home/user/.config/zed/keymap.json
[2024-02-21T20:02:51+01:00 ERROR util] crates/settings/src/settings_file.rs:76: EOF while parsing a value at line 1 column 0
[2024-02-21T20:02:51+01:00 ERROR fs] watch path does not exist: /home/user/.config/zed/extensions/installed
[2024-02-21T20:02:51+01:00 ERROR util] crates/extension/src/extension_store.rs:183: No such file or directory (os error 2)
[2024-02-21T20:02:51+01:00 ERROR util] crates/zed/src/zed.rs:555: EOF while parsing a value at line 1 column 0
[2024-02-21T20:02:51+01:00 ERROR util] crates/copilot/src/copilot.rs:1014: status error 403, response: "{\"message\":\"API rate limit exceeded for 83.81.91.35. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)\",\"documentation_url\":\"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting\"}\n"
[2024-02-21T20:02:52+01:00 ERROR fs] watch path does not exist: /home/user/.config/zed/tasks.json

2

    Finished dev [unoptimized + debuginfo] target(s) in 1.03s
     Running `target/debug/Zed`
[2024-02-21T20:05:45+01:00 ERROR fs] watch path does not exist: /home/user/.config/zed/settings.json
[2024-02-21T20:05:45+01:00 ERROR fs] watch path does not exist: /home/user/.config/zed/keymap.json
[2024-02-21T20:05:46+01:00 ERROR util] crates/settings/src/settings_file.rs:76: EOF while parsing a value at line 1 column 0
[2024-02-21T20:05:46+01:00 ERROR util] crates/zed/src/zed.rs:555: EOF while parsing a value at line 1 column 0
[2024-02-21T20:05:47+01:00 ERROR util] crates/copilot/src/copilot.rs:1014: status error 403, response: "{\"message\":\"API rate limit exceeded for 83.81.91.35. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)\",\"documentation_url\":\"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting\"}\n"
[2024-02-21T20:05:47+01:00 ERROR fs] watch path does not exist: /home/user/.config/zed/tasks.json

3

    Finished dev [unoptimized + debuginfo] target(s) in 0.57s
     Running `target/debug/Zed`
[2024-02-21T20:08:48+01:00 ERROR fs] watch path does not exist: /home/user/.config/zed/settings.json
[2024-02-21T20:08:48+01:00 ERROR fs] watch path does not exist: /home/user/.config/zed/keymap.json
[2024-02-21T20:08:49+01:00 ERROR util] crates/settings/src/settings_file.rs:76: EOF while parsing a value at line 1 column 0
[2024-02-21T20:08:49+01:00 ERROR util] crates/zed/src/zed.rs:555: EOF while parsing a value at line 1 column 0
[2024-02-21T20:08:49+01:00 ERROR util] crates/copilot/src/copilot.rs:1014: status error 403, response: "{\"message\":\"API rate limit exceeded for 83.81.91.35. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)\",\"documentation_url\":\"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting\"}\n"
[2024-02-21T20:08:50+01:00 ERROR fs] watch path does not exist: /home/user/.config/zed/tasks.json

QazCetelic avatar Feb 21 '24 19:02 QazCetelic

I've moved the monitor disconnect issue to a separate issue.

QazCetelic avatar Feb 21 '24 19:02 QazCetelic

Using Nobara OS (Fedora based), I had the error: could not find system library 'alsa' required by the 'alsa-sys' crate. This got fixed by: sudo dnf install alsa-lib-devel

Screenshoot image

PonyLucky avatar Mar 29 '24 22:03 PonyLucky

OpenSUSE Thumbleweed user here, I based my build the ReadMe instruction for Linus and I can say that the IDE was built and from what I see works without an error on my computer.

I even ran the tests and all of them succeeded expect the ones that need Postgress.

Just a small note on the dependencies script, the package "vulkan-loader" doesn't exist on Thumbleweed as I couldn't find it and also based on this link we can see that the sources "vulkan-loader" only produce libvulkan1 and vulkan-devel packages: https://build.opensuse.org/projects/openSUSE:Factory/packages/vulkan-loader/repositories/standard/binaries

So maybe the line here isn't needed and I guess it produces an error for all thumbleweed users and it should actually replaced with "vulkan-devel" package. https://github.com/zed-industries/zed/blob/dccf6dae01e8872668c5b9e29babbeec8d450227/script/linux#L67

0xsimulacra avatar May 03 '24 20:05 0xsimulacra

Using Nobara OS (Fedora based), I had the error: could not find system library 'alsa' required by the 'alsa-sys' crate. This got fixed by: sudo dnf install alsa-lib-devel

Chiming in, for someone having similar issues on a Debian(-based) system: I had the exact same build error, had to apt-get install libasound2-dev to get it working.

EDIT: Scratch that, I should've used the Linux install script when working on WSL.

Encephala avatar Jun 12 '24 09:06 Encephala

Closing this. Please send PRs to add any missing build deps to the script

ConradIrwin avatar Jun 25 '24 17:06 ConradIrwin