rubymotion-community / sugarcube

Some sugar for your cocoa. RubyMotion helpers.
Other
421 stars 66 forks source link

Crash in REPL #187

Closed mikz closed 9 years ago

mikz commented 9 years ago

Hi there.

If I require 'sugarcube/repl' in my project then after few seconds I get following:

2015-02-08 11:03:28.644 GoodNightHue[10550:165946] repl.rb:213:in `check_sugarcube_view': no view has been assigned to SugarCube::Repl::adjust (RuntimeError)
    from repl.rb:60:in `origin:'
    from kernel.rb:86:in `origin:'

I'd love to provide more information, but no idea what is needed.

mikz commented 9 years ago

When I remove the REPL, there is underlying exception thrown from BW::Reactor. So that is the culprit. But still, repl masks that exception for its own.

colinta commented 9 years ago

I've tried a bunch of ways to "trap" this, but so far I haven't come up with a way to show the error other than removing sugarcube-repl and running the code again.

dchersey commented 8 years ago

Is there any update on this issue? It happens for me every time I open a ProMotion TableScreen.

colinta commented 8 years ago

Nope, I still don't have a workaround.

dchersey commented 8 years ago

Thanks — bummer!

David

On Jan 12, 2016, at 3:10 PM, Colin T.A. Gray notifications@github.com wrote:

Nope, I still don't have a workaround.

— Reply to this email directly or view it on GitHub https://github.com/rubymotion/sugarcube/issues/187#issuecomment-171039114.

ewilliam commented 8 years ago

ran into the same error when opening a PM::TableScreen. sad cuz i like the stonger REPL