Error running my_spec: Gem 'ruby-debug-ide' not found, please install it!

Just trying out the debugger on Dianna and immediately hit this...
Error running my_spec: Gem 'ruby-debug-ide' not found, please install it!

Can someone give me a simple howto for installing the required gem(s)? ... my attempt for jruby didn't work:

0
9 comments

Hello Sam,

It`s a known issue, please follow instructions at: http://wiki.jruby.org/wiki/Using_the_JRuby_Debugger

Oleg Shpynov
JetBrains, Inc.
http://www.jetbrains.com
"Develop with Pleasure!"

0

Thanks Oleg.
I followed the instructions there and ran into another error
(I know this is out of scope for the plugin but you may be able to help)

= 0.1) (Gem::LoadError)
]]>


So I installed columnize (jruby -S gem install columnize -y)
I then tried...


Any suggestions on what to try next?

0

Hello Sam,

I`m not sure, but it seems that you try debug your rails applicarion not within IntelliJ IDEA, please try debug your rails application.


Oleg Shpynov
JetBrains, Inc.
http://www.jetbrains.com
"Develop with Pleasure!"

0

In IntelliJ I get in a dialog box...

0

In IntelliJ I get in a dialog box...

 Cannot connect to the debugged process in 10s:
> 
> Error Output: 
> Exception in thread "main" java.lang.IncompatibleClassChangeError: class org.jruby.debug.DebugEventHook has interface org.jruby.runtime.EventHook as super class
> 	at java.lang.ClassLoader.defineClass1(Native Method)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> 	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> ]]>



It seems you've installed ruby-debug-base 0.10.2 instead of 0.10.1. Try the following configuration

0

Thanks Roman that combination of gems is working for me now!

The only thing that is not working is the visual following (highlighting) of the code in the IDE as I step through.
Do I need to configure something or is that a bug?

0

Sam,

I've also checked it. It doesn't work with JRuby interpreter but on Matz's interpreter all is ok. It seems something is broken in ruby-debug-ide gem for JRuby - we will check it.

0

I'm having a similar problem. I'm running jruby 1.1 on a windows machine with the following gems:
ruby-debug (0.10.1)
ruby-debug-base (0.10.1)
ruby-debug-ide (0.2.1)

When I try to launch the debugger from within IDEA I get a "Debugger not started" message box error. I tried to run it from command line and I get this:

C:\my-app>jruby -J-Djruby.reflection=true -J-Djruby.compile.mode=OFF -S rdebug script/server
C:/dev/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug-0.10.1/cli/ruby-debug.rb:82:in `start_control': Debugger is not started (RuntimeError)
from C:/dev/jruby-1.1/lib/ruby/gems/1.8/gems/ruby-debug-0.10.1/bin/rdebug:287
from C:/dev/jruby-1.1/bin/rdebug:19:in `load'
from C:/dev/jruby-1.1/bin/rdebug:19

Any idea?

I realize this is not an IntelliJ issue per se, but any help would be appreciated

0

You JRuby is out of date. Try JRuby 1.1.5 (last released version) or JRuby 1.1.3. See http://jruby.codehaus.org/

0

Please sign in to leave a comment.