MINGW-packages icon indicating copy to clipboard operation
MINGW-packages copied to clipboard

[new package] zed

Open ognevny opened this issue 1 year ago • 30 comments

~~currently fails to build. see https://github.com/zed-industries/zed/issues/7847~~

ognevny avatar Feb 15 '24 16:02 ognevny

The Windows support issue in upstream is not fixed. We should wait for proper upstream support.

Biswa96 avatar Feb 15 '24 16:02 Biswa96

Not sure if it's actionable at this point: there's no support for Windows (yet) in Zed hence mingw failures are not something we're ready to consider too.

ognevny avatar Feb 15 '24 16:02 ognevny

I'll make it draft. maybe they will reconsider it in future...

ognevny avatar Feb 15 '24 16:02 ognevny

I found a workaround for a new build fail in AUR. will try later

ognevny avatar Mar 15 '24 05:03 ognevny

I don't understand this failure

error: failed to get `tree-sitter-yaml` as a dependency of package `languages v0.1.0 (C:\_\B\src\zed-0.126.2\crates\languages)`
  Caused by:
    failed to load source for dependency `tree-sitter-yaml`
  Caused by:
    Unable to update https://github.com/zed-industries/tree-sitter-yaml?rev=f545a41f57502e1b5ddf2a6668896c1b0620f930#f545a41f
  Caused by:
    failed to update submodule `yaml-test-suite`
  Caused by:
    failed to fetch submodule `yaml-test-suite` from https://github.com/yaml/yaml-test-suite
  Caused by:
    failed to authenticate when downloading repository
    * attempted to find username/password via git's `credential.helper` support, but failed
    if the git CLI succeeds then `net.git-fetch-with-cli` may help here
    https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
  Caused by:
    failed to acquire username/password from local configuration

ognevny avatar Mar 15 '24 16:03 ognevny

successful local build 🎉. I'll download it from artifact

ognevny avatar Mar 15 '24 17:03 ognevny

Try adding git in makedepends.

CI still fails :(

ognevny avatar Mar 15 '24 17:03 ognevny

Try adding git in makedepends.

CI still fails :(

https://github.com/yaml/yaml-test-suite returns 404...

edit: https://github.com/zed-industries/zed/issues/9411

ognevny avatar Mar 15 '24 18:03 ognevny

I guess CI is stuck on Git authentication dialog. Overall git should be unnecessary as Cargo does use libgit2 (to be replaced with gitoxide in the future). Maybe there are awkward entries in git files or somebody force rebased the repo and that commit is no longer there.

EDIT: Ah, we've got a race condition and you have already found the reason.

mati865 avatar Mar 15 '24 18:03 mati865

I guess CI is stuck on Git authentication dialog. Overall git should be unnecessary as Cargo does use libgit2 (to be replaced with gitoxide in the future). Maybe there are awkward entries in git files or somebody force rebased the repo and that commit is no longer there.

I've already found that one dependncy fetchies the git repository that doesn't exist now. when using git executable it gets stuck at it. I guess that I have this repo fetched locally in the past

upd.: back online

ognevny avatar Mar 15 '24 18:03 ognevny

the same issue with thin lto for non-clang environments

ognevny avatar Mar 16 '24 04:03 ognevny

non-clang envs are failing even with disabled lto. is there a way to enforce clang+lld for them? upd.: I've found a solution

ognevny avatar Mar 16 '24 09:03 ognevny

❯ zed
[2024-03-16T12:48:13+03:00 ERROR fs] watch path does not exist: C:\Users\maksa\AppData\Roaming\Zed\keymap.json
[2024-03-16T12:48:13+03:00 ERROR fs] watch path does not exist: C:\Users\maksa\AppData\Roaming\Zed\settings.json
[2024-03-16T12:48:13+03:00 ERROR util] crates\settings\src\settings_file.rs:76: EOF while parsing a value at line 1 column 0
[2024-03-16T12:48:13+03:00 ERROR fs] watch path does not exist: C:\Users\maksa\AppData\Roaming\Zed\extensions\installed
[2024-03-16T12:48:13+03:00 ERROR util] crates\extension\src/extension_store.rs:266: Системе не удается найти указанный путь. (os error 3)
[2024-03-16T12:48:13+03:00 ERROR util] crates\zed\src/zed.rs:619: EOF while parsing a value at line 1 column 0
[2024-03-16T12:48:13+03:00 ERROR util] crates\zed\src/main.rs:679: Системе не удается найти указанный путь. (os error 3)
[2024-03-16T12:48:15+03:00 ERROR fs] watch path does not exist: C:\Users\maksa\AppData\Roaming\Zed\tasks.json
fish: Job 1, 'zed' terminated by signal SIGSEGV (Address boundary error)

ognevny avatar Mar 16 '24 09:03 ognevny

a new issue with v0.127.3: https://github.com/zed-industries/zed/issues/9757

ognevny avatar Mar 24 '24 12:03 ognevny

patch sent upstream: https://github.com/zed-industries/zed/pull/9815, but after applying it binary segfaults

ognevny avatar Mar 26 '24 16:03 ognevny

FYI all non-macOS builds of Zed should be considered WIP alpha builds, rather than anything stable or even functional :)

We'll let folks know when we're ready to properly back Windows development.

mikayla-maki avatar Mar 26 '24 17:03 mikayla-maki

FYI all non-macOS builds of Zed should be considered WIP alpha builds, rather than anything stable or even functional :)

We'll let folks know when we're ready to properly support Windows development.

ok, thanks!

ognevny avatar Mar 26 '24 17:03 ognevny

patch sent upstream: zed-industries/zed#9815, but after applying it binary segfaults

I guess it's not the rust part?

Kreijstal avatar Mar 26 '24 19:03 Kreijstal

I guess it's not the rust part?

I don't know

ognevny avatar Mar 27 '24 03:03 ognevny

switched to git HEAD so the fixes will be tested earlier

ognevny avatar Mar 27 '24 10:03 ognevny

Interesting, it did work for me grafik I got some error messages tho

[2024-03-27T17:24:41+01:00 ERROR util] crates\settings\src\settings_file.rs:76: EOF while parsing a value at line 1 column 0
[2024-03-27T17:24:41+01:00 ERROR util] crates\settings\src\keymap_file.rs:89: invalid binding value for keystroke escape, context Some("ChatPanel > MessageEditor")

Caused by:
    no action type registered for chat_panel::CloseReplyPreview
[2024-03-27T17:24:41+01:00 ERROR util] crates\zed\src\zed.rs:629: EOF while parsing a value at line 1 column 0
[2024-03-27T17:24:41+01:00 ERROR util] crates\zed\src/main.rs:720: Das System kann den angegebenen Pfad nicht finden. (os error 3)
[2024-03-27T17:24:42+01:00 ERROR util] crates\workspace\src/workspace.rs:912: Error in last_window, select_row_bound expected single row result but found none for: SELECT
  display,
  window_state,
  window_x,
  window_y,
  window_width,
  window_height,
  fullscreen
FROM
  workspaces
WHERE
  workspace_location IS NOT NULL
ORDER BY
  timestamp DESC
LIMIT
  1
[2024-03-27T17:24:42+01:00 ERROR util] crates\zed\src/main.rs:1032: Zugriff verweigert (os error 5)
[2024-03-27T17:24:50+01:00 ERROR util] crates\welcome\src/welcome.rs:136: not yet implemented
[2024-03-27T17:25:20+01:00 ERROR util] crates\copilot_ui\src\copilot_completion_provider.rs:207: copilot was not started because of an error: failed to iterate over archive

Probably because of not logging in? But cool project

Kreijstal avatar Mar 27 '24 16:03 Kreijstal

Interesting, it did work for me grafik I got some error messages tho

[2024-03-27T17:24:41+01:00 ERROR util] crates\settings\src\settings_file.rs:76: EOF while parsing a value at line 1 column 0
[2024-03-27T17:24:41+01:00 ERROR util] crates\settings\src\keymap_file.rs:89: invalid binding value for keystroke escape, context Some("ChatPanel > MessageEditor")

Caused by:
    no action type registered for chat_panel::CloseReplyPreview
[2024-03-27T17:24:41+01:00 ERROR util] crates\zed\src\zed.rs:629: EOF while parsing a value at line 1 column 0
[2024-03-27T17:24:41+01:00 ERROR util] crates\zed\src/main.rs:720: Das System kann den angegebenen Pfad nicht finden. (os error 3)
[2024-03-27T17:24:42+01:00 ERROR util] crates\workspace\src/workspace.rs:912: Error in last_window, select_row_bound expected single row result but found none for: SELECT
  display,
  window_state,
  window_x,
  window_y,
  window_width,
  window_height,
  fullscreen
FROM
  workspaces
WHERE
  workspace_location IS NOT NULL
ORDER BY
  timestamp DESC
LIMIT
  1
[2024-03-27T17:24:42+01:00 ERROR util] crates\zed\src/main.rs:1032: Zugriff verweigert (os error 5)
[2024-03-27T17:24:50+01:00 ERROR util] crates\welcome\src/welcome.rs:136: not yet implemented
[2024-03-27T17:25:20+01:00 ERROR util] crates\copilot_ui\src\copilot_completion_provider.rs:207: copilot was not started because of an error: failed to iterate over archive

Probably because of not logging in? But cool project

wow! I also had this error, but the binary segfault, maybe because I have locally set RUSTFLAGS="-C target-cpu=native". I'll test it tomorrow

ognevny avatar Mar 27 '24 17:03 ognevny

It segfaults on CLANG64, but on UCRT64 not

ognevny avatar Mar 28 '24 03:03 ognevny

currently commented cargo vendor due to https://github.com/zed-industries/zed/issues/10460

upd.: fixed

ognevny avatar Apr 12 '24 05:04 ognevny