I’m having an issue loading libxml in production. On the same machine:
Hi Vince,
If the return value of require is the issue then you don’t have one ;).
‘require’ has been known to return many things. Is the libxml you’re
requiring not working?
If the return value of require is the issue then you don’t have one ;).
‘require’ has been known to return many things. Is the libxml you’re
requiring not working?
No, unfortunately not… I have a rake task that uses the vigetlabs-garb
gem which seems to be failing production but not in development.
The cache_classes difference seems to be the cause though I can’t be
certain it’s related to libxml. My only guess to this effect is that I
can’t require garb in production either and garb requires libxml.
I’m having an issue loading libxml in production. On the same
machine:
Loading production environment (Rails 2.3.3)
require ‘libxml’
=> false
Loading development environment (Rails 2.3.3)
require ‘libxml’
=> []
Rails broke require*. It didn’t load libxml in either case.
Kernel#require returns either true or false, false when the feature
was already loaded. After loading rails, Kernel#require returns an
Array (a true value) no matter what.
Rails broke require*. It didn’t load libxml in either case.
Kernel#require returns either true or false, false when the
feature was
already loaded. After loading rails, Kernel#require returns an
Array (a
true value) no matter what.
Have you opened a bug for this?
would it matter?
I’ve opened bugs on semantics that rails broke and core hasn’t even
batted an eye at it.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.