Bad merge for YAML conflict with double-quoted string #379
Labels
No labels
Compat/Breaking
Kind
Bad merge
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
New language
Kind
Security
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: mergiraf/mergiraf#379
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It seems
mergiraf
solves a conflict incorrectly for a YAML file with double-quoted values in it.Quoted mapping values: wrong
With the following conflicted YAML file,
mergiraf
picks Left instead of combining Left and Right:The conflicted file above represents this situation:
base
:Non-quoted mapping values: correct
If the mapping values are not quoted,
mergiraf
does combine the changes, i.e. does what I expect:Details
tree-sitter syntax tree + mergiraf debug output
In case helpful.
TL; DR
tree-sitter
syntax tree has no obvious problem with either the quoted or unqoted version (I tested the Left version)mergiraf
doesn't do much at all with the quoted (= problematic) versioncommands:
...prints:
Thanks a lot for reporting this, and for the thorough investigation! I'll likely have a try at solving this soon.
I installed mergiraf
head
and can confirm that my example conflict is now solved correctly.Great with the quick reaction + fix! :D