Skip to content

$tmpl error message improvement #16127

Description

V version: 0.3.1 f8a28b5
OS: ArchLinux

What did you do?

template.txt

@name
fn foo(){
	name := 'abc'
	$tmpl('template.txt')
}

fn bar(){
	$tmpl('template.txt')
}

fn main(){
}

What did you expect to see?
Line number both in V file and template file.

What did you see instead?
Only template file line number.

> v run .
template.txt:9:32: error: undefined ident: `name`

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis tag is applied to issues which reports bugs.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions