-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run queries in console since upgrade: NoMethodError #1262
Comments
Either you are not running calabash-cucumber >= 0.20, you have a custom
We recommend that you always using bundler + Gemfile so you can always know what gem versions you are using. If there is a local If you are using
We recommend rbenv. |
Thank you. $ gem list calabash-cucumber
I have aligned the contents of .irbrc to the default (although I did manually create this, I could not locate it before). The output of $ bundle exec CALABASH_IRBRC=.irbrc calabash-ios console from the directory I was previously using the console is:
And the output from the project directory is:
Due to environmental issues I am not using either rvm or rbenv, gems have been manually installed. Do you think I need to try using rbenv? Any other ideas? Thanks :) |
Typo on my part:
Apologies. |
That still gives me the same NoMethodError :( Is the .irbrc file meant to be manually created? Because that's what I had to do, it didn't exist previously. Though you sound as though you may be a bit stumped too so I will just have to keep trying. Thanks for your help. |
Try:
No. There is an |
Still the same problem, and I don't have rvm. Maybe I should try re-installing the calabash-ios gem? Can you confirm with directory the |
Same problem here. No solution so far. |
To debug this problem, copy the contents of the default .irbrc file to a local file |
I need someone who is having this problem to pair with me via tmate. |
I was having a similar issue. Here is how I solved it. When running the console, if instead of Calabash's it loads irb console, you should do the following:
If you are running the Calabash console and you are having something similar to the following error when trying to run some command:
You should run (on the Calabash console):
I hope it can help someone. |
ruby 2.4 is not supported. You must use 2.3.x. |
I just edited my comment to:
What do you mean by that?
|
@jmoody I have same problem and can able to do tmate. Let me know the details please. Thanks |
@Vinoth7 Please contact me by email to set up a time to pair. My email address is in my GitHub profile. Thanks. |
Here is a simple test to run. Reproduce
begin
require "irb/completion"
rescue LoadError => e
puts %Q[
Caught a LoadError: could not load 'irb/completion'"
#{e}
]
end
puts "Here!"
$ CALABASH_IRBRC=.irbrc calabash-ios console Expected
FoundCaught a LoadError: could not load 'irb/completion'" dlopen(/usr/local/Cellar/ruby/2.3.0/lib/ruby/2.3.0/x86_64-darwin14/readline.bundle,
|
Thanks @Vinoth7 for the tmate session. |
Brilliant thanks, this is working for me now. I solved the readline issue by running:
|
Fixed in develop |
Hi, I'm having the same issue. Before having this, I was trying to run calabash-ios on iPad device and not simulator by upgrading
Question is ... if i do this |
Sorry, I'll just proceed with |
I've upgraded to Xcode 8.2.1 and Calabash 0.20.4. I'm using a physical device and tests are running fine, but since the upgrade I've been unable to use the console.
When running a query in the console I'm getting a NoMethodError:
xcode installation location
/Applications/Xcode8.2.1.app/Contents/Developer
xcode version
Xcode 8.2.1
Build version 8C1002
calabash version
0.20.4
output of curl http://localhost:37265/version when running in simulator
{"device_family":"iPhone","outcome":"SUCCESS","server_port":37265,"simulator_device":"iPhone","simulator":"CoreSimulator 338.16 - Device: iPhone 6 - Runtime: iOS 9.3 (13E233) - DeviceType: iPhone 6","app_name":"","app_version":"2.6.4","screen_dimensions":{"native_scale":2,"sample":1,"height":1334,"width":750,"scale":2},"git":{"revision":"dc15597","remote_origin":"git@github.com:calabash/calabash-ios-server.git","branch":"master"},"device_name":"iPhone Simulator","4inch":false,"app_id":"xxxxxxxx","form_factor":"iphone 6","system":"x86_64","version":"0.20.4","iOS_version":"9.3","short_version_string":"1.0","ios_version":"9.3","iphone_app_emulated_on_ipad":false,"model_identifier":"iPhone7,2","app_base_sdk":"iphonesimulator10.2"}
Have I missed something?
Thanks.
The text was updated successfully, but these errors were encountered: