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 137641 - Ensure correct version of ruby-debug-ide gem is used
Summary: Ensure correct version of ruby-debug-ide gem is used
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
: 138186 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-18 22:57 UTC by mortench
Modified: 2008-06-30 10:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
netbeans log (353.00 KB, text/plain)
2008-06-19 14:51 UTC, mortench
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mortench 2008-06-18 22:57:01 UTC
I have problems installing the fast debugger in Netbeans 6.1 (with latest patches on Mac OS X Leopard) for both ruby MRI
1.8..6 and my own JRuby 1.1.2

For MRI Ruby, the is a button to "install fast debugger" but it does not work because of permission issues and there is
no option to add "sudo". As a workaround I tried installing "ruby-debug-base" and "ruby-debug-ide" but Netbeans does not
recognize that the debug support is installed.

For JRuby 1.1.2 I tried to follow the manual guidelines in "http://wiki.netbeans.org/RubyDebugging" and was able to
install both gems. However Netbeans 6.1. fails to recoginze that the debug support is installed.
Comment 1 Martin Krauskopf 2008-06-19 07:30:32 UTC
Hi. Did you try to 'Reload Gems' (button) in the Gems Manager after you installed the gems externally. Or might be
simply restart NetBeans if previous does not work.
If it does not work even after reloading/restarting, could you attach the detailed log as described here:

  http://wiki.netbeans.org/FaqRubyNBLogging

Thanks.
Comment 2 mortench 2008-06-19 14:49:56 UTC
I did try to restart Netbeans but no change - still "classic debugger". I also tried to Reload gems but not success. In
fact reload failed for MRI ruby because of permission issues (on Mac OS std Ruby you need "sudo" access to install
gems). You really should take that into account for Netbeans (f.x. allow the user to enter admin password in the
functionality that needs to change gems).

I have attached a log as requested even though I am not sure what you need this for. The bugs should be easily
reproducable on Mac OS 10.5.3 (note that the "network error" in the log is really a permission issue when I tried to
relaod gems).
Comment 3 mortench 2008-06-19 14:51:42 UTC
Created attachment 63105 [details]
netbeans log
Comment 4 Martin Krauskopf 2008-06-19 15:33:38 UTC
> ... I am not sure what you need this for. The bugs should be easily reproducable on Mac OS 10.5.3

Since I do not have access to Mac. Anyway thanks for attaching it, I think it helps. This is caused by recent release of
new ruby-debug-ide 0.2.0. NetBeans 6.1 needs 0.1.10. So best way to make it work is to uninstall ruby-debug-ide 0.2.0
and then install 0.1.10

Could you try to run something like:

  gem uninstall ruby-debug-ide
  gem install ruby-debug-ide --no-rdoc --no-ri --version 0.1.10

for MRI you are using from withing NetBeans. Then reloading the gems in NetBeans and fast debugger should be available.

Does the above help?

I'll investigate more wrt. to the case where more version of ruby-debug-ide is installed.

> re 'sudo'

In 6.5 dev build there is sudo integrated, particularly 'gksu', see issue #128575 for details. I'm not sure what is used
on Mac, if 'gksu' is not there I would appreciate more information in the issue #128575.
Comment 5 Martin Krauskopf 2008-06-19 15:35:19 UTC
Also be sure that you updated NetBeans to patch 1, in Menu -> Tools -> Plugins, Update tab.
Comment 6 mortench 2008-06-19 17:32:48 UTC
Thanks for the help. For Ruby MRI, I performed (note sudo which is necessary !!!)
"sudo gem uninstall ruby-debug-ide"
"sudo gem install ruby-debug-ide --no-rdoc --no-ri --version 0.1.10"

and restarted netbeans and reloaded gems and fast debugging now works under Ruby MRI with netbeans.

Still not working under my custom JRuby 1.2.2 installation though but at least I now have one Ruby platform which works
now (could not use the build-in ruby because it was not up-to-date with gems etc).

As to "gksu" there is no such shell(?) command under newest Mac OS 10.5.3 (leopard). It would be great if the next
version of Netbeans will work well with Mac OS (i.e. solve the sudo access problem)....In my experience most Ruby/Rails
developers has Mac's so you might want to talk to your boss about your lack of Mac OS X access :-)

 
Comment 7 mortench 2008-06-19 17:38:28 UTC
BTW: I was using the latest version of Netbeans. Again Thanks for the help - I appreciate it!
Comment 8 Martin Krauskopf 2008-06-19 17:44:06 UTC
If you are using latest, i.e dev builds from:

  http://deadlock.netbeans.org/hudson/job/trunk/

then ruby-debug-ide 0.2.0 is the appropriate version and bundle JRuby should work out-of-the-box. So do you really use
the latest build, or do you mean NetBeans 6.1 with latest patches?

re sudo> I'll try to ask some colleagues with Macs or google for it, for what is used there and try to fix that for 6.5
final.

re Mac> I have nothing against it. Just preferring simple solution like Fluxbox, mc, rxvt ... ;) Otherwise I really like
new Mac OS X as well as HW
Comment 9 Martin Krauskopf 2008-06-19 17:44:49 UTC
Leaving this open, I'll have to check the case where multiple versions of ruby-debug-ide are available. (note for me)
Comment 10 mortench 2008-06-19 20:13:30 UTC
Thanks.

FYI: I am using NetBeans 6.1 with latest patches.

Comment 11 Martin Krauskopf 2008-06-23 19:39:55 UTC
Fixed: 51910fb85b33

Commit message:
- Run latest available valid version of rdebug-ide gem for this platform. So if
  e.g. 0.1.10, 0.2.0 and 0.3.0 versions are available, but this platform can
  work only with 0.1.10 and 0.2.0, version 0.2.0 is used.
- support for selecting version in the debug-commons-java
- debug-commons-java trunk became 0.9.0, upgrading
Comment 12 Martin Krauskopf 2008-06-23 19:40:14 UTC
.
Comment 13 Martin Krauskopf 2008-06-30 10:51:50 UTC
*** Issue 138186 has been marked as a duplicate of this issue. ***