Skip to content

Adding two strings with a newline in-between is mistakenly handled as passing two arguments #34

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

Open
revosw opened this issue May 8, 2025 · 0 comments

Comments

@revosw
Copy link

revosw commented May 8, 2025

Describe the bug

When calling a function and passing the addition of strings and breaking each term into its own line, each newline makes the language server think that a new argument is passed

Expected Behavior

All the terms are treated as one argument

Current Behavior

Each newline-delimited term is considered separate arguments

Reproduction Steps

module main

fn main() {
	println(
		'Hello, World!' 
		+ 'newline'
	)
}

Possible Solution

No response

Additional Information/Context

No response

Environment details (v doctor output)

V full version V 0.4.10 0ea6667.1070378
OS windows, Microsoft Windows 11 Pro 26100 64-bit
Processor 12 cpus, 64bit, little endian, 12th Gen Intel(R) Core(TM) i5-12600
Memory 37.04GB/63.76GB
V executable C:\dev_tools\v\v.exe
V last modified time 2025-05-08 06:25:49
V home dir OK, value: C:\dev_tools\v
VMODULES OK, value: C:\Users\simen.vmodules
VTMP OK, value: C:\Users\simen\AppData\Local\Temp\v_0
Current working dir OK, value: C:\Users\simen\CLionProjects\bug
Git version git version 2.45.1.windows.1
V git status weekly.2025.14-158-g1070378a-dirty
.git/config present true
cc version N/A
gcc version N/A
clang version N/A
msvc version N/A
tcc version tcc version 0.9.27 (x86_64 Windows)
tcc git status thirdparty-windows-amd64 b425ac82
emcc version N/A
glibc version ldd (cygwin) 2.5.0

IDE Type (IDEA Community/Ultimate, GoLand, CLion, etc.)

CLion 2025.1.1

Plugin Version

2025.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant