Comments (25)
This is a duplicate of http://github.com/flori/json/issues#issue/43
from json.
but I'm getting the same thing with with rake
using ruby 1.8.7-p249
and json-1.4.3
from json.
updated to json and json_pure 1.4.6 and still am getting the messages with rake
from json.
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.
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.
Nice, thanks, works for me too. Hope that's included in the new gem.
from json.
+1 for a new gem with this patch :-)
from json.
highly annoying, would love to see this fixed... :)
from json.
Also pesky for me. +1 on a the patch/gem bump asap.
from json.
Agreed. Bump the gem up please.
from json.
Please bump…I hate clutter…
from json.
+1 also find it very annoying
from json.
+1 still having issues with it...
from json.
can we please have a new version released with this solution as it's already been patched :)
from json.
Latest gem released was before this patch was even written, so no.
https://rubygems.org/gems/json/versions
from json.
+1 for bump
from json.
Please release a gem. Please.
from json.
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.
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.
+1. I was also bitch slapped by this issue.
from json.
Same issue here. Any update on a new gem release?
from json.
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.
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.
Wasn't a new gem released already? It's up to version 1.5.1 now..
from json.
Yep, removed my silly comment :)
from json.
Related Issues (20)
- /usr/lib64/libjemalloc.so.2: cannot allocate memory in static TLS block
- Is it possible to override the format used when printing a Timestamp?
- IPAddr#to_json remove prefix address with CIDR
- gem install generates wrong json-2.6.2.gemspec file HOT 7
- JSON gem is slow parsing integers/floats when there's multiple threads executing at once (in Ractors) HOT 1
- Hilarious surrogate(?) bug
- JSON.pretty_generate generates wrong format json output to MRI for at least an empty hash version 9.4.0.0 HOT 4
- JRuby extension fails to build on Windows HOT 1
- How to use both, pure and ext variant
- Streaming enhancements for dumping
- Behaviour change between 2.5.1 and 2.6.0
- Test
- JSON.parse Alters Encoding of Passed String Unexpectedly
- Shorten reference to input data in error message
- json-1.8.6/lib/json/common.rb:155:in `initialize': wrong number of arguments (given 2, expected 1) (ArgumentError) HOT 1
- CHANGES.md is not update for version 2.6.3
- https://www.example.com/proxy.pac
- JSON.dump does not work in version 2.7.0 when the argument is an implicit Hash HOT 5
- Wrong number of arguments for dump in 2.7.0 HOT 4
- JSON.dump inconsistent output for hash
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json.