Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Not compatible with Ruby 1.9.2_p290 #12

programble opened this Issue · 4 comments

2 participants


The gem is not compatible with Ruby 1.9.2_p290 (and probably earlier).

irb(main):001:0> require 'dbus'
/usr/lib/ruby/site_ruby/1.9.1/dbus/introspect.rb:94: warning: else without rescue is useless
SyntaxError: /usr/lib/ruby/site_ruby/1.9.1/dbus/introspect.rb:91: syntax error, unexpected ':', expecting keyword_then or ',' or ';' or '\n'
        when 0: name
/usr/lib/ruby/site_ruby/1.9.1/dbus/introspect.rb:552: syntax error, unexpected keyword_end, expecting $end
end # module DBus
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from /usr/lib/ruby/site_ruby/1.9.1/dbus.rb:12:in `<top (required)>'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from (irb):1
    from /usr/bin/irb:12:in `<main>'

You are right that 0.6.0, the last released version, does not work with Ruby 1.9.2. That was fixed in d86d7eb in December and I will release a new gem shortly.

But the backtrace mentions "when 0:" which was fixed in 0.4.0 already in cc04188. Are you using a version so old or is there something strange with your setup?

ruby-dbus (0.6.0)



Wait what, it's not loading the gem at all.


Turns out I had a ruby-dbus package installed (no idea why) that I guess contained a very old version of this gem. Sorry.

@programble programble closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.