Alfred-Colors-workflow icon indicating copy to clipboard operation
Alfred-Colors-workflow copied to clipboard

Is this still working?

Open fredlemieux opened this issue 2 years ago • 8 comments

Tried this out on Mac M1, with Alfred v4 and nothing happens when I use it.... Kapture 2022-03-01 at 22 20 24

fredlemieux avatar Mar 01 '22 22:03 fredlemieux

Can I see the debug logs? This problem is most likely related to the PATH.

g1eny0ung avatar Mar 02 '22 05:03 g1eny0ung

See also #2.

g1eny0ung avatar Mar 07 '22 14:03 g1eny0ung

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 avatar Aug 17 '23 04:08 samplereality

@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.

image

g1eny0ung avatar Aug 17 '23 06:08 g1eny0ung

I just checked, and chunky_png is there:

image

samplereality avatar Aug 17 '23 12:08 samplereality

Perhaps I know why. 🤔 The problem may be related to $GEM_PATH. I get these paths from my Mac:

image

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

g1eny0ung avatar Aug 17 '23 15:08 g1eny0ung

No, that didn't work either. Still not sure what's up. But thanks for trying!

samplereality avatar Aug 21 '23 20:08 samplereality

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. ❤️

g1eny0ung avatar Aug 22 '23 02:08 g1eny0ung