Closed GeekVisit closed 1 year ago
Anyone interested in working on this might want to find a smaller example first.
I'm happy to review and land any good fixes for this issue.
I'm like to start with contributing to open source projects. @jonasfj Can I get this assigned to me.
Hmm, @Ishad-M-I-M feel free to file another PR updating the CHANGELOG.md
with a bullet point explaining what bug was fixed.
@jonasfj Done. https://github.com/dart-lang/yaml_edit/pull/37
Thank you for your guidance
The following results in an Unhandled Exception "Assertion failed: (package:yaml_edit) Modification did not result in expected result."
gh_test.yml is:
The insertIntoList call results in the same if the index is the next one (i.e., 3 - commented code in example above).
Expected behavior in all cases is that it inserts it correctly in the school list after student George Silver.
Instead the result in both examples is that the inserted list item (Henry Smith) is inserted incorrectly as the first item of the next list (i.e., teachers) as shown by the "Modification did not result in expected result" message.":
the full error message:
So it appears it can't detect the end of the list. The example yaml is correctly validated. If I insert a non-list in between the two lists in the example yaml file, for example the boolean "public: false", I get "Mapping Values are not allowed here" as it attempts to insert it under the boolean yaml:
Here's that error message: