-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Extension swears when sees love:
attempt to index global 'love' (a nil value).
Have no idea what to do with it.
Same message I get when using comand moon file.moon.
But I can avoid this error if use moonc file.moon (without -l parameter).
UPD:
I've read this doc https://github.com/leafo/moonscript/blob/master/docs/command_line.md#global-variable-whitelist but still don't understand how to add love to whitelist and where lint config.moon should be located ;(
I've put this file to the root of my project:
-- lint_config.moon
{
whitelist_globals: {
["."]: {"love"}
}
}and now there is no errors when I run moonc -l ., but vscode still shows the error.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels