Comments (7)
@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.
@Ryder17z problem is solved in version 2.3.0
from vscode-yaml-sort.
@Ryder17z can you provide an example document, which causes the plugin to fail?
from vscode-yaml-sort.
{
"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.
When this file is converted to yaml, your sorting tool does not want to deal with it.
from vscode-yaml-sort.
@Ryder17z can you provide the converted yaml?
from vscode-yaml-sort.
Sorry, I lost it. the other file that also failed was this one:
sample.yml.txt
from vscode-yaml-sort.
Related Issues (20)
- Add mecanics that sorts `YAML` blocks of defined level HOT 3
- Add configuration for DeepSource
- Custom sort only works for the top level HOT 4
- Add support for octal values HOT 2
- emptyLinesUntilLevel stopped working HOT 3
- YAML with HTML tags breaks in v6.5.0 HOT 6
- Value type may not be maintained: Unexpected String to Int conversion HOT 1
- False remove trailing quotes by Array Processor. HOT 1
- Helm Processor produce strange result when encounter dollar sign.
- Breaks with multiline strings HOT 2
- Add setting not to format 'yes', 'no' and other boolean-like strings
- Custom sort recursively does not work with sort arrays. HOT 1
- Add possibility for custom sort keys per file HOT 3
- Comment processor messes up yml indentation HOT 3
- sort removed block/folded string style HOT 1
- No need to send notification when used as a formatter HOT 1
- keep multiline strings on sort HOT 1
- Dependency Dashboard
- Is custom sort on save planned?
- Refactor project
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-yaml-sort.