Skip to content

vvet: assert true, 'multi line string with spaces at the start of the next lines' causes v vet a.v to fail #26467

@spytheman

Description

@spytheman
V version: V 0.5.0 8a3904d, press to see full `v doctor` output
V full version V 0.5.0 b718c42.8a3904d
OS macos, macOS, 15.7.3, 24G419
Processor 8 cpus, 64bit, little endian, Apple M1
Memory 0.25GB/8GB
V executable /opt/v/v
V last modified time 2026-01-29 17:54:43
V home dir OK, value: /opt/v
VMODULES OK, value: /Users/delyanangelov/.vmodules
VTMP OK, value: /tmp/v_501
Current working dir OK, value: /opt/v
Git version git version 2.44.0
V git status weekly.2026.05-61-g8a3904dd
.git/config present true
cc version Apple clang version 17.0.0 (clang-1700.0.13.5)
gcc version Apple clang version 17.0.0 (clang-1700.0.13.5)
clang version Apple clang version 17.0.0 (clang-1700.0.13.5)
tcc version tcc version 0.9.28rc 2026-01-10 HEAD@5ec0e6f8 (AArch64 Darwin)
tcc git status thirdparty-macos-arm64 f995efa3
emcc version emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 4.0.16-git
glibc version N/A

What did you do?
./v -g -o vdbg cmd/v && ./vdbg a.v && a

assert true, 'abc
     xyz'

println('hello')

What did you see?

hello

What did you expect to see?

The file is fine, but v vet a.v thinks it is not formatted, even though v fmt -w a.v does not change it

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Assert statementsBugs related to `assert` statementsBugThis tag is applied to issues which reports bugs.Unit: ToolingBugs/feature requests, that are related to the tooling for the language.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions