v fmt . -w makes import databases
change to import diff.src.databases
#18993
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.
Describe the bug
Expected Behavior
the imported module name should not be changed
Current Behavior
after run
v fmt . -w
,import databases
change toimport diff.src.databases
Reproduction Steps
v fmt . -w
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.0 c7f708e
Environment details (OS name and version, etc.)
V full version: V 0.4.0 c7f708e
OS: windows, Microsoft Windows 11 Pro v22621 64-bit
Processor: 12 cpus, 64bit, little endian,
getwd: D:\codespace\vlang\v_study
vexe: C:\Users\cirya\v\v.exe
vexe mtime: 2023-07-28 01:58:28
vroot: OK, value: C:\Users\cirya\v
VMODULES: OK, value: C:\Users\cirya.vmodules
VTMP: OK, value: C:\Users\cirya\AppData\Local\Temp\v_0
Git version: git version 2.38.1.windows.1
Git vroot status: weekly.2023.30-18-gc7f708e6 (4 commit(s) behind V master)
.git/config present: true
CC version: Error: exec failed (CreateProcess) with code 2: 系统找不到指定的文件。
cmd: cc --version
thirdparty/tcc status: thirdparty-windows-amd64 e90c2620
The text was updated successfully, but these errors were encountered: