Giter Club home page Giter Club logo

Comments (6)

reegnz avatar reegnz commented on June 3, 2024 3

Hi @tomzo,
I was simply surprized that it didn't use snakeyaml since everywhere you see snakeyaml when you run into yaml parsing in java (eg. https://github.com/FasterXML/jackson-dataformat-yaml). :)
I am pretty confident that snakeyaml is the best lib out there for yaml parsing in java.
We discussed with my colleagues that we might try and contribute this change.

from gocd-yaml-config-plugin.

michaelbannister avatar michaelbannister commented on June 3, 2024

I suspect (but have not tested) that this is resolved by #62. Possibly just needs a test or two...

from gocd-yaml-config-plugin.

reegnz avatar reegnz commented on June 3, 2024

I ran into this issue as well...
And nope, yamlbeans doesn't support the merge syntax:
https://github.com/EsotericSoftware/yamlbeans/blob/master/src/com/esotericsoftware/yamlbeans/tokenizer/Tokenizer.java#L259

Why doesn't this plugin use snakeyaml? It's basically the best yaml parser for java out there, no contest:
https://bitbucket.org/asomov/snakeyaml

from gocd-yaml-config-plugin.

tomzo avatar tomzo commented on June 3, 2024

Hi @reegnz

Why doesn't this plugin use snakeyaml? It's basically the best yaml parser for java out there, no contest

That wasn't obvious to me 2 years ago, when choosing a parser. It's not like yamlbeans says in the readme that it does not support this and that.
If you are confident that snakeyaml would be better, then I have no problem with switching to it. If you or anyone can switch the parser and keep the existing tests passing, that would be great.
If you want merge syntax to work, please add at least one test case with use of it.

from gocd-yaml-config-plugin.

ryudice avatar ryudice commented on June 3, 2024

Is this still an issue? I see snakeyaml as a dependency in build.graddle

from gocd-yaml-config-plugin.

reegnz avatar reegnz commented on June 3, 2024

So is yamlbeans. Checked the code, still using yamlbeans for parsing the config.

from gocd-yaml-config-plugin.

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.