Skip to content

$tmpl error indicates wrong location. #16189

@ghost

Description

V version: 0.3.1 4aa4af4
OS: ArchLinux

What did you do?

fn main() {
	tmp := $tmpl('tempate.txt')
	a := tmp
}

run without template.txt file.

What did you expect to see?
error indicates correct location.

What did you see instead?

bug.v:3:2: error: template file "/home/tsukasa/develop/vprojects/bugs/template.txt" not found
    1 | fn main() {
    2 |     tmp := $tmpl('template.txt')
    3 |     a := tmp
      |     ^
    4 | }
    5 |

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis tag is applied to issues which reports bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions