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

Updated gems. Sup now crashes with an error about "undefined method 'yaml_tag' #403

Closed
Wartz opened this issue Mar 11, 2015 · 7 comments
Closed
Labels

Comments

@Wartz
Copy link

Wartz commented Mar 11, 2015

/home/joe/.gem/ruby/2.2.0/gems/sup-0.21.0/lib/sup.rb:30:in `yaml_properties': undefined method `yaml_tag' for Redwood::MBox:Class (NoMethodError)
from /home/joe/.gem/ruby/2.2.0/gems/sup-0.21.0/lib/sup/mbox.rb:10:in `<class:MBox>'
from /home/joe/.gem/ruby/2.2.0/gems/sup-0.21.0/lib/sup/mbox.rb:6:in `<module:Redwood>'
from /home/joe/.gem/ruby/2.2.0/gems/sup-0.21.0/lib/sup/mbox.rb:4:in `<top (required)>'
from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /home/joe/.gem/ruby/2.2.0/gems/sup-0.21.0/lib/sup.rb:423:in `<top (required)>'
from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:69:in `require'
from /home/joe/.gem/ruby/2.2.0/gems/sup-0.21.0/bin/sup:21:in `<top (required)>'
from /home/joe/.gem/ruby/2.2.0/bin/sup:23:in `load'
from /home/joe/.gem/ruby/2.2.0/bin/sup:23:in `<main>

I'm guessing this is something to do with a new ruby version and yaml/psych, but I can't be much more helpful than that unless someone else knows what to look for.

@Wartz Wartz changed the title Updated gems. Now crashes with an error about "undefined method 'yaml_tag' Updated gems. Sup now crashes with an error about "undefined method 'yaml_tag' Mar 11, 2015
@rakoo
Copy link

rakoo commented Mar 11, 2015

Weird... yaml_tag is part of psych which is part of ruby's stdlib since 1.9.3, and it should be loaded at that moment...

Out of curiosity (don't know if it's going to help a lot), could you please run these ?

$ ruby --version
$ ruby -e 'require "psych"; puts Object::yaml_tag "blah"'

@Wartz
Copy link
Author

Wartz commented Mar 11, 2015

joe@Joe-Arch-20150109 ~ % ruby --version                                                           :(
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]


joe@Joe-Arch-20150109 ~ % ruby -e 'require "psych"; puts Object::yaml_tag "blah"'
blah

As a side note, renaming my entire .gem folder and re-downloading sup with all its dependencies (making sure to download xapian-ruby first before sup) fixed it.

I'm copying over each gem folder one at a time to see if I can isolate the problem any further.

@maxmeyer
Copy link

Is it possible that you installed "psych" via rubygems? I had similar problems and removing the gem version of "psych" fixed this for me.

@Wartz
Copy link
Author

Wartz commented Mar 12, 2015

Excerpts from maxmeyer's message of 2015-03-12 00:16:22 -0700:

Is it possible that you installed "psych" via rubygems? I had similar problems and removing the gem fixed this for me.


Reply to this email directly or view it on GitHub:
#403 (comment)

Thanks, this worked perfectly!

I'm still curious though why installing psych would break sup, since
psych is included in ruby by default, right?

Joe Schlimmer

@gauteh
Copy link
Member

gauteh commented Mar 12, 2015

Excerpts from Joe Schlimmer's message of March 12, 2015 10:02:

Excerpts from maxmeyer's message of 2015-03-12 00:16:22 -0700:

Is it possible that you installed "psych" via rubygems? I had similar problems and removing the gem fixed this for me.


Reply to this email directly or view it on GitHub:
#403 (comment)

Thanks, this worked perfectly!

I'm still curious though why installing psych would break sup, since
psych is included in ruby by default, right?

It probably just breaks psych, which sup depends on.

@gauteh gauteh added the notsup label Mar 13, 2015
@maxmeyer
Copy link

@gauteh

Why not close this issue? 😄

@gauteh
Copy link
Member

gauteh commented Mar 26, 2015

Closed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants