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
This is same as cmd/fmt: single import and comment combined#1447.
The newline after the comment triggers the bug, as the comment gets associated with the previous import line, then the comment is misplaced into the import block.
In the absence of a newline between the comment and the code following it there is no problem, and the fmt output is same as input.
Originally opened by @ah-edg in cuelang/cue#720
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest release?
yes
What did you do?
Run
cue fmt
on this input:What did you expect to see?
no change
What did you see instead?
The text was updated successfully, but these errors were encountered: