vim-vtools icon indicating copy to clipboard operation
vim-vtools copied to clipboard

keeps deleting ui in code

Open khairolr2020 opened this issue 3 years ago • 1 comments

When I save a file that contains ui in it eg: ui.textbox , it will delete the 'ui' within the whole code. So when I run it, an error occurred. if the code writes &ui.Button, it will become &.Button after save .

And, hopefully you will fix this too: It does the formatting perfectly fine, but every time i save the file, it keeps telling me that it has format it and need to press enter in order to continue, which are annoying. Can you please change this somehow? Thank you.

khairolr2020 avatar Dec 06 '22 05:12 khairolr2020

Thank you to report issue

When I save a file that contains ui in it eg: ui.textbox , it will delete the 'ui' within the whole code. So when I run it, an error occurred. if the code writes &ui.Button, it will become &.Button after save .

vim-vtools's fmt just call v fmt internally. So it is probably v fmt's bug. Try using v fmt with the same code, and if it's a v fmt's bug, report it to v repository. Please include the entire reproducible source code when reporting.

It does the formatting perfectly fine, but every time i save the file, it keeps telling me that it has format it and need to press enter in order to continue, which are annoying.

It is very bad and very inconvenient. I want to fix it. But I can't reproduce it in my environment, so I need your environment information. for example, uname -a vim --version v -version. And give me screenshot of the message being displayed so I can see what is going on.

zakuro9715 avatar Dec 06 '22 22:12 zakuro9715