-
Notifications
You must be signed in to change notification settings - Fork 301
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/fmt: comma appended to comment instead of list element #1478
Comments
This was referenced Jun 24, 2022
Also still exists on |
Note that this issue is extremely similar to #2274, although that issue has an example where fmt's output CUE is invalid. |
As of
|
Thanks @rudifa! I can confirm the issue appears solved for me as well. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of CUE are you using (
cue version
)?What did you do?
I ran
cue fmt
on a file with a list of inline structs that ends in a comment rather than a value.bug.cue
:What did you expect to see?
The input file should not have been changed, as it is correctly formatted.
What did you see instead?
If I format that file again, it appends another trailing comma:
I get a new comma each time unless I add a value after the comment.
I'm very new to CUE, but I think this might be related to #1447 based on how both issues seem to interpret the comment as a list element.
The text was updated successfully, but these errors were encountered: