vfmt: Not very nice to UI modules

Created on 27 Nov 2020  路  1Comment  路  Source: vlang/v

Most recently tested in WSL Ubuntu

OS: linux, Ubuntu 20.04.1 LTS (WSL)
Processor: 12 cpus, 64bit, little endian, Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
CC version: cc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0

vroot: /home/lite/v
vexe: /home/lite/v/v
vexe mtime: 2020-11-27 17:05:15
is vroot writable: true
V full version: V 0.1.29 bbea7fb.1dfdc97

Git version: git version 2.25.1
Git vroot status: latest-commit-418-g1dfdc972
.git/config present: true
/var/tmp/tcc status: master 5e73982e
thirdparty/tcc: N/A

What did you do?
v fmt -w vyper.v

What did you expect to see?
Code to merely be formatted

What did you see instead?
in several places, anything ending in ui is renamed to ui; i.e termui or tui becomes ui

before vfmt

bodypart_before_vfmt
event_before_vfmt
rat_before_vfmt

after vfmt

app_after_vfmt
bodypart_after_vfmt
event_after_vfmt
rat_after_vfmt

Note: It mainly seems to occur when the *ui appears in a declaration, as not all instances of *ui are replaced. the import works as expected as do occurrences with *ui being used as a field app.termui.set_color(red)

Bug vfmt

Most helpful comment

I have oberserved this behaviour as well. Thanks for reporting it!

>All comments

I have oberserved this behaviour as well. Thanks for reporting it!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

radare picture radare  路  3Comments

lobotony picture lobotony  路  3Comments

medvednikov picture medvednikov  路  3Comments

radare picture radare  路  3Comments

choleraehyq picture choleraehyq  路  3Comments