dewski / json_builder

Rails provides an excellent XML Builder by default to build RSS and ATOM feeds, but nothing to help you build complex and custom JSON data structures. JSON Builder is here to help.
http://garrettbjerkhoel.com/json_builder/
MIT License
244 stars 52 forks source link

no such file to load -- active_support/time (MissingSourceFile) #15

Closed chrisbutlerccc closed 12 years ago

chrisbutlerccc commented 12 years ago

Hi.

I got past the issue with bundle install after the latest fix. However, I am having a problem when I try to run the server:

/Users/.../.rvm/gems/ruby-1.8.7-p299/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require': no such file to load -- active_support/time (MissingSourceFile)
    from /Users/.../.rvm/gems/ruby-1.8.7-p299/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in `require'
    ...

When I remove json_builder from my gem file it goes away...

Is there a dependency I am missing?

Thanks!

dewski commented 12 years ago

The dependency list hasn't change at all since I last pushed. I noticed it's including activesupport 2.3.5. Is this a Rails 2.x.x app? Or a 3.x.x app? Can you try removing the gem from your system then re-installing? Thanks!

chrisbutlerccc commented 12 years ago

Yes, it is a 2.x.x app. Is there a 3.x.x requirement?

dewski commented 12 years ago

There isn't a 3.x.x requirement (well, wasn't supposed to have one, seems like there is). I have a fix for this issue coming soon, had a HD that went corrupt so it should be later today.

chrisbutlerccc commented 12 years ago

Sorry to hear about the HD. Let me know when you get a new version up and I'll try it out. Thanks!

dewski commented 12 years ago

Just pushed 3.0.5, let me know how that works out for you.

chrisbutlerccc commented 12 years ago

Hm, getting a different problem now:

/Users/.../.rvm/gems/ruby-1.8.7-p299/gems/activesupport-2.3.5/lib/active_support/vendor/builder-2.1.2/blankslate.rb:84:in `blank_slate_method_added': stack level too deep (SystemStackError)
    from /Users/.../.rvm/gems/ruby-1.8.7-p299/gems/activesupport-2.3.5/lib/active_support/vendor/builder-2.1.2/blankslate.rb:84:in `blank_slate_method_added'
    from /Users/.../.rvm/gems/ruby-1.8.7-p299/gems/json_builder-3.0.5/lib/json_builder/blankslate.rb:82:in `method_added'
    from /Users/.../.rvm/gems/ruby-1.8.7-p299/gems/json_builder-3.0.5/lib/json_builder/blankslate.rb:102

Still works fine if I remove the gem 'json_builder', '3.0.5' requirement from the gemfile.

Please let me know if there is anything else I can do to help troubleshoot...

dewski commented 12 years ago

I yanked 3.0.5 once you submitted this, and have since pushed up 3.0.6. This should do the trick!

chrisbutlerccc commented 12 years ago

Server launches without issue now. Thanks!

dewski commented 12 years ago

No problem, glad that fixed it!