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
39.53k stars 2.06k forks source link

Windows on ARM: Failed to compile Zed on Windows ARM running on a Parallels VM #13500

Open stribog-hub opened 1 week ago

stribog-hub commented 1 week ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Install Windows 11 guest VM on a macOS 14.5 host using Parallels 19 Installed Rust 1.79.0, LLVM 18.1 and VulkanSDK. Compiled successfully but when running got this errors:

    Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.01s
     Running `target\debug\zed.exe`
[2024-06-25T12:27:03+03:00 ERROR util] crates\fs\src/fs.rs:537: Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
[2024-06-25T12:27:03+03:00 ERROR util] crates\fs\src/fs.rs:537: Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
[2024-06-25T12:27:05+03:00 ERROR util] crates\fs\src/fs.rs:537: Error { kind: Generic("Input watch path is neither a file nor a directory."), paths: [] }
[2024-06-25T12:27:05+03:00 ERROR blade_graphics::hal::init] Missing Vulkan entry points: LibraryLoadFailure(LoadLibraryExW { source: Os { code: 193, kind: Uncategorized, message: "%1 is not a valid Win32 application." } })
Thread "main" panicked with "called `Result::unwrap()` on an `Err` value: VulkanLoadingError(LibraryLoadFailure(LoadLibraryExW { source: Os { code: 193, kind: Uncategorized, message: \"%1 is not a valid Win32 application.\" } }))" at crates\gpui\src\platform\windows\window.rs:977:14
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: git_smart_subtransport_git
  10: git_smart_subtransport_git
  11: <unknown>
  12: <unknown>
  13: <unknown>
  14: <unknown>
  15: LoadMenuW
  16: CopyIcon
  17: SystemParametersInfoW
  18: KiUserCallbackDispatcher
  19: NtUserCreateWindowEx
  20: Ordinal2536
  21: DrawStateW
  22: CreateWindowExW
  23: <unknown>
  24: <unknown>
  25: <unknown>
  26: <unknown>
  27: <unknown>
  28: <unknown>
  29: <unknown>
  30: <unknown>
  31: <unknown>
  32: <unknown>
  33: <unknown>
  34: <unknown>
  35: <unknown>
  36: <unknown>
  37: <unknown>
  38: CreateDispatcherQueueController
  39: CoreUIOpenExisting
  40: CoreUIOpenExisting
  41: CoreUIOpenExisting
  42: CoreUIOpenExisting
  43: CoreUIOpenExisting
  44: CoreUIOpenExisting
  45: CoreUIOpenExisting
  46: CoreUIOpenExisting
  47: CoreUIOpenExisting
  48: CoreUIOpenExisting
  49: LoadMenuW
  50: CopyIcon
  51: SystemParametersInfoW
  52: KiUserCallbackDispatcher
  53: NtUserPeekMessage
  54: DrawStateW
  55: PeekMessageW
  56: <unknown>
  57: <unknown>
  58: <unknown>
  59: <unknown>
  60: <unknown>
  61: <unknown>
  62: <unknown>
  63: <unknown>
  64: <unknown>
  65: <unknown>
  66: git_smart_subtransport_git
  67: git_smart_subtransport_git
  68: BaseThreadInitThunk
  69: RtlUserThreadStart

Environment

Device name ************************
Processor   Apple Silicon   3.20 GHz  (4 processors)
Installed RAM   8.00 GB
Device ID   ******************************************
Product ID  ***************************
System type 64-bit operating system, ARM-based processor
Pen and touch   Pen support

Edition Windows 11 Pro
Version 24H2
Installed on    ‎4/‎10/‎2024
OS build    26120.670
Experience  Windows Feature Experience Pack 1000.26100.6.0

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

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

Zed.log


bjorn3 commented 1 week ago

Did you build Zed for aarch64-pc-windows-msvc? I think the Vulkan SDK found at https://vulkan.lunarg.com/sdk/home#windows is x86_64 only. Maybe it works if you build for x86_64-pc-window-msvc and use the x86_64->arm64 translation component of Windows?