Alfred-Colors-workflow
Alfred-Colors-workflow copied to clipboard
Is this still working?
Tried this out on Mac M1, with Alfred v4 and nothing happens when I use it....
Can I see the debug logs? This problem is most likely related to the PATH
.
See also #2.
I'm also having this problem. This is the error in the debug log:
Code 1: <internal:/opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- chunky_png (LoadError) from <internal:/opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require' from colors.rb:4:in `<main>'
And here is the gem environment
:
RubyGems Environment:
- RUBYGEMS VERSION: 3.4.10
- RUBY VERSION: 3.2.2 (2023-03-30 patchlevel 53) [arm64-darwin22]
- INSTALLATION DIRECTORY: /Users/masample/.gem/ruby/3.2.2
- USER INSTALLATION DIRECTORY: /Users/masample/.gem/ruby/3.2.0
- RUBY EXECUTABLE: /opt/homebrew/opt/ruby/bin/ruby
- GIT EXECUTABLE: /usr/bin/git
- EXECUTABLE DIRECTORY: /Users/masample/.gem/ruby/3.2.2/bin
- SPEC CACHE DIRECTORY: /Users/masample/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /opt/homebrew/Cellar/ruby/3.2.2_1/etc
- RUBYGEMS PLATFORMS:
- ruby
- arm64-darwin-22
- GEM PATHS:
- /Users/masample/.gem/ruby/3.2.2
- /Users/masample/.rubies/ruby-3.2.2/lib/ruby/gems/3.2.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => true
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/masample/.gem/ruby/3.2.2/bin
- /opt/homebrew/opt/ruby/bin
- /usr/local/opt/ruby/bin
- /Users/masample/.gem/ruby/3.2.2/bin
- /Users/masample/.rubies/ruby-3.2.2/lib/ruby/gems/3.2.0/bin
- /Users/masample/.rubies/ruby-3.2.2/bin
- /usr/local/opt/ruby/bin
- /usr/local/lib/ruby/gems/3.1.0/bin
- /Users/masample/.rbenv/shims
- /opt/homebrew/bin
- /opt/homebrew/sbin
- /usr/local/bin
- /System/Cryptexes/App/usr/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin
- /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin
- /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
I think it might be a PATH problem but I can't figure it out for the life of me! (On an M2)
@samplereality Could you check this location (- INSTALLATION DIRECTORY: /Users/masample/.gem/ruby/3.2.2
) and see if chunky_png
is installed? Gem will install gems there. Indeed, this is usually a path problem.
I just checked, and chunky_png is there:
Perhaps I know why. 🤔 The problem may be related to $GEM_PATH
. I get these paths from my Mac:
Could you try appending /opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/gems/3.2.0
to your gem paths and see if it works:
export GEM_PATH=$(gem env path):/opt/homebrew/Cellar/ruby/3.2.2_1/lib/ruby/gems/3.2.0
No, that didn't work either. Still not sure what's up. But thanks for trying!
No, that didn't work either. Still not sure what's up. But thanks for trying!
You're welcome. However, I still believe that the issue is likely related to the path. I hope you're able to resolve it and share the solution here. ❤️