amirrajan / rubymotion-applied

RubyMotion documentation provided by the community. Submit a pull request to the docs for a free one year indie subscription.
Apache License 2.0
49 stars 10 forks source link

motion shell should be more robust #60

Open davetrollope opened 6 years ago

davetrollope commented 6 years ago

I wish the motion shell was a little more robust. Missing a paren really shouldn't cause it to crash out:

(main)> junk(

================================================================================
The application terminated. A crash report file may have been generated by the
system, use `rake crashlog' to open it. Use `rake debug=1' to restart the app
in the debugger.
================================================================================
rake aborted!
TypeError: no implicit conversion from nil to integer
/Library/RubyMotion/lib/motion/project/template/ios.rb:231:in `exit'
/Library/RubyMotion/lib/motion/project/template/ios.rb:231:in `block in <top (required)>'
Tasks: TOP => default => simulator
(See full trace by running task with --trace)

This is on the version 5.5:
motion --version
5.5

I can attach a full crashlog if needed.