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 125420 - Check whether particular Rails version is available when Rails project's platform is changed
Summary: Check whether particular Rails version is available when Rails project's plat...
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-16 18:25 UTC by Tomas Danek
Modified: 2011-01-28 20:11 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2008-01-16 18:25:06 UTC
Product Version: NetBeans IDE Dev (Build 200801160000)
Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb)
Userdir: /tmp/ud
---------------------
1) start with fresh UD, create rails app
2) run rails console - works
3) change the interpreter for rails app
4) run rails console - 

Cannot find gem for Rails =1.2.5.0:
    Install the missing gem with 'gem install -v=1.2.5 rails', or
    change environment.rb to define RAILS_GEM_VERSION with your desired version.

This is probably caused by having different rails version for MRI and jruby.
Comment 1 Tomas Danek 2008-01-16 18:29:32 UTC
the same applien on rails plugins, it's even more important case.
Comment 2 Tomas Danek 2008-01-16 18:29:38 UTC
the same applies on rails plugins, it's even more important case.
Comment 3 Erno Mononen 2008-01-16 21:01:03 UTC
I believe this is by design, each Ruby platform has its own set of gems. I think it would be nice if there was a 
warning of some sort when changing the platform of a project that is using gems that are not installed in the newly 
selected platform, but not sure whether this would be feasible to do - I assume that for example the Rails version 
could be checked, but for other plugins it might not be doable. Probably it should be at least stated somewhere (e.g. 
in help).
Comment 4 Martin Krauskopf 2008-01-17 13:27:40 UTC
Yes, it's quite normal as Erno described. Probably would be nice to have RFE, which should not be hard to implement for
*Rails* gem.