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 130496 - Install Rails action in Rails Project wizard doesn't install dependencies
Summary: Install Rails action in Rails Project wizard doesn't install dependencies
Status: VERIFIED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
: 125863 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-03-19 11:03 UTC by luismolina
Modified: 2008-09-08 14:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description luismolina 2008-03-19 11:03:19 UTC
in the new Project of type rails wizard if we choose to update rails to the 2.02 version it install it but this type of
project doesnt work. also ive problems with the install openssl options..
Comment 1 Erno Mononen 2008-03-20 10:26:38 UTC
What kind of problems you run into? Please post the steps for reproducing this, including the version of Ruby/JRuby 
used and attach the messages.log file from [netbeans_user_dir]/var/log. Thanks!
Comment 2 Jiri Skrivanek 2008-03-31 13:33:58 UTC
The problem is that only rails gem is installed and not dependencies (activesupport-2.0.2, activerecord-2.0.2,
actionpack-2.0.2, actionmailer-2.0.2, activeresource-2.0.2). To reproduce:

- download and unzip e.g. http://dist.codehaus.org/jruby/jruby-bin-1.1.zip
- open new project wizard
- choose Ruby|Ruby on Rails Application and click Next
- click Manage, Add Platform and browse for bin/jruby.bat in unzipped jruby
- select JRuby (1.1) in Ruby Platform combo box
- click Next, Next and Update Rails button. It seems to be successfully installed but project generation fails. If you
look at Ruby Gems, there is only rails gem and not ones mentioned above. Workaround is to install rails using Tools|Ruby
Gems.

Product Version: NetBeans IDE Dev (Build 20080331051557)
Java: 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)
Comment 3 Erno Mononen 2008-03-31 15:04:01 UTC
Thanks for the steps, I can reproduce this now. Just one clarification, is the label of the Rails update/install button 
"Update Rails" or "Install Rails" for you? Should be "Install Rails" in this case since there is no existing Rails 
installation. 
Comment 4 Jiri Skrivanek 2008-04-01 14:43:35 UTC
Yes, it is "Install Rails".
Comment 5 Erno Mononen 2008-04-02 12:26:32 UTC
Fixed installing rails in e1ee085c7722. Leaving open as updating an existing Rails installation doesn't work as it 
should, for some reason "gem update rails --include-dependencies" doesn't update dependant gems, not even from the 
command line. I'll investigate.
Comment 6 Erno Mononen 2008-04-02 15:41:03 UTC
The --include-dependencies switch doesn't seem to work in RubyGems 1.0.1, but in 1.1 it is fixed / implemented. The 
Rails wizard now uses this switch, but note that only works correctly with RubyGems 1.1. 

Changeset 34bf515441b9.
Comment 7 Erno Mononen 2008-04-02 15:44:10 UTC
*** Issue 125863 has been marked as a duplicate of this issue. ***
Comment 8 Erno Mononen 2008-06-13 14:40:33 UTC
Closing as fixed as the IDE side has been fixed, I suggest to upgrate RubyGems to 1.1.1 which has been out for a while 
now and where the --include-dependencies issue is fixed.
Comment 9 josin 2008-09-08 14:16:03 UTC
Seems to be ok, everything works fine. V.

Product Version: NetBeans IDE Dev (Build 200809071401)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11
System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb)