Created
March 14, 2011 03:30
-
-
Save oalders/868704 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xdg: oalders, META.yml throwing errors in the YAML parse or in interpretation? | |
[09:39am] oalders: xdg: Errors when trying to load the file, so parse I guess? | |
[09:39am] xdg: Loading with what YAML parser? | |
[09:40am] oalders: xdg: YAML.pm | |
[09:40am] xdg: !! | |
[09:41am] xdg: First try CPAN::Meta::YAML, then fall back to other YAML parsers | |
[09:41am] xdg: They are all slightly different. | |
[09:41am] xdg: http://echo.dagolden.com/~xdg/meta-yaml-testing/ | |
[09:41am] xdg: that's a very old test to find distributions where different YAML parsers disagreed either on validity or results | |
[09:42am] xdg: mouse over the colored boxes to see a description in the tooltip | |
[09:42am] xdg: this is, btw, one reason why YAML is such a pain in the ass | |
[09:43am] oalders: xdg: Thanks. I'll do that. This is very helpful. I had also looked at Parse::CPAN::Meta, but I'll try this first. | |
[09:43am] oalders: The whole issue with serialization modules is why I think we need module up and downvoting. It might take some of the pain out of it. | |
[09:43am] xdg: Parse::CPAN::Meta has been revised. The old YAML::Tiny copy in its guts is factored out to CPAN::Meta::YAML | |
[09:44am] xdg: With the latest CPAN::Meta, you should just be able to do CPAN::Meta->load_file($name) and retry changing PERL_YAML_BACKEND to different YAML parsers if the first try fails | |
[09:45am] oalders: Excellent. That will improve the coverage significantly. | |
[09:45am] xdg: that's probably not well documented yet. mea culpa. | |
[09:45am] xdg: Actually, it's documented in Parse::CPAN::Meta | |
[09:46am] xdg: And CPAN::Meta just uses Parse::CPAN::Meta for reading | |
[09:46am] xdg: happy to help, but now I have to get back to $job | |
[09:47am] xdg: Feel free to ask other META questions. Any mention of "xdg" gets copied to my email and I'll stop by the channel eventually | |
[09:47am] xdg: Oh, I mean changing $ENV{PERL_YAML_BACKEND} if that wasn't clear | |
[09:47am] • xdg & | |
[09:49am] oalders: xdg: Thanks very much for this. It's a big help. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment