PragTob / wingtips

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

Running on OSX #1

Closed fism88 closed 9 years ago

fism88 commented 11 years ago

I'm running this command specific to my environment: ../shoes4/bin/shoes shoes_presentation.rb

It opens a window with a white background and then when I press an arrow key I get this error:

Presenting 32 slides
NoMethodError: undefined method `width=' for #<Shoes::Swt::Image:0x719349c5>
            width= at (eval):1
    scale_image_by at /Users/fismail/Documents/shoes_presentation/slide.rb:98
  fullscreen_image at /Users/fismail/Documents/shoes_presentation/slide.rb:85
           content at /Users/fismail/Documents/shoes_presentation/slides/squeak.rb:3
              show at /Users/fismail/Documents/shoes_presentation/slide.rb:21
              call at org/jruby/RubyProc.java:255
        eval_block at /Users/fismail/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/slot.rb:45
        initialize at /Users/fismail/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/slot.rb:31
            create at /Users/fismail/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/dsl.rb:49
             stack at /Users/fismail/.rbenv/versions/jruby-1.7.4/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/dsl.rb:99
          __send__ at org/jruby/RubyBasicObject.java:1703
              send at org/jruby/RubyKernel.java:2209
    method_missing at /Users/fismail/Documents/shoes_presentation/slide.rb:29
              show at /Users/fismail/Documents/shoes_presentation/slide.rb:20
       go_to_slide at /Users/fismail/Documents/shoes_presentation/presentation.rb:18
        next_slide at /Users/fismail/Documents/shoes_presentation/presentation.rb:23
    slide_controls at /Users/fismail/Documents/shoes_presentation/presentation.rb:47
    setup_controls at /Users/fismail/Documents/shoes_presentation/presentation.rb:37
              call at org/jruby/RubyProc.java:255

Did I try to run it correctly?

PragTob commented 11 years ago

Thanks a lot for trying this out!

hehe you seem to have an older version of the shoes gem installed (probably from the packaging tries) and that is being used.

The way I'd want it to work would be:

bundle install
bundle exec jruby -J-XstartOnFirstThread shoes_presentation.rb

and that should work.

To make it work witht he bin/shoes script I believe you have to gem uninstall shoes but it could be that the script can not be started from another directory... hmmm. So um please try the above :-)

fism88 commented 11 years ago

So bundle install completes, but when I try from the shoes_presentation directory bundle exec jruby -J-XstartOnFirstThread shoes_presentation.rb, I get this error:

Presenting 32 slides
NameError: uninitialized constant Presentation::Shoes
  const_missing at org/jruby/RubyModule.java:2631
          start at /Users/fismail/Documents/shoes_presentation/presentation.rb:6
         (root) at shoes_presentation.rb:18
PragTob commented 11 years ago

Line 18? Does your shoes_presentation.rb have the require 'shoes'on top of the file? Or just do a git pull (I think I added that like yesterday evening) :-)

Thanks a lot for trying this out! =)

Tobi

fism88 commented 11 years ago

no problem! ah okay yeah I needed to pull in the latest changes.

Now though, I'm getting really weird behavior where it seems to freeze up with a white background. Not sure what's going on. We might need someone else to try it too.

PragTob commented 11 years ago

It seems to freeze?

The first slide is intentionally white (I should add that to the README) try hitting right arrow/page down then it should advance to the next slide

fism88 commented 11 years ago

Yeah, pushing arrows doesn't seem to progress to the next slide so I'm not sure what's going on

fism88 commented 11 years ago

I should add that the background behind the Shoes window also becomes white, which is really strange

PragTob commented 11 years ago

Hmmm there actually should not be a shoes window, the shoes application should already start in fullscreen mode.

E.g. what happens when you run this script:

Shoes.app fullscreen: true do
  para 'I am fullscreen'
end

does that work?

But very strange, thanks for checking it out! Maybe I should steel a macbook from a friend and try it out...

fism88 commented 11 years ago

I get a shoes window with the text 'I am fullscreen' in there and also a white background is in fullscreen but I can't do anything else, like using the close button on the title bar of the shoes window.

PragTob commented 11 years ago

Hmmm there shouldn't be a title bar as it should be like really fullscreen... was this also kind of what it looked like when trying to start the shoes_presentation?

Thanks a lot for checking this out!

PragTob commented 11 years ago

Unfortunately fullscreen really is broken on Mac... refer to shoes/shoes4#397

PragTob commented 10 years ago

@jasonrclark any update on this with the wingtips structure and everything? Would need/love that in the README :)

jasonrclark commented 10 years ago

Yeah, it could definitely use some updating with how things have moved. Will get to that with whatever next batch of changes I PR on here.

PragTob commented 9 years ago

Should be done now :)