Skip to content

Function not found: replace_quoted (()) when called with non existant variable. #50

@ToxicMushroom

Description

@ToxicMushroom

When trying to use replace_quoted,

yolk says it doesn't know the function:

Error:
  × Error evaluating rhai
  ╰─▶ Function not found: replace_quoted (()) (line 1, position 1)
    ╭─[/home/merlijn/.config/yolk/eggs/niri/config.kdl:63:16]
 62 │     tablet {
 63 │         // {# replace_quoted(data.monitors.main) #}
    ·                ┬
    ·                ╰── here
 64 │         map-to-output "DP-2"
    ╰────

but it is documented as a standard function:
https://elkowar.github.io/yolk/book/rhai_docs/template.html#replace_quoted

data.monitors.main was undefined when this happened, it went away when I replaced it with a defined variable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions