Coder Social home page Coder Social logo

Comments (25)

flori avatar flori commented on May 21, 2024

This is a duplicate of http://github.com/flori/json/issues#issue/43

from json.

dgoldie avatar dgoldie commented on May 21, 2024

but I'm getting the same thing with with rake
using ruby 1.8.7-p249
and json-1.4.3

from json.

dgoldie avatar dgoldie commented on May 21, 2024

updated to json and json_pure 1.4.6 and still am getting the messages with rake

from json.

flori avatar flori commented on May 21, 2024

This is just a warning which is caused by some software (rails, autotest) ignoring ruby's require semantics, which only is supposed to load each required ruby file once, and instead reloading a required file many times. This patch should silence the warnings: 2c0f8d2

Maybe you want to try it?

from json.

jeberly avatar jeberly commented on May 21, 2024

flori, the patch worked for me. http://github.com/flori/json/issues/labels/duplicate#issue/44/comment/414682
Thanks, and I look forward to a new gem :)

from json.

mattheworiordan avatar mattheworiordan commented on May 21, 2024

Nice, thanks, works for me too. Hope that's included in the new gem.

from json.

thibaudgg avatar thibaudgg commented on May 21, 2024

+1 for a new gem with this patch :-)

from json.

dvdplm avatar dvdplm commented on May 21, 2024

highly annoying, would love to see this fixed... :)

from json.

maxmmurphy avatar maxmmurphy commented on May 21, 2024

Also pesky for me. +1 on a the patch/gem bump asap.

from json.

erskingardner avatar erskingardner commented on May 21, 2024

Agreed. Bump the gem up please.

from json.

miwillhite avatar miwillhite commented on May 21, 2024

Please bump…I hate clutter…

from json.

bradrobertson avatar bradrobertson commented on May 21, 2024

+1 also find it very annoying

from json.

sscirrus avatar sscirrus commented on May 21, 2024

+1 still having issues with it...

from json.

parndt avatar parndt commented on May 21, 2024

can we please have a new version released with this solution as it's already been patched :)

from json.

parndt avatar parndt commented on May 21, 2024

Latest gem released was before this patch was even written, so no.
https://rubygems.org/gems/json/versions

from json.

felixandersen avatar felixandersen commented on May 21, 2024

+1 for bump

from json.

stevenheidel avatar stevenheidel commented on May 21, 2024

Please release a gem. Please.

from json.

bensand avatar bensand commented on May 21, 2024

I figured out a workaround.

put this in your Gemfile:
gem 'json_pure', "1.4.6a", :git => "git://github.com/flori/json.git", :ref => "2c0f8d"

That should be enough to fix it. I did mess around a hell of a lot with Gemfile.lock, but I'm pretty sure that all got overwritten and fixed up.

Heroku accepted it too and my app launched. I'm only starting out so I haven't got any tests to run yet. Let me know if you think this workaround will cause any problems.

from json.

bensand avatar bensand commented on May 21, 2024

To make heroku happy from the command line, you ALSO need to:
$ gem install json_pure
this will of course, put the broken version in your gemset, but apparently this is somehow what you need. I no longer get any error messages with everything setup this way. Just found this out when one of my collaborators hit a snag.

So, make sure you have both!

Also, I should note, I am using rvm

from json.

mejibyte avatar mejibyte commented on May 21, 2024

+1. I was also bitch slapped by this issue.

from json.

ryan-donahue avatar ryan-donahue commented on May 21, 2024

Same issue here. Any update on a new gem release?

from json.

pepitogrilho avatar pepitogrilho commented on May 21, 2024

thanks bensand , putting this in the Gemfile worked for me:
gem 'json_pure', "1.4.6a", :git => "git://github.com/flori/json.git", :ref => "2c0f8d"

from json.

geoffd123 avatar geoffd123 commented on May 21, 2024

I am running on 1.8.7-p330 and using gem 'json_pure', "1.4.6a", :git => "git://github.com/flori/json.git", :ref => "2c0f8d" did not fix it for me. :(

from json.

parndt avatar parndt commented on May 21, 2024

Wasn't a new gem released already? It's up to version 1.5.1 now..

from json.

rslifka avatar rslifka commented on May 21, 2024

Yep, removed my silly comment :)

from json.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.