I''m just getting started with Rails 2 and I''ve immediately hit a problem in the console. This must be well known so perhaps someone could just tell me the solution. mattleopard$ script/console Loading development environment (Rails 2.3.5)>> app.get "photos"=> 200>> app.get "photos"ThreadError: thread 0x1003c7368 tried to join itself from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/ action_controller/reloader.rb:31:in `lock'' from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/ action_controller/reloader.rb:31:in `run'' from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/ action_controller/dispatcher.rb:108:in `call'' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lint.rb:47:in `_call'' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lint.rb:35:in `call'' from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/ action_controller/integration.rb:316:in `process'' from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/ action_controller/integration.rb:197:in `get'' from (irb):2>>As you can see, the *second* app.get command in the console always throws this error. This is on Snow Leopard. My gems are all up to date, but perhaps there''s some gem that I need to reinstall completely? Thx - m. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
m. this is not a snow leopard issue, try running "script/console production" and it will work. Because you need to have config.cache_classes set to true in the environment, and development you probably want to that turned off. /Pontus On May 9, 7:27 pm, mattn <mattne...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m just getting started with Rails 2 and I''ve immediately hit a > problem in the console. This must be well known so perhaps someone > could just tell me the solution. > > mattleopard$ script/console > Loading development environment (Rails 2.3.5)>>app.get"photos" > => 200 > >>app.get"photos" > > ThreadError: thread 0x1003c7368 tried to join itself > from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/ > action_controller/reloader.rb:31:in `lock'' > from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/ > action_controller/reloader.rb:31:in `run'' > from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/ > action_controller/dispatcher.rb:108:in `call'' > from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lint.rb:47:in `_call'' > from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ > ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lint.rb:35:in `call'' > from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/ > action_controller/integration.rb:316:in `process'' > from /Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/ > action_controller/integration.rb:197:in `get'' > from (irb):2 > > > > As you can see, the *second*app.getcommand in the console always > throws this error. This is on Snow Leopard. My gems are all up to > date, but perhaps there''s some gem that I need to reinstall > completely? Thx - m. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Jarl Friis
2010-May-28 14:05 UTC
Re: Re: console ThreadError ("thread ... tried to join itself")
pfs <pontus.stromdahl-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:> m. this is not a snow leopard issue, try running "script/console > production" and it will work. Because you need to have > config.cache_classes set to true in the environment, and development > you probably want to that turned off.Take a look at this. Seems like it is fixed in latest release: https://rails.lighthouseapp.com/projects/8994/tickets/4565 Jarl -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.