-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/cue: def sometimes inserts CUE comments for errors #2646
Comments
Try to unpack above test case, working with
TODO CLARIFY: why does
|
Here is a minimal test case
|
I agree with @rudifa that there are two potential issues here:
Given that we already have an issue for the fmt bug at #2567, we can reuse this issue for the potential issue 1 above - |
And here is a reproducer for
|
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest stable release?
Yes
What did you do?
What did you expect to see?
Formatted code evaluates with the same semantics as the original code
What did you see instead?
Evaluation after formatting fails. Part of the list expression is gobbled up because it is rendered on the same line as the comment.
The text was updated successfully, but these errors were encountered: