thomthom / SKUI

Ruby wrapper of classes that maps to GUI controls in SketchUp's UI::WebDialogs
MIT License
26 stars 14 forks source link

problems example.rb #67

Closed GWydouw closed 10 years ago

GWydouw commented 10 years ago

I place example.rb in the plugins folder. When I startup SU, the dialog shows up but it's complete empty. When I load it from the console load('example.rb') it shows up correctly. When I place example.rb in a subdirectory of the plugins folder and after startup I load it with load('SKUI/example.rb') it works correct

thomthom commented 10 years ago
Error: #<NoMethodError: undefined method `callback_handler' for nil:NilClass>
/Users/tthomas2/SourceTree/skui/src/SKUI/window.rb:232:in `send'
/Users/tthomas2/SourceTree/skui/src/SKUI/window.rb:232:in `add_callback'
thomthom commented 10 years ago

This file wasn't designed to be run at SketchUp startup. It opens a window immediately. And it looks like some references are being garbage collected. Unless this is an issue that happen in production code then I don't see much point in addressing it.