slack-ruby / slack-ruby-client

A Ruby and command-line client for the Slack Web, Real Time Messaging and Event APIs.
MIT License
1.19k stars 214 forks source link

`require': cannot load such file -- slack-ruby-client (LoadError) #439

Closed waaleedkhan closed 1 year ago

waaleedkhan commented 1 year ago

I have slack-ruby-client added in my gem file. But I am getting this error

[✔] 🚀 <internal:/opt/homebrew/Cellar/ruby/3.2.0/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:inrequire': cannot load such file -- slack-ruby-client (LoadError) from <internal:/opt/homebrew/Cellar/ruby/3.2.0/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in require' from /Users/waleedkhan/Developer/now-ios/fastlane/actions/upload_failure_diff_to_slack.rb:2:in<top (required)>' from <internal:/opt/homebrew/Cellar/ruby/3.2.0/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in require' from <internal:/opt/homebrew/Cellar/ruby/3.2.0/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:inrequire' from /opt/homebrew/Cellar/fastlane/2.211.0_1/libexec/gems/fastlane-2.211.0/fastlane/lib/fastlane/actions/actions_helper.rb:130:in block in load_external_actions' from /opt/homebrew/Cellar/fastlane/2.211.0_1/libexec/gems/fastlane-2.211.0/fastlane/lib/fastlane/actions/actions_helper.rb:128:ineach' from /opt/homebrew/Cellar/fastlane/2.211.0_1/libexec/gems/fastlane-2.211.0/fastlane/lib/fastlane/actions/actions_helper.rb:128:in load_external_actions' from /opt/homebrew/Cellar/fastlane/2.211.0_1/libexec/gems/fastlane-2.211.0/fastlane/lib/fastlane.rb:43:inload_actions' from /opt/homebrew/Cellar/fastlane/2.211.0_1/libexec/gems/fastlane-2.211.0/fastlane/lib/fastlane/commands_generator.rb:34:in start' from /opt/homebrew/Cellar/fastlane/2.211.0_1/libexec/gems/fastlane-2.211.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:intake_off' from /opt/homebrew/Cellar/fastlane/2.211.0_1/libexec/gems/fastlane-2.211.0/bin/fastlane:23:in <top (required)>' from /opt/homebrew/Cellar/fastlane/2.211.0_1/libexec/bin/fastlane:25:inload' from /opt/homebrew/Cellar/fastlane/2.211.0_1/libexec/bin/fastlane:25:in <main>'

dblock commented 1 year ago

Did you run bundle install and are you running bundle exec ...? Post your project for a repro.

dblock commented 1 year ago

I suppose this fixed itself.