luttje / glua-api-snippets

Scrapes the Garry's Mod Wiki in order to build Lua Language Server comments that will provide IDE suggestions and autocompletion.
MIT License
17 stars 6 forks source link

unsupported goto labels #54

Closed Techbot121 closed 2 months ago

Techbot121 commented 3 months ago

currently goto labels are being flagged for being incompatible, but they do indeed work since gmod is shipped with a embedded luajit library

image

changing the Lua.runtime.version in the settings.json to LuaJIT fixes this. I don't think it should introduce some weird behaviour with LLS but I didn't know what to test for.

luttje commented 3 months ago

Thanks for reporting!

Since Garry's Mod uses LuaJIT I think setting that as the runtime version should be fine. If you notice no problems in your projects with it, feel free to make a PR and I'll merge it (I made PR).

Thanks

luttje commented 2 months ago

@all-contributors please add @Techbot121 for bug

allcontributors[bot] commented 2 months ago

@luttje

I've put up a pull request to add @Techbot121! :tada: