"bundle exec rails console" errors but "rails console" works just fine (Rails 3)
--------------------------------------------------------------------------------

                 Key: JRUBY-6197
                 URL: https://jira.codehaus.org/browse/JRUBY-6197
             Project: JRuby
          Issue Type: Bug
          Components: Application Error
    Affects Versions: JRuby 1.6.5
         Environment: RHEL server 6.1
            Reporter: Jennifer Smith
            Priority: Minor


On upgrading from jruby 1.6.4 to jruby 1.6.5 we have run into a problem running 
the rails console via bundle exec.

We are using bundler 1.0.21 and rails 3.1.1 with all standard dependencies. We 
are using RBEnv to manage ruby versions.

bundle exec rails console

Gives us the stack trace:

TypeError: can't dup NilClass
                       dup at org/jruby/RubyKernel.java:1928
                    prompt at 
/[HOME]/.rbenv/versions/jruby_1.6.5/lib/ruby/1.8/irb.rb:278
                eval_input at 
/[HOME]/.rbenv/versions/jruby_1.6.5/lib/ruby/1.8/irb.rb:130
                      call at org/jruby/RubyProc.java:270
                      call at org/jruby/RubyProc.java:220
                    prompt at 
/[HOME]/.rbenv/versions/jruby_1.6.5/lib/ruby/1.8/irb/ruby-lex.rb:207
          initialize_input at 
/[HOME]/.rbenv/versions/jruby_1.6.5/lib/ruby/1.8/irb/ruby-lex.rb:221
  each_top_level_statement at 
/[HOME]/.rbenv/versions/jruby_1.6.5/lib/ruby/1.8/irb/ruby-lex.rb:228
                eval_input at 
/[HOME]/.rbenv/versions/jruby_1.6.5/lib/ruby/1.8/irb.rb:154
                     start at 
/[HOME]/.rbenv/versions/jruby_1.6.5/lib/ruby/1.8/irb.rb:71
                     catch at org/jruby/RubyKernel.java:1192
                     start at 
/[HOME]/.rbenv/versions/jruby_1.6.5/lib/ruby/1.8/irb.rb:70
                     start at 
/[HOME]/.rbenv/versions/jruby_1.6.5/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/commands/console.rb:45
                     start at 
/[HOME]/.rbenv/versions/jruby_1.6.5/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/commands/console.rb:8
                    (root) at 
/[HOME]/.rbenv/versions/jruby_1.6.5/lib/ruby/gems/1.8/gems/railties-3.1.1/lib/rails/commands.rb:40
                   require at org/jruby/RubyKernel.java:1038
                    (root) at script/rails:6

rails console (installing the rails gem directly) works just fine.

I have tried with a stripped down, new rails project with no other gems in the 
Gemfile than "rails" and it still breaks.

Have not had a chance to figure out whether RBEnv is causing the problem.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to