Quenty / luacheck-roblox

Luacheck specifications for Roblox Lua
MIT License
36 stars 7 forks source link

Trouble running script #7

Open Quoteory opened 4 years ago

Quoteory commented 4 years ago

Hey, I'm fairly new to anything code related outside of Roblox Studio so this could just be an issue on my part

When I run the generate.lua script I get an error on line 5 "module 'json' not found" I assume I may need to install json, but the reason I'm confused is because you only mentioned needing Lua 5.1 or higher do I need to install anything else?

I'm using VSCode and luacheck is working correctly, I just need the updated file that includes table.find() etc

Quenty commented 4 years ago

You shouldn't need to generate it! You can just download this file here:

https://github.com/Quenty/luacheck-roblox/blob/master/roblox_standard.lua

And rename it .luacheck_rc

If you do want to compile the same file as roblox_standard.lua, you'll need to install these packages with luarocks.

NOTE: You do not need to compile it to get this to work with vscode and luacheck.

Check out this tutorial for more details on getting this to work with vscode!

https://medium.com/@filipspelar05/thanks-for-writing-this-article-this-is-the-first-time-i-got-it-to-work-6d20b7a4e741?