error after freezing hobo 0.83

0 views
Skip to first unread message

adamski

unread,
Oct 26, 2008, 8:08:51 PM10/26/08
to Hobo Users
I'm in the process of putting up a site for the client to view.
I froze hobo 0.83 with the latest rubygems, so I can avoid conflicts
with a site already running on the server with an earlier version of
hobo.
I'm now getting an error when I start mongrel:

/usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/
dependencies.rb:115:in `qualified_const_defined?':
"Gems::Hobo-0.8.3::Lib::Hobo" is not a valid constant name!
(NameError)
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:338:in `new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:330:in `collect'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:330:in `new_constants_in'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:214:in `load_file'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:95:in `require_or_load'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:260:in `load_missing_constant'
from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
active_support/dependencies.rb:467:in `const_missing'
from /home/adam/rails/menu/vendor/gems/hobo-0.8.3/lib/hobo/
dryml.rb:29
... 43 levels...
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/../lib/
mongrel/command.rb:212:in `run'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.3/bin/
mongrel_rails:281
from /usr/bin/mongrel_rails:19:in `load'
from /usr/bin/mongrel_rails:19

any help much appreciated!
thanks

Matt Jones

unread,
Oct 26, 2008, 8:27:05 PM10/26/08
to hobo...@googlegroups.com
The quick patch for this is to edit initializer.rb (in vendor/rails/
railties/lib)
and remove the line (towards the end) that consists of
"vendor" (without quotes)
on a line by itself. It is one of a series of bugs fixed in the 2.2RC.
(see ticket 1128 on the Rails
lighthouse for more details).

On the other hand, 2.2RC breaks Hobo completely (ActionView's
TemplateHandler stuff
was changed AGAIN - after a breaking change in 2.1). I'm currently
investigating this...

You should be able to explicitly specify a version in config/
initializers/hobo.rb (on the line with 'gem'),
and keep both Hobo gems installed side-by-side.

--Matt

Reply all
Reply to author
Forward
0 new messages