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 177012 - NetBeans not detecting installed rubygems or rails
Summary: NetBeans not detecting installed rubygems or rails
Status: RESOLVED INCOMPLETE
Alias: None
Product: ruby
Classification: Unclassified
Component: Gems (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-17 10:33 UTC by siggy_lxvi
Modified: 2010-03-30 13:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log of process and error (44.24 KB, application/octet-stream)
2009-11-20 20:45 UTC, JennBaker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description siggy_lxvi 2009-11-17 10:33:38 UTC
I've recently been trying to learn Ruby on Rails and have been encountering problems with my installation of Netbeans on Ubuntu-eee. I've assured that ruby, gems, and rails are all working properly on my system (used them on the command line to do everything I'm trying to do through Netbeans). I've uninstalled and reinstalled all components of RoR and re-tested on the command line.

When I try to create or edit a RoR project in NetBeans, I receive the error message:
Rails requires RubyGems >= 1.3.2 (you have 1.3.1). Please `gem update --system` and try again.


Gem is currently at version 1.3.5 from a manual download and installation and I am using NetBeans version 6.7.1. Gem Home in Tools> Ruby Gems is listed as "/var/lib/gems/1.8" and Ruby Platform is listed as "Ruby 1.8.6 p-111"
Comment 1 Erno Mononen 2009-11-18 01:50:35 UTC
Hello, thanks for the report. Can you please turn on detailed logging (http://wiki.netbeans.org/FaqRubyNBLogging67), try to create a rails project again and attach the log here then?
Comment 2 JennBaker 2009-11-20 20:45:44 UTC
Created attachment 91460 [details]
IDE log of process and error

I am using Window Vista, but have replicated the bug reported as shown in the attached log.  I updated via the Gems Manager to 1.3.5, restarted the IDE and then created a new Rails project and received the error.
Comment 3 Erno Mononen 2010-03-30 13:07:01 UTC
Sorry for the delay on this. Looking at the log it looks like you're running the app on the bundled JRuby, did you make sure you updated RubyGems for that platform? I.e. not for any other Ruby installation you might have, such as MRI (just running gem update --system would by default update RubyGems for the MRI platform). To update RubyGems for the bundled JRuby, you need to run:

J:\NetBeans 6.7.1\ruby2\jruby-1.2.0\bin\jruby -S gem update --system


Of course the best would be if one could do that directly from the IDE, and in fact there is an RFE for that already.

Also, due to #182168, after updating RubyGems from the command line you may want to remove and re-add the platform in question in the Ruby Platform Manager (otherwise it will report a wrong RubyGems version for the platform).

Let us know if that doesn't help - thanks.