Giter Site home page Giter Site logo

Comments (9)

amikula avatar amikula commented on July 28, 2024 1

I would also like to know why this is considered invalid. I've traced the BNF for flow sequences in YAML 1.1 (http://www.yaml.org/spec/1.1/#id931285), which is the version that libyaml (http://pyyaml.org/wiki/LibYAML) implements. Flow sequences of words starting with colons appear to be perfectly valid in YAML 1.1. If this is invalid because it is actually a libyaml bug, then just say so and I'll be happy to file a bug report against libyaml.

schmidt: In case you haven't found this yet, the workaround in psych is to define the array of symbols in the long form:

symbol-array:

  • :foo
  • :bar
  • :baz

from psych.

kronos avatar kronos commented on July 28, 2024

Invalid.

from psych.

schmidt avatar schmidt commented on July 28, 2024

Why is this considered invalid? I'm running into the very same issue atm. How did you solve it?

from psych.

schmidt avatar schmidt commented on July 28, 2024

Thanks @amikula,

I forgot to come back, to say how I fixed it. I also just changed the locale files to use the multi-line version, which was some work. While doing so, I ran into some other ambiguities between psych and syck - chiliproject/chiliproject@1eee731...90987ca for details. But I was not able to see, who's fault they are, so I did not file bug reports.

from psych.

mildred avatar mildred commented on July 28, 2024

@kronos Could you please clarify why this is an invalid bug. I ran across this issue and find it pretty annoying.
Thanks

from psych.

gabrielengel avatar gabrielengel commented on July 28, 2024

Hi, same issue here. Still it works on syck

from psych.

kronos avatar kronos commented on July 28, 2024

I really don't remember why I marked the issue as invalid. May be we should ask @tenderlove.

from psych.

gabrielengel avatar gabrielengel commented on July 28, 2024

Just in case, wrote a quick regexp that may help anyone going through this https://gist.github.com/4078769

from psych.

tenderlove avatar tenderlove commented on July 28, 2024

It's a known issue in libyaml. It's technically valid, but if it's supported, causes an ambiguity in the grammar. Here is a relevant ruby-core thread, along with the libyaml thread, and the wiki page with possible solutions.

from psych.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.