This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 138186 - Externally added ruby-debug-ide not recognized
Summary: Externally added ruby-debug-ide not recognized
Status: RESOLVED DUPLICATE of bug 137641
Alias: None
Product: ruby
Classification: Unclassified
Component: Platform (show other bugs)
Version: 6.x
Hardware: All Linux
: P2 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-25 08:24 UTC by esmithbss
Modified: 2008-06-30 10:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log of startup and open tools to view ruby platforms (67.50 KB, text/plain)
2008-06-29 09:31 UTC, esmithbss
Details
Second log. This is the remove platform and redetect it log. (81.50 KB, text/plain)
2008-06-29 09:46 UTC, esmithbss
Details
Third log file. Autodetect 1.8.7 (with ruby-debug-ide) remove, manually install. (91.73 KB, text/plain)
2008-06-29 22:42 UTC, esmithbss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2008-06-25 08:24:22 UTC
After installation, I attempted to update the ruby-debug-ide gem, but since Ruby was installed as root, I didn't have
access through the NetBeans IDE.

After shutting down NetBeans and adding the ruby-debug-ide from the command line, I started NetBeans up and went to the
Tools -> Ruby Platforms dialog to check the debugger configuration.  Under Ruby 1.8.6 (my native version), the debugger
was still "Classic Debugger" and I had a button prompting me to install the Fast Debugger (ruby-debug-ide) which I had
just installed.

I then closed NetBeans and restarted NetBeans as the root user (assuming something may need the elevated privileges to
update) and the debugger settings had not changed.

Pressing the "Autodetect Platforms" button has no effect at this time.
Comment 1 Martin Krauskopf 2008-06-25 10:57:27 UTC
That's strange. Do you have the same GEM_HOME and GEM_PATH set for the platform in IDE as you have from the
command-line? Do you have also all patches from Update Center applied?

If yes for both, could you turn on detailed logging, reproduce and attach the log here:

  http://wiki.netbeans.org/FaqRubyNBLogging

Thanks.
Comment 2 esmithbss 2008-06-27 04:15:34 UTC
As for my machine settings and updates, the answer to both questions is yes.  I have all updates applied.  I have all
gems updated for the native ruby environment.  And my GEM_HOME and GEM_PATH settings are the same in both the IDE and
from the CLI.

So how do I turn on detailed debugging?
Comment 3 esmithbss 2008-06-27 06:25:03 UTC
As for my machine settings and updates, the answer to both questions is yes.  I have all updates applied.  I have all
gems updated for the native ruby environment.  And my GEM_HOME and GEM_PATH settings are the same in both the IDE and
from the CLI.

So how do I turn on detailed debugging?
Comment 4 Martin Krauskopf 2008-06-27 11:21:18 UTC
It is described in the link I've put into my previous comment, this one:

   http://wiki.netbeans.org/FaqRubyNBLogging
Comment 5 esmithbss 2008-06-29 09:31:50 UTC
Created attachment 63645 [details]
Log of startup and open tools to view ruby platforms
Comment 6 esmithbss 2008-06-29 09:34:04 UTC
As you can see in the attached file, on line 769, the system identifies that ruby-debug-ide is installed within the
native ruby (1.8.6) environment.
Comment 7 esmithbss 2008-06-29 09:45:21 UTC
Some additional details.

1) I noticed the versions are different on the ruby-debug-ide under jruby and ruby so I added the older ruby-debug-ide
to the ruby installation.  Still didn't appear to help

2) I then removed the ruby platform and re-added it.  When it was re-added, the fast debugger was identified properly.

Based on the results of #2, I would assume the code to detect and load a platform is doing some extra snooping or
setting a flag in the "detect" portion that should be in the "load" section.
Comment 8 esmithbss 2008-06-29 09:46:46 UTC
Created attachment 63646 [details]
Second log.  This is the remove platform and redetect it log.
Comment 9 esmithbss 2008-06-29 22:42:52 UTC
Created attachment 63651 [details]
Third log file.  Autodetect 1.8.7 (with ruby-debug-ide) remove, manually install.
Comment 10 esmithbss 2008-06-29 22:48:32 UTC
The third log file is after some additional experimentation.

This time I removed the 1.8.6 platform, then shutdown NetBeans.

I installed 1.8.7 from source (1.8.7-p5000), then reboot.

Start NetBeans

Autodetect platforms.  It finds the 1.8.7 platform at /usr/local/bin/ruby, but it still fails to see that ruby-debug-ide
(v 0.2.0) is already installed.

Removed platform.

Added platform manually.  Still failed to see ruby-debug-ide
Comment 11 esmithbss 2008-06-29 22:50:41 UTC
Some further testing.

I removed the 1.8.7 platform from the IDE.

Then installed 0.1.10 version of ruby-debug-ide gem

Then autodetected platform.  Result is a 1.8.7 installed with the fast debugger recognized.

So it appears that the detection mechanism is looking specifically for something in or about the 0.1.10 version of
ruby-debug-ide and not ruby-debug-ide in general.
Comment 12 Martin Krauskopf 2008-06-30 10:51:50 UTC
Thanks for the details. I see, this is bug in 6.1, which was fixed for 6.5. I've updated the wiki page:

   http://wiki.netbeans.org/RubyDebugging#section-RubyDebugging-RightVersionOfRubyDebugIde

The solution is as you've found to keep version 0.1.10 as the *latest* one. I.e. be sure to not have 0.2.0 installed.


*** This issue has been marked as a duplicate of 137641 ***