Error detected while processing function <SNR>17_fmt_autosave[2]..zig#fmt#Format:
line 39:
"format-bug.zig" 5L, 90C written
It seems this is a bug in the vim plugin, because if I run the zig fmt command on the same file from the command line the file is formatted correctly - that is the args of print are wrapped onto new lines because of the trailing comma.
With
zig_fmt_autosave
enabled, the following file causes an error to be raised on save.The error:
It seems this is a bug in the vim plugin, because if I run the
zig fmt
command on the same file from the command line the file is formatted correctly - that is the args ofprint
are wrapped onto new lines because of the trailing comma.