Coder Social home page Coder Social logo

Comments (7)

pascalre avatar pascalre commented on August 16, 2024 1

@Ryder17z the delimiters in the given yaml cause the problem. Currently it is not possible to use delimiters with comments or other text in the same line. I will address this issue in the branch issue-#6.

from vscode-yaml-sort.

pascalre avatar pascalre commented on August 16, 2024 1

@Ryder17z problem is solved in version 2.3.0

from vscode-yaml-sort.

pascalre avatar pascalre commented on August 16, 2024

@Ryder17z can you provide an example document, which causes the plugin to fail?

from vscode-yaml-sort.

Ryder17z avatar Ryder17z commented on August 16, 2024
{
    "Objects": {
        "Object": [
            {
                "Duration": {
                    "_numTurns": "-1"
                },
                "EnemyTag": {
                    "_text": "Enemy Creatures cost 1 less credit to play."
                },
                "GlobalModifiers": {
                    "Self": {
                        "Stat": {
                            "_amount": "-1",
                            "_type": "creatureCostModifier"
                        }
                    }
                },
                "PlayerTag": {
                    "_text": "Your Creatures cost 1 less credit to play."
                },
                "Sounds": {
                    "Play": {
                        "_name": "blip1"
                    }
                },
                "_artist": "Glen Smith",
                "_ObjectType": "Condition",
                "_cost": "0",
                "_subTypes": ""
            },
            {
                "Description": {
                    "_text": "Your Creatures cost 1 less credit to play."
                },
                "Duration": {
                    "_numTurns": "3"
                },
                "GlobalModifiers": {
                    "Self": {
                        "Stat": {
                            "_amount": "-1",
                            "_type": "creatureCostModifier"
                        }
                    }
                },
                "Sounds": {
                    "Play": {
                        "_name": "blip1"
                    }
                },
                "_artist": "Glen Smith",
                "_ObjectType": "Support",
                "_cost": "1",
                "_subTypes": "Deception"
            },
            {
                "Description": {
                    "_text": "Armor 1"
                },
                "Flavour": {
                    "_text": ""
                },
                "Sounds": {
                    "Destroyed": {
                        "_name": "power_down1"
                    },
                },
                "Stats": {
                    "Creature": {
                        "Stat": [
                            {
                                "_amount": "8",
                                "_type": "maxHealth"
                            },
                            {
                                "_amount": "4",
                                "_type": "attack"
                            },
                            {
                                "_amount": "1",
                                "_type": "armor"
                            }
                        ]
                    }
                },
                "_artist": "Glen Smith",
                "_ObjectType": "Agent",
                "_cost": "2",
                "_subTypes": "Mech"
            },
            {
                "Flavour": {
                    "_text": "Sam's got your back."
                },
                "Sounds": {
                    "Ability": {
                        "_name": "pulse1"
                    },
                },
                "Stats": {
                    "Creature": {
                        "Stat": [
                            {
                                "_amount": "11",
                                "_type": "maxHealth"
                            },
                            {
                                "_amount": "5",
                                "_type": "attack"
                            }
                        ]
                    }
                },
                "_artist": "Glen Smith",
                "_ObjectType": "Agent",
                "_cost": "3",
                "_subTypes": "Witch"
            }
        ]
    }
}

from vscode-yaml-sort.

Ryder17z avatar Ryder17z commented on August 16, 2024

When this file is converted to yaml, your sorting tool does not want to deal with it.

from vscode-yaml-sort.

pascalre avatar pascalre commented on August 16, 2024

@Ryder17z can you provide the converted yaml?

from vscode-yaml-sort.

Ryder17z avatar Ryder17z commented on August 16, 2024

Sorry, I lost it. the other file that also failed was this one:
sample.yml.txt

from vscode-yaml-sort.

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.