blackmann / homebrew-brew

0 stars 0 forks source link

Error: blackmann/brew/zed-theme-importer 0.121.1-pre did not build #1

Open pantheraleo-7 opened 5 months ago

pantheraleo-7 commented 5 months ago

I was trying to convert vscode's Dark high contrast theme to zed theme using the extension but wasn't successful

--- stderr Failed to run rustfmt: cannot find binary path (non-fatal, continuing) metal shader compilation failed: xcrun: error: unable to find utility "metal", not a developer tool or in PATH

warning: build failed, waiting for other jobs to finish... error: failed to compile `theme_importer v0.1.0 (/private/tmp/zed-theme-importer-20240616-58211-xcsrxa/zed-0.121.1-pre/crates/theme_importer)

==> Formula Tap: blackmann/brew Path: /opt/homebrew/Library/Taps/blackmann/homebrew-brew/Formula/zed-theme-importer.rb ==> Configuration HOMEBREW_VERSION: 4.3.5 ORIGIN: https://github.com/Homebrew/brew HEAD: 3f08c75e7b950d4340dab462f3e7f77e8093fa2b Last commit: 5 days ago Core tap JSON: 16 Jun 14:03 UTC Core cask tap JSON: 16 Jun 14:03 UTC HOMEBREW_PREFIX: /opt/homebrew HOMEBREW_CASK_OPTS: [] HOMEBREW_MAKE_JOBS: 8 Homebrew Ruby: 3.3.2 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.2/bin/ruby CPU: octa-core 64-bit arm_blizzard_avalanche Clang: 15.0.0 build 1500 Git: 2.39.3 => /Library/Developer/CommandLineTools/usr/bin/git Curl: 8.6.0 => /usr/bin/curl macOS: 14.5-arm64 CLT: 15.3.0.0.1.1708646388 Xcode: N/A Rosetta 2: false ==> ENV HOMEBREW_CC: clang HOMEBREW_CXX: clang++ MAKEFLAGS: -j8 CMAKE_PREFIX_PATH: /opt/homebrew CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/14 HOMEBREW_GIT: git HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk ACLOCAL_PATH: /opt/homebrew/share/aclocal PATH: /opt/homebrew/Library/Homebrew/shims/mac/super:/opt/homebrew/opt/rust/bin:/usr/bin:/bin:/usr/sbin:/sbin

Error: blackmann/brew/zed-theme-importer 0.121.1-pre did not build

Logs: https://gist.github.com/pantheraleo-7/5cae60c2bfcbc80020d7827f36112206

AchilleBailly commented 4 months ago

Hello, I had the exact same error and I was not able to fix it.

garikbesson commented 3 weeks ago

I faced the same error

riesinger commented 1 week ago

I worked around this by not installing theme_importer via brew, but instead building it from the main zed repo, following those steps

gh repo clone zed-industries/zed
cd zed
cargo install --path theme_importer

The version of Zed installed via this formula needs updating, it's very old.

To use this custom build of theme_importer, I needed to set the theme-to-zed.theme_importer setting in the theme-to-zed extension to the path of the theme_importer binary (which theme_importer)