capistrano-slack icon indicating copy to clipboard operation
capistrano-slack copied to clipboard

uninitialized constant Capistrano::Slack::Faraday

Open seanlinsley opened this issue 9 years ago • 13 comments

While upgrading our application to Rails 4 we ran into this error:

capistrano-slack-35112edc71d3/lib/capistrano/slack.rb:73:in `rescue in block (3 levels) in extended': uninitialized constant Capistrano::Slack::Faraday (NameError)
  from capistrano-slack-35112edc71d3/lib/capistrano/slack.rb:66:in `block (3 levels) in extended'
  from capistrano-2.15.5/lib/capistrano/configuration/execution.rb:138:in `instance_eval'
  from capistrano-2.15.5/lib/capistrano/configuration/execution.rb:138:in `invoke_task_directly'

Other gems in our application rely on Faraday, but capistrano-slack doesn't, so it's understandable that this error would occur since Faraday hasn't actually been loaded.

seanlinsley avatar Oct 22 '14 16:10 seanlinsley

Don't know if it's the same issue, but 1.3.2 doesn't seem to post to our Slack room, while 1.3.1 does.

seanlinsley avatar Oct 22 '14 16:10 seanlinsley

thanks for the report will take a look. for now lock to 1.3.1

j-mcnally avatar Oct 22 '14 17:10 j-mcnally

I'm getting this error as well with v1.3.2.

jstayton avatar Oct 31 '14 20:10 jstayton

Getting same error

gakshay avatar Nov 05 '14 12:11 gakshay

Can't lock to 1.3.1: Could not find gem 'capistrano-slack (= 1.3.1) ruby' in https://github.com/j-mcnally/capistrano-slack.git (at master). Source contains 'capistrano-slack' at: 1.3.2

wagnerpereira avatar Nov 05 '14 19:11 wagnerpereira

I got same problem today and this fix works for me:

 gem 'capistrano-slack', '1.3.1'

Good luck

rusllonrails avatar Nov 10 '14 09:11 rusllonrails

I have the same problem :-(

ant-workaholic avatar Nov 27 '14 13:11 ant-workaholic

@ant-workaholic

gem 'capistrano-slack', '1.3.1'

and then bundle doesn't fix it?

rusllonrails avatar Nov 28 '14 13:11 rusllonrails

The problem is here https://github.com/j-mcnally/capistrano-slack/blob/d806534fe96ab7f835dd007389d05a17e373024b/lib/capistrano/slack.rb#L73

ebeigarts avatar Dec 01 '14 15:12 ebeigarts

@ant-workaholic For me it wasn't enough to pin to 1.3.1, I had to delete 1.3.2 before I could post to slack again.

lefthand avatar May 20 '15 19:05 lefthand

what capistrano version do you have?

WouterSchoofs avatar Jul 21 '15 12:07 WouterSchoofs

I'm running capistrano 2.15.5

lefthand avatar Jul 27 '15 16:07 lefthand

Facing the same issue with capistrano 2.15.5 and capistrano-slack 1.3.1 & 1.3.2

rdsoze avatar Aug 12 '15 13:08 rdsoze