Cucumber - pickle and Cygwin
-
Peter Ritchie
Apologies - not paying attention - above is incorrect and the correct backtrace is below:
$ cucumber --backtrace undefined local variable or method
capture_model' for main:Object (NameError)<br/> ./features/step_definitions/pickle_steps.rb:4 /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:ingem_original_require' /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:inpolyglot_original_require' /usr/lib/ruby/gems/1.8/gems/polyglot-0.2.9/lib/polyglot.rb:70:inrequire' /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:158:inrequire' /usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/rb_support/rb_language.rb:124:inload_code_file' /usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/step_mother.rb:84:inload_code_file' /usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/step_mother.rb:76:inload_code_files' /usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/step_mother.rb:75:ineach' /usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/step_mother.rb:75:inload_code_files' /usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/cli/main.rb:50:inexecute!' /usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/../lib/cucumber/cli/main.rb:24:inexecute' /usr/lib/ruby/gems/1.8/gems/cucumber-0.4.4/bin/cucumber:8 /usr/bin/cucumber:19:inload' /usr/bin/cucumber:19 ./features/support/hooks.rb:16: You have a nil object when you didn't expect it! (NoMethodError) The error occurred while evaluating nil.exit<br/>from /usr/bin/cucumber:19 -
Ian White
- Assigned user set to Ian White
-
Ian White
- State changed from new to open
I haven't got cygwin running yet (have to wait till I get home to my external drive with vmware images on it)
Looking at the error message, I can see that the code in this file:
http://github.com/ianwhite/pickle/blob/master/lib/pickle/world.rb
is not being loaded into the Kernel.
Could you do a quick debug puts in that file to determine if the file is/is not being loaded.
If it is being loaded, could you try adding the bottom three lines to your support/env.rb file, and reporting back on the results
If it is not being loaded, I wonder if we have a load order issue. Try putting the contents of support/pickle.rb into support/env.rb and report back on the results.
Cheers,
Ian -
Ian White
- State changed from open to resolved
(from [31e88769806a546a4a481dce59da700fde7753f4]) Added nil as a possible field value [#14 Cucumber - pickle and Cygwin state:resolved] http://github.com/ianwhite/pickle/commit/31e88769806a546a4a481dce59...
-
Ian White
- State changed from resolved to open
OOPS, wrong ticket number in commit message, this is not resolved
-
Ian White
- State changed from open to resolved
Peter sorted this out by starting over with Cygwin
"We started from scratch with a pure Cygwin installation, using the installer for all modules. Eventually we got it working although it needed a rebaseall"
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.