Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yajl error #3

Closed
ccoupe opened this issue Nov 25, 2016 · 4 comments
Closed

yajl error #3

ccoupe opened this issue Nov 25, 2016 · 4 comments
Milestone

Comments

@ccoupe
Copy link
Member

ccoupe commented Nov 25, 2016

Not certain what's happening here

Error in <unknown> line 0 | 2016-11-24 21:47:09 -0700
uninitialized constant Yajl::ParseError
/home/ccoupe/.rvm/gems/ruby-2.2.4/gems/multi_json-1.12.1/lib/multi_json/adapters/yajl.rb:8:in `<class:Yajl>'
/home/ccoupe/.rvm/gems/ruby-2.2.4/gems/multi_json-1.12.1/lib/multi_json/adapters/yajl.rb:7:in `<module:Adapters>'
/home/ccoupe/.rvm/gems/ruby-2.2.4/gems/multi_json-1.12.1/lib/multi_json/adapters/yajl.rb:5:in `<module:MultiJson>'
/home/ccoupe/.rvm/gems/ruby-2.2.4/gems/multi_json-1.12.1/lib/multi_json/adapters/yajl.rb:4:in `<top (required)>'
/home/ccoupe/.rvm/rubies/ruby-2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/ccoupe/.rvm/rubies/ruby-2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/ccoupe/.rvm/gems/ruby-2.2.4/gems/multi_json-1.12.1/lib/multi_json.rb:157:in `load_adapter_from_string_name'
/home/ccoupe/.rvm/gems/ruby-2.2.4/gems/multi_json-1.12.1/lib/multi_json.rb:101:in `load_adapter'
/home/ccoupe/.rvm/gems/ruby-2.2.4/gems/multi_json-1.12.1/lib/multi_json.rb:91:in `use'
/home/ccoupe/.rvm/gems/ruby-2.2.4/gems/picky-4.31.3/lib/picky.rb:49:in `<module:Picky>'
/home/ccoupe/.rvm/gems/ruby-2.2.4/gems/picky-4.31.3/lib/picky.rb:1:in `<top (required)>'
/home/ccoupe/.rvm/rubies/ruby-2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `require'
/home/ccoupe/.rvm/rubies/ruby-2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
/home/ccoupe/.rvm/rubies/ruby-2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:39:in `require'
/home/ccoupe/Projects/ebook/search_picky.rb:2:in `<top (required)>'
/home/ccoupe/.rvm/rubies/ruby-2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/ccoupe/.rvm/rubies/ruby-2.2.4/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
ebook.rb:2:in `<main>'
/home/ccoupe/Projects/shoes3/dist/lib/shoes.rb:349:in `eval'
/home/ccoupe/Projects/shoes3/dist/lib/shoes.rb:349:in `visit'
eval:1:in `<main>'
@IanTrudel
Copy link
Collaborator

Did you install yajl-ruby gem? Your log says it uses multi_json. It might not be compatible or it might look for yajl as an adapter but didn't find it.

@IanTrudel IanTrudel added this to the 1.0.0 milestone Nov 25, 2016
@IanTrudel
Copy link
Collaborator

Picky developer suggested yajl-ruby to speed up indexing. Reference.

@ccoupe
Copy link
Member Author

ccoupe commented Nov 26, 2016

I didn't know there were two different gems - the dependency should be listed in Picky manifest. Oh Well. Fixed.

@ccoupe ccoupe closed this as completed Nov 26, 2016
@IanTrudel
Copy link
Collaborator

IanTrudel commented Nov 26, 2016

It's not a dependency. The Picky developer and I talked about how to speed up indexing and save/load it on disk. Ruby native dump feature was inadequate. Picky native dump feature was too slow. This is where yajl-ruby gem came into play. Picky uses it only if it's present.

ccoupe pushed a commit that referenced this issue Nov 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants