Running v fmt -w gemv_test.v
formats a file in an oscillating manner, when run several times, without stabilisation.
#22223
Labels
Bug
This tag is applied to issues which reports bugs.
Unit: vfmt
Bugs/feature requests, that are related to the `vfmt`, the formatter for V.
V doctor:
What did you do?
./v fmt -w ~/.vmodules/vsl/float/float64/gemv_test.v
... which was from https://github.com/vlang/vsl/ .
See the attached file
gemv_test.v.txt
What did you expect to see?
After
v fmt -w gemv_test.v
there should be a stable result.Running
v fmt -w gemv_test.v
a second and third time, should not change the file anymore.The stable version should be preferably the shorter one, that does not wrap for just a few characters.
What did you see instead?
Running
v fmt -w gemv_test.v
makes the formatting of the file oscillate between 2 states every time it is run.gemv_test.v.txt
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: