Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

undefined method `require_relative' for main:Object (NoMethodError) #2

Open
wayne-o opened this issue Jul 8, 2013 · 2 comments
Open

Comments

@wayne-o
Copy link

wayne-o commented Jul 8, 2013

Pulled the source, made sure that clabash etc was all installed and basically followed the steps outlined, I only get the following output:

Waynes-MacBook:field-service-example wayne$ bundle exec calabash-android run FieldService.Android/FieldService.Android.apk -p android features/login.feature
undefined method require_relative' for main:Object (NoMethodError) /Users/wayne/Development/Git/field-service-example/features/support/entry_points.rb:1 /Library/Ruby/Gems/1.8/gems/cucumber-1.3.1/bin/../lib/cucumber/rb_support/rb_language.rb:122:inload'
/Library/Ruby/Gems/1.8/gems/cucumber-1.3.1/bin/../lib/cucumber/rb_support/rb_language.rb:122:in load_code_file' /Library/Ruby/Gems/1.8/gems/cucumber-1.3.1/bin/../lib/cucumber/runtime/support_code.rb:180:inload_file'
/Library/Ruby/Gems/1.8/gems/cucumber-1.3.1/bin/../lib/cucumber/runtime/support_code.rb:83:in load_files!' /Library/Ruby/Gems/1.8/gems/cucumber-1.3.1/bin/../lib/cucumber/runtime/support_code.rb:82:ineach'
/Library/Ruby/Gems/1.8/gems/cucumber-1.3.1/bin/../lib/cucumber/runtime/support_code.rb:82:in load_files!' /Library/Ruby/Gems/1.8/gems/cucumber-1.3.1/bin/../lib/cucumber/runtime.rb:183:inload_step_definitions'
/Library/Ruby/Gems/1.8/gems/cucumber-1.3.1/bin/../lib/cucumber/runtime.rb:42:in run!' /Library/Ruby/Gems/1.8/gems/cucumber-1.3.1/bin/../lib/cucumber/cli/main.rb:47:inexecute!'
/Library/Ruby/Gems/1.8/gems/cucumber-1.3.1/bin/cucumber:13
/usr/bin/cucumber:19:in `load'
/usr/bin/cucumber:19

@krukow
Copy link
Contributor

krukow commented Jul 11, 2013

Hey wayne.
I'd recommend you update to Ruby 1.9.3+ for this example. Could you try that?

@airpaulg
Copy link

I had the same problem and your solution works like a charm. Thanks!

krukow pushed a commit that referenced this issue Dec 5, 2013
krukow pushed a commit that referenced this issue Dec 5, 2013
Added Bing Maps installer link to README - required for the WinRT project
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants