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 127206 - Need to be able to specify Rails version when create project
Summary: Need to be able to specify Rails version when create project
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-12 15:13 UTC by Chris Kutler
Modified: 2008-10-13 13:40 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Log File (40.52 KB, text/plain)
2008-08-13 20:32 UTC, Chris Kutler
Details
Ruby Platform Manager (29.28 KB, text/plain)
2008-08-13 20:33 UTC, Chris Kutler
Details
Ruby Gems Manager (31.83 KB, text/plain)
2008-08-13 20:39 UTC, Chris Kutler
Details
Ruby Platform Manager (mime type set correctly) (29.28 KB, image/png)
2008-08-13 20:40 UTC, Chris Kutler
Details
Ruby Gems Manager (mime type set correctly) (31.83 KB, text/plain)
2008-08-13 20:40 UTC, Chris Kutler
Details
Ruby Gems Manager (third time hopefully correct) (31.83 KB, image/png)
2008-08-13 20:41 UTC, Chris Kutler
Details
Only 1 Rails option on new project wizard (35.60 KB, image/png)
2008-08-13 20:42 UTC, Chris Kutler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Kutler 2008-02-12 15:13:47 UTC
If you have multiple rails versions on your system, there is currently no way to specify which Rails version to use when
you create the project. If one were to create a Rails app from the command line, one can specify the version, such as

rails _1.2.6_ myapp

It is not enough to set the RAILS_GEM_VERSION in the environment.rb after the project is created, as the files that are
pulled in during project creation are often version specific.

There needs to be a way to specify from the IDE which version to use when creating a project.
Comment 1 Erno Mononen 2008-04-15 13:06:27 UTC
Fixed in trunk.

http://hg.netbeans.org/main/rev/3a2ee09f7096
Comment 2 Chris Kutler 2008-08-12 20:06:46 UTC
When I go to the final panel of the new project wizard, I only see one rails version in the drop down list although I
have 2 rails versions (In the Gems Manager installed tab, I see "rails (2.1.0, 2.0.2):....").

This change affects the following help files

url="newrailsappwiz-nameandloc.html"
url="newrailsappwsourcewiz-nameandloc.html"
url="newrailsappwiz-installrails.html"
Comment 3 Chris Kutler 2008-08-12 20:40:39 UTC
I think my problem might be caused by having a GEM HOME different from GEM PATH. I think maybe the panel is only looking
at the GEM HOME and not including the other repositories in the GEM PATH. Just a guess.
Comment 4 Chris Kutler 2008-08-12 20:47:23 UTC
I was wrong about the GEM HOME/ GEM PATH guess. 
Comment 5 Erno Mononen 2008-08-13 13:12:35 UTC
Seems to work for me both with JRuby and MRI, could you please attach the log file (with NB Ruby logging enabled)?
Comment 6 Chris Kutler 2008-08-13 20:31:31 UTC
Using build 3378 I do see multiple versions for my MRI installation -- where I have both rails versions in the main
repository. 

With JRuby, where I have 2.1 in the built-in JRuby repository and 2.0.2 in another repository that is in my Gem Path, I
am only seeing 2.0.2. I have attached screenshots. One shows the Platform manager settings, one shows that the Gems
manager knows that I have both 2.1 and 2.0.2, and the third is the new project wizard where I only have an option for 2.0.2.

Am also attaching the log file.

I notice that it is Initializing "c:\ruby\lib\ruby\gems\1.8" repository. That is odd as I clearly set built-in JRuby as
the platform in the first wizard step. Not sure why it initializes that repository and not the built-in repository (my
Gem Home)
Comment 7 Chris Kutler 2008-08-13 20:32:12 UTC
Created attachment 67304 [details]
Log File
Comment 8 Chris Kutler 2008-08-13 20:33:27 UTC
Created attachment 67305 [details]
Ruby Platform Manager
Comment 9 Chris Kutler 2008-08-13 20:39:30 UTC
Created attachment 67306 [details]
Ruby Gems Manager
Comment 10 Chris Kutler 2008-08-13 20:40:13 UTC
Created attachment 67307 [details]
Ruby Platform Manager (mime type set correctly)
Comment 11 Chris Kutler 2008-08-13 20:40:49 UTC
Created attachment 67308 [details]
Ruby Gems Manager (mime type set correctly)
Comment 12 Chris Kutler 2008-08-13 20:41:37 UTC
Created attachment 67311 [details]
Ruby Gems Manager (third time hopefully correct)
Comment 13 Chris Kutler 2008-08-13 20:42:15 UTC
Created attachment 67312 [details]
Only 1 Rails option on new project wizard
Comment 14 Erno Mononen 2008-10-13 13:40:27 UTC
Closing, issue 149939 was causing problems here when you had multiple gem repositiories.