Skip to content
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

Running v fmt -w gemv_test.v formats a file in an oscillating manner, when run several times, without stabilisation. #22223

Closed
spytheman opened this issue Sep 14, 2024 · 0 comments · Fixed by #22232
Assignees
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.

Comments

@spytheman
Copy link
Member

spytheman commented Sep 14, 2024

V doctor:

V full version: V 0.4.7 6eae77b.96ff251
OS: linux, Ubuntu 20.04.6 LTS
Processor: 2 cpus, 64bit, little endian, Intel(R) Core(TM) i3-3225 CPU @ 3.30GHz

getwd: /home/delian/.vmodules/vsl
vexe: /space/v/oo/v
vexe mtime: 2024-09-14 17:42:07

vroot: OK, value: /space/v/oo
VMODULES: OK, value: /home/delian/.vmodules
VTMP: OK, value: /tmp/v_1000

Git version: git version 2.46.0
Git vroot status: weekly.2024.36-66-g8db23006
.git/config present: true

CC version: cc (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0
thirdparty/tcc status: thirdparty-linux-amd64 0134e9b9

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

image

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.

@spytheman spytheman added 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. labels Sep 14, 2024
@yuyi98 yuyi98 self-assigned this Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants