colinta / motion-xray

An iOS Inspector that runs inside your app, so you can debug and analyze from your device in real-world situations.
555 stars 13 forks source link

Question: Is it possible to use motion-xray with ProMotion? #8

Closed matthewsinclair closed 9 years ago

matthewsinclair commented 9 years ago

@colinta Is it possible to use motion-xray with ProMotion? /cc @jamonholmgren

matthewsinclair commented 9 years ago

After a quick browse thru the PM source code, I noticed that PM::Delegate will attempt to return an XRay UIWindow if it sees that xray is defined. However, if I stick something like module PM::Xray; end in my app delegate, then I get the dreaded uninitialized constant PM (NameError) error.

Am I doing something wrong?

matthewsinclair commented 9 years ago

Ok, ignore me. I wasn't require-ing the motion-xray stuff. Xray is starting up, however, now I'm getting another error as soon as I trigger the shake gesture:

(main)> 2015-02-03 23:12:54.041 T-UIKit[16013:3594725] Motion::Xray::XrayWindow(#1189783c0, [[0.0, 0.0], [320.0, 568.0]])
2015-02-03 23:12:54.242 T-UIKit[16013:3594725] xray_ui.rb:434:in `edit:': uninitialized constant SugarCube::Adjust (NameError)
    from xray_ui.rb:249:in `fire_up'
    from xray_ui.rb:47:in `toggle'
    from xray.rb:25:in `toggle'
    from xray_window.rb:7:in `motionEnded:withEvent:'
2015-02-03 23:12:54.252 T-UIKit[16013:3594725] *** Terminating app due to uncaught exception 'NameError', reason: 'xray_ui.rb:434:in `edit:': uninitialized constant SugarCube::Adjust (NameError)
    from xray_ui.rb:249:in `fire_up'
    from xray_ui.rb:47:in `toggle'
    from xray.rb:25:in `toggle'
    from xray_window.rb:7:in `motionEnded:withEvent:'

Is motion-xray compatible with 2.x of ProMotion?

colinta commented 9 years ago

Yeah Xray needs some love. During the last couple months at Jukely we tried to resurrect the project with a slick new design, but I didn't get very far. And I've been doing objc & swift since august, so I have limited time to maintain the rubymotion gems.

On Feb 3, 2015, at 5:14 AM, Matthew Sinclair notifications@github.com wrote:

Ok, ignore me. I wasn't require-ing the motion-xray stuff. Xray is starting up, however, now I'm getting another error:

(main)> 2015-02-03 23:12:54.041 T-UIKit[16013:3594725] Motion::Xray::XrayWindow(#1189783c0, [[0.0, 0.0], [320.0, 568.0]]) 2015-02-03 23:12:54.242 T-UIKit[16013:3594725] xray_ui.rb:434:in edit:': uninitialized constant SugarCube::Adjust (NameError) from xray_ui.rb:249:infire_up' from xray_ui.rb:47:in toggle' from xray.rb:25:intoggle' from xray_window.rb:7:in motionEnded:withEvent:' 2015-02-03 23:12:54.252 T-UIKit[16013:3594725] *** Terminating app due to uncaught exception 'NameError', reason: 'xray_ui.rb:434:inedit:': uninitialized constant SugarCube::Adjust (NameError) from xray_ui.rb:249:in fire_up' from xray_ui.rb:47:intoggle' from xray.rb:25:in toggle' from xray_window.rb:7:inmotionEnded:withEvent:' Is motion-xray compatible with 2.x of ProMotion?

— Reply to this email directly or view it on GitHub https://github.com/colinta/motion-xray/issues/8#issuecomment-72640616.

matthewsinclair commented 9 years ago

@colinta Ok, thanks. I'll try and see if I can get rmq to work. Cheers.