Skip to content

Is extension compatible with love2d? #2

@ghost

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.

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