Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Trying to run Rails 2.3.4 raises the error No method 'first' on an instance of Rubinius::AST::ArrayLiteral. (NoMethodError) #95

Closed
mauricioszabo opened this Issue Nov 26, 2009 · 1 comment

Comments

Projects
None yet
2 participants

script/console runs fine, but when I try to run script/server, it just raises the following error:

An exception occurred running script/server                                       
    No method 'first' on an instance of Rubinius::AST::ArrayLiteral. (NoMethodError)

Backtrace:
  Kernel(Rubinius::AST::ArrayLiteral)#first (method_missing) at kernel/delta/kernel.rb:49
  Rubinius::AST::RescueCondition#initialize at lib/compiler/ast/exceptions.rb:173        
   Rubinius::Melbourne#process_resbody at lib/melbourne/processor.rb:363                 
        Rubinius::Melbourne#parse_file at lib/melbourne.rb:63                            
  Rubinius::CompilerNG::FileParser#parse at lib/compiler/stages.rb:211                   
  Rubinius::CompilerNG::Parser(Rubinius::CompilerNG::FileParser)#run at lib/compiler/stages.rb:194
              Rubinius::CompilerNG#run at lib/compiler/compiler.rb:83                             
     Rubinius::CompilerNG.compile_file at lib/compiler/compiler.rb:38                             
  Rubinius::CompilerNG.compile_file_old at lib/compiler/compiler.rb:27                            
        Requirer::Utils.single_load {} at kernel/delta/requirer.rb:191                            
       Requirer::Utils.compile_feature at kernel/delta/requirer.rb:133                            
           Requirer::Utils.single_load at kernel/delta/requirer.rb:190                            
       Requirer::Utils.unified_load {} at kernel/delta/requirer.rb:122                            
                            Array#each at kernel/bootstrap/array.rb:156                           
          Requirer::Utils.unified_load at kernel/delta/requirer.rb:87                             
                         Autoload#call at kernel/common/autoload.rb:27                            
 Rails::Initializer#initialize_database at /home/mauricio/rubinius-1.0.0-rc1/gems/1.8/gems/rails-2.3.4/lib
                                           /initializer.rb:437                                            
           Rails::Initializer#process at /home/mauricio/rubinius-1.0.0-rc1/gems/1.8/gems/rails-2.3.4/lib  
                                         /initializer.rb:141                                              
               Rails::Initializer.run at /home/mauricio/rubinius-1.0.0-rc1/gems/1.8/gems/rails-2.3.4/lib  
                                         /initializer.rb:113                                              
                       main.__script__ at config/environment.rb:9                                         
    Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:230                            
           Requirer::Utils.single_load at kernel/delta/requirer.rb:236
          Requirer::Utils.unified_load at kernel/delta/requirer.rb:80
  Kernel(Object)#gem_original_require (require) at kernel/common/kernel.rb:737
               Kernel(Object)#require at /home/mauricio/rubinius-1.0.0-rc1/lib/rubygems/custom_require.rb:31
 ActiveSupport::Dependencies::Loadable(Object)#require {} at /home/mauricio/rubinius-1.0.0-rc1/gems/1.8/gems
                                                             /activesupport-2.3.4/lib/active_support
                                                             /dependencies.rb:156
 ActiveSupport::Dependencies(Module)#new_constants_in at /home/mauricio/rubinius-1.0.0-rc1/gems/1.8/gems
                                                         /activesupport-2.3.4/lib/active_support
                                                         /dependencies.rb:521
 ActiveSupport::Dependencies::Loadable(Object)#require at /home/mauricio/rubinius-1.0.0-rc1/gems/1.8/gems
                                                          /activesupport-2.3.4/lib/active_support
                                                          /dependencies.rb:156
                      main.__script__ at /home/mauricio/rubinius-1.0.0-rc1/gems/1.8/gems/rails-2.3.4/lib
                                         /commands/server.rb:84
    Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:230
           Requirer::Utils.single_load at kernel/delta/requirer.rb:236
       Requirer::Utils.unified_load {} at kernel/delta/requirer.rb:122
                            Array#each at kernel/bootstrap/array.rb:156
          Requirer::Utils.unified_load at kernel/delta/requirer.rb:87
  Kernel(Object)#gem_original_require (require) at kernel/common/kernel.rb:737
               Kernel(Object)#require at /home/mauricio/rubinius-1.0.0-rc1/lib/rubygems/custom_require.rb:31
                       main.__script__ at script/server:3
    Rubinius::CompiledMethod#as_script at kernel/common/compiled_method.rb:230
           Requirer::Utils.single_load at kernel/delta/requirer.rb:236
   Requirer::Utils.load_from_extension at kernel/delta/requirer.rb:321
               Rubinius::Loader#script at kernel/loader.rb:351
                 Rubinius::Loader#main at kernel/loader.rb:466
                     Object#__script__ at kernel/loader.rb:470
Owner

evanphx commented Dec 3, 2009

Extract assignment properly. Closed by 25a1fd9.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment