PragTob / wingtips

A nice little presentation written in shoes
MIT License
12 stars 1 forks source link

Broken for newer shoes4 versions #4

Closed PragTob closed 10 years ago

PragTob commented 10 years ago

The implementation relied on some shoes4 implementation details, so with current master there is the following error:

NoMethodError: undefined method `gui' for #<Shoes::App:0x2fe6ec54>
           content at /home/tobi/github/shoes_presentation/slides/pluggable_backend.rb:15
              show at /home/tobi/github/shoes_presentation/slide.rb:21
              call at org/jruby/RubyProc.java:271
        eval_block at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/gems/shoes-4.0.0.pre1/lib/shoes/slot.rb:46
        initialize at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/gems/shoes-4.0.0.pre1/lib/shoes/slot.rb:18
            create at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/gems/shoes-4.0.0.pre1/lib/shoes/dsl.rb:86
             stack at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/gems/shoes-4.0.0.pre1/lib/shoes/dsl.rb:138
    method_missing at /home/tobi/github/shoes_presentation/slide.rb:29
              show at /home/tobi/github/shoes_presentation/slide.rb:20
       go_to_slide at /home/tobi/github/shoes_presentation/presentation.rb:18
        next_slide at /home/tobi/github/shoes_presentation/presentation.rb:23
    slide_controls at /home/tobi/github/shoes_presentation/presentation.rb:47
    setup_controls at /home/tobi/github/shoes_presentation/presentation.rb:37
              call at org/jruby/RubyProc.java:271
        eval_block at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/gems/shoes-4.0.0.pre1/lib/shoes/swt/key_listener.rb:51
        eval_block at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/gems/after_do-0.2.3/lib/after_do.rb:120
  handle_key_event at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/gems/shoes-4.0.0.pre1/lib/shoes/swt/key_listener.rb:47
        keyPressed at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/gems/shoes-4.0.0.pre1/lib/shoes/swt/key_listener.rb:118
        keyPressed at Shoes$$Swt$$KeypressListener_755109734.gen:13
    run_event_loop at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/gems/swt-0.18/lib/swt/minimal.rb:109
        event_loop at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/gems/swt-0.18/lib/swt/minimal.rb:92
              open at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/gems/shoes-4.0.0.pre1/lib/shoes/swt/app.rb:35
          open_gui at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:173
        initialize at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:33
               app at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:15
             start at /home/tobi/github/shoes_presentation/presentation.rb:6
            (root) at /home/tobi/github/shoes_presentation/shoes_presentation.rb:19
              load at org/jruby/RubyKernel.java:1099
            (root) at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/gems/shoes-4.0.0.pre1/lib/shoes/cli.rb:1
       execute_app at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/gems/shoes-4.0.0.pre1/lib/shoes/cli.rb:73
               run at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/gems/shoes-4.0.0.pre1/lib/shoes/cli.rb:84
              load at org/jruby/RubyKernel.java:1099
            (root) at /home/tobi/.rvm/gems/jruby-1.7.10@shoes_try/bin/ruby-shoes:23
PragTob commented 10 years ago

Updated and fixed, had to do some quick fixes due to shoes/shoes4#590 (not this particular error message, others)