Pickle and Cygwin

15 views
Skip to first unread message

Ian White

unread,
Dec 1, 2009, 12:18:35 PM12/1/09
to pickle
(reposting this in case others can help/curse pickle)

Peter wrote:

I hesitate to email but I don't know any other conduit to resolving a
potential pickle problem with cucumber on Cygwin:

/usr/bin/ruby.exe -I "/usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/
lib:lib" "/usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/cucumber" --
color --tags ~@wip --strict --format pretty
undefined local variable or method `capture_model' for main:Object
(NameError)
./features/step_definitions/pickle_steps.rb:4
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`polyglot_original_require'
/usr/lib/ruby/gems/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:in
`require'
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/
dependencies.rb:158:in `require'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/
rb_support/rb_language.rb:124:in `load_code_file'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/
step_mother.rb:84:in `load_code_file'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/
step_mother.rb:76:in `load_code_files'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/
step_mother.rb:75:in `each'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/
step_mother.rb:75:in `load_code_files'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/cli/
main.rb:50:in `execute!'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/cli/
main.rb:24:in `execute'
/usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/cucumber:8
./features/support/hooks.rb:16: You have a nil object when you didn't
expect it! (NoMethodError)
The error occurred while evaluating nil.exit
from /usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/cucumber:
15
rake aborted!
Command failed with status (1): [/usr/bin/ruby.exe -I "/usr/lib/ruby/
gems/1...]

(See full trace by running task with --trace)


Works fine with same project on Mac but give this error on Cygwin -
Windows XP

Any help would be apprecitated,

Peter Ritchie

Ian White

unread,
Dec 1, 2009, 12:19:00 PM12/1/09
to pickle-...@googlegroups.com
oh noes, I don't have any experience of cygwin unfortunately. But
I'll try and make some headway. Could you file a bug on the
lighthouse trackerhttp://ianwhite.lighthouseapp.com/projects/25941-pickle/overview
so it doesn't get forgotten?

Out of interest, any other picklers out there running on Cygwin?

Cheers,
Ian


Ian White

unread,
Dec 1, 2009, 12:19:30 PM12/1/09
to pickle-...@googlegroups.com
Peter wrote:

Hi,

I hope I am not insulting your intelligence but given the difficulty
potential complications of the possible routes to installing Cygwin, I
attach a movie that we used to check that out installation matched
someone else's. It would give you a chance of knowing what out
environment looked like.

http://remi.org/2009/04/15/ruby-on-windows-cygwin-git-rvxt-and-more.html

Many thanks

Peter Ritchie



nruth

unread,
Dec 2, 2009, 10:18:10 AM12/2/09
to pickle
I used this briefly in an internship as part of a build system. Most
problems we had were down to windows using \ rather than / in its
paths.

Pickle has these hard coded in its require statements. I don't know if
Ruby is smart enough to fix these natively, but I think File /
FileUtils class has some bits that will help if it doesn't.

That said wouldn't the requires be blowing up if that were the issue?
Reply all
Reply to author
Forward
0 new messages