Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is extension compatible with love2d? #2

Open
ghost opened this issue Feb 7, 2018 · 0 comments
Open

Is extension compatible with love2d? #2

ghost opened this issue Feb 7, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 7, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants