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.
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.
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.
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).
Created attachment 63105 [details] netbeans log
> ... 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.
Also be sure that you updated NetBeans to patch 1, in Menu -> Tools -> Plugins, Update tab.
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 :-)
BTW: I was using the latest version of Netbeans. Again Thanks for the help - I appreciate it!
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
Leaving this open, I'll have to check the case where multiple versions of ruby-debug-ide are available. (note for me)
Thanks. FYI: I am using NetBeans 6.1 with latest patches.
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
.
*** Issue 138186 has been marked as a duplicate of this issue. ***