dirname: can't convert nil to string problem

809 views
Skip to first unread message

Eumir Gaspar

unread,
Oct 28, 2011, 5:49:10 AM10/28/11
to cu...@googlegroups.com
I'm not sure if this is in cucumber really, but just in case some of you guys have a clue on how to fix this. Basically, my tests suddenly stopped working and when I checked, it showed this error:

C:/Vendor/Ruby187/lib/ruby/gems/1.8/gems/cucumber-rails-1.0.0/lib/cucumber/rails3.rb:3 in 'dirname': can't convert nil into String (TypeError)

Yes, I first rolled my eyes and just cursed Windows but I tried it on my Mac and I got the same:

/Users/eumir/.rvm/gems/ruby-1.8.7-p174@mygemset/gems/cucumber-rails-0.5.2/lib/cucumber/rails3.rb:3:in `dirname': can't convert nil into String (TypeError)

Weird though, its in different cucumber rails versions, I googled and the first result shows it is bunder's fault(although I can't decipher what the gist is about...maybe just copy pasted stuff?) and weirdest of all, Cucumber IS running and I run into this problem while running rspec spec.

The 3 clues below point out that it's not cucumber's fault, but why does it blame cucumber? IF any of you can shed a clue as to why this is happening, you'll be saving me from a few more hours of pain.

--
Eumir Gaspar
Ruby on Rails Developer/Rails UI Specialist

aslak hellesoy

unread,
Oct 28, 2011, 6:15:43 AM10/28/11
to cu...@googlegroups.com
On Fri, Oct 28, 2011 at 10:49 AM, Eumir Gaspar <imacate...@gmail.com> wrote:
> I'm not sure if this is in cucumber really, but just in case some of you
> guys have a clue on how to fix this. Basically, my tests suddenly stopped
> working and when I checked, it showed this error:
> C:/Vendor/Ruby187/lib/ruby/gems/1.8/gems/cucumber-rails-1.0.0/lib/cucumber/rails3.rb:3
> in 'dirname': can't convert nil into String (TypeError)

I believe this bug is fixed in cucumber-rails 1.1.1. Please upgrade.

Aslak

> Yes, I first rolled my eyes and just cursed Windows but I tried it on my Mac
> and I got the same:
> /Users/eumir/.rvm/gems/ruby-1.8.7-p174@mygemset/gems/cucumber-rails-0.5.2/lib/cucumber/rails3.rb:3:in
> `dirname': can't convert nil into String (TypeError)
>
> Weird though, its in different cucumber rails versions, I googled and the
> first result shows it is bunder's fault(although I can't decipher what the
> gist is about...maybe just copy pasted stuff?) and weirdest of all, Cucumber
> IS running and I run into this problem while running rspec spec.
> The 3 clues below point out that it's not cucumber's fault, but why does it
> blame cucumber? IF any of you can shed a clue as to why this is happening,
> you'll be saving me from a few more hours of pain.
> --
> Eumir Gaspar
> Ruby on Rails Developer/Rails UI Specialist
> github: http://github.com/corroded
> tech blog: http://aelogica.com/author/eumir/
> stackoverflow: http://stackoverflow.com/users/334545/corroded
> stackoverflow resume: http://careers.stackoverflow.com/corroded
> working with
> rails: http://www.workingwithrails.com/person/19554-eumir-gaspar
> linked in: http://ph.linkedin.com/pub/eumir-gaspar/7/969/98a
> odesk: http://www.odesk.com/users/~~8951a3b425021bda
>

> --
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To post to this group, send email to cu...@googlegroups.com.
> To unsubscribe from this group, send email to
> cukes+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/cukes?hl=en.
>

Kimball Bighorse

unread,
Apr 27, 2012, 11:54:03 PM4/27/12
to cu...@googlegroups.com
I can't get Bundler to install anything later than 1.0.2. I can gem install, but bundler hangs.

Kimball Bighorse

unread,
Apr 28, 2012, 12:47:07 AM4/28/12
to cu...@googlegroups.com
Bundler refused to install anything newer than 1.0.2, just hangs. Guessing it's a problem with rubygems perhaps?
Reply all
Reply to author
Forward
0 new messages