You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
joulaud
changed the title
output differs after trimming ¿when using disjunction of embeded definitions?
cue trim bug ¿when using disjunction of embeded definitions?
Oct 19, 2021
The faulty trim is caused by the removal of B: "b" in the second First. This is related to another outstanding trim bug.
Note however, that, with the current interpretation of trim, C: "c" cannot be removed, as it would not know which of the two instances of C: "c" should be removed as one does not "dominate" the other.
myitcv
changed the title
cue trim bug ¿when using disjunction of embeded definitions?
cmd/cue: trim bug when using disjunction of embeded definitions?
Nov 19, 2021
To be more precise on what is going on: evaluation eliminates one of the disjunctions. Trim proceeds with the evaluated value as if it weren't evaluated from a disjunction. It then removes the very field that was used to disambiguate the disjunction. After this removal, the disjunction no longer disambiguates.
Dropping the now meaningless v0.4.x milestone. We have relabelled this from trim to roadmap/trim to indicate that a fix for this issue (and indeed all trim issues) requires a more substantial piece of work.
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest release?
What did you do?
What did you expect to see?
No error, and trimming of line 11
C: "c"
What did you see instead?
Bug detection by
cue trim
as described above.The text was updated successfully, but these errors were encountered: