safe_yaml: uninitialized constant Psych::Nodes (NameError)
using windows 8 have this uninitialized constant problem with safe_yaml => safe_yaml-1.0.4/lib/safe_yaml/psych_resolver.rb:4:in <class:PsychResolver>' *unless* I run the command with bundle exec before the command. I've triedgem update` and nothing changed.
Any ideas?
About this issue
- Original URL
- State: open
- Created 10 years ago
- Comments: 44
Commits related to this issue
- Add missing require for Psych::Nodes This resolves an issue where you would get uninitialized constant Psych::Nodes (NameError) when running with newer version of Psych. Fixes #72 — committed to sikachu/safe_yaml by deleted user 9 years ago
- pin psych to work around a bug https://github.com/dtao/safe_yaml/issues/72 — committed to lepistone/lepistone.github.io by lepistone 9 years ago
- Merge pull request #72 from sanemat/feature/remove-regex Remove regular expression — committed to ota42y/safe_yaml by sanemat 11 years ago
Had the same problem. Fixed this by using Psych 2.0.5:
Not sure if that was the most elegant solution.
Hey,
… fixed it for me
Regards,
gem cleanup work for me
Doing
gem update --systemand thengem updatesolved the problem for me.‘bundle exec’ worked for me…
you can put this in your .zshrc (or similar) to make it happen automatically: