Undefined local variable or method 'java' for Shoes::Sound:Class #39

jrgifford opened this Issue May 29, 2012 · 4 comments

3 participants

Shoes member

I've tested in Ubuntu 12.04 32 and 64 bit, as well as Fedora 17 32.

When I run any of the examples, I get the following error:

NameError: undefined local variable or method `java' for Shoes::Sound:Class
Sound at /home/jrg/code/shoes4/lib/shoes/sound.rb:19
Shoes at /home/jrg/code/shoes4/lib/shoes/sound.rb:16
(root) at /home/jrg/code/shoes4/lib/shoes/sound.rb:15
require at org/jruby/RubyKernel.java:1042
require at /home/jrg/.rvm/rubies/jruby-
(root) at /home/jrg/code/shoes4/lib/shoes/sound.rb:28

it appears that this was introduced in dcec852.

I haven't had a chance to test on Windows yet. Thoughts on what might be causing this?

Shoes member

'java' was removed from lib/shoes.rb here: dcec852#L3L1

Looks like Shoes::Sound is also trying to use java. It shouldn't be, and isn't covered by specs :(

Shoes member

Oh yeah, Shoes::Sound needs to be separated into a Shoes::Sound and Shoes::Swt::Sound

Shoes member
@wasnotrice wasnotrice was assigned May 30, 2012
@wasnotrice wasnotrice added a commit that closed this issue May 30, 2012
@wasnotrice wasnotrice Separate Shoes and Swt code for Sound. Close #39
- Add specs for Shoes::Sound
- NO specs for SwtShoes::Sound :(
Shoes member

Confimed that f06d049 solves this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment