boosted-yaml icon indicating copy to clipboard operation
boosted-yaml copied to clipboard

Comments in default incorrect order

Open FrostFizzie opened this issue 10 months ago • 1 comments

Version: 1.3.2

Comments are loaded in wrong place when creating a YAML file with the default values, like for me they should be set at the bottom.

Environment: Minecraft Velocity Server

Expected:

  • Comments are put in the same place as the file within the resources directory within the project

Result:

  • Comments are loaded are the very top regardless of where they should be.

image image

FrostFizzie avatar Apr 05 '24 05:04 FrostFizzie

Hey, @FrostFizzie, thanks for reporting the issue. I believe this was an issue with SnakeYAML Engine, due to which I decided to make it so all comments are moved before their respective nodes as opposed to after. I will further look into the issue and will let you know about any updates the following days. Thanks for patience.

dejvokep avatar Apr 05 '24 10:04 dejvokep

Hi, @FrostFizzie, sorry for the delay, there was quite a lot of work and testing involved in releasing a fix for this. PR #26 fixed improper comment handling and serialization. Please check it out, it should patch the behaviour you are experiencing. Thanks for patience and thanks for supporting the library!

dejvokep avatar May 02 '24 19:05 dejvokep