love2d-community / love-api

The whole LÖVE wiki in a Lua table.
http://love2d-community.github.io/love-api/
299 stars 47 forks source link

love.graphics is undefined #101

Closed twoco closed 2 years ago

twoco commented 2 years ago

I use the Lua extention by sumneko for VS Code. Config:

{
  "Lua.runtime.version": "LuaJIT",
  "Lua.diagnostics.globals": ["love", "lldebugger"],
  "Lua.workspace.library": ["${3rd}/love2d/library"],
  "Lua.workspace.checkThirdParty": false
}

But I get errors / warnings that graphics does not exist on love. But e.g. love.audio works. What's wrong?

image

.vscode\extensions\sumneko.lua-2.6.0\server\meta\3rd\love2d\library\love.lua

---@meta

-- version: 11.3
---@class love
love = {}
twoco commented 2 years ago

Ok after new start of vscode I get an error notification:

.vscode\extensions\sumneko.lua-2.6.0\server\meta\3rd\love2d\library\love.graphics.lua skipped. The currently set size limit is: 100 KB, and the file size is: 139.979 KB.

It seems this is an issue of the extension itself or vscode? So I'm closing this.