-
如题,emmylua支持这么用
---@type a_class
local mt = {}
mt.__index = mt
function mt:balabala()
end
local M = {}
function M.new()
---@class a_class
local obj = {
a=1,
}
setmetatable(ob…
-
```lua
---@generic T
---@param param1 T
---@return T[]
local function test_one(param1)
end
local a = test_one(xxxx) -- 此处的a提示的是T[]类型,而非真正传进去xxxx的数组类型
-
可以使用硬断点luapanda.bp(),但是不能使用红点点击,报错信息就是标题
-
@CppCXY recommended I open a new issue from https://github.com/LuaLS/lua-language-server/issues/2951
In Zerobrane Studio Mobdebug works really well and is easy to setup (`luarocks install mobdebug`…
-
https://user-images.githubusercontent.com/68118705/223340765-0b1ec951-2833-46d6-8423-cb1306eeb987.mp4
-
具体代码说明下问题吧:
消息定义:
message refine_set
{
optional int32 set_attrs = 1;
optional int32 set_quality = 2;
}
message rep_E_C2S_EQUIP_GET_REFINE
{
optional int32 isok = 1;
repeated refine_s…
-
刚刚做Lua二次开发不久,我们做的项目非原生lua
代码底层自带有很多的全局变量如sys,log等
如果勾选了 Check No Define 会提示1k+的警告信息
可是如果不勾选他又无法直观的看到项目中哪些变量有问题
使用`luacheck` 可以通过添加参数`--globals sys log`这样的方式来忽略这些变量的警告
使用`LuaHelper`是否有类…
itldg updated
2 years ago
-
LuaLS is by far the best Lua language server. But debugging is a really important part of development (especially remote debugging given where Lua runs). I currently use https://github.com/pkulchenko/…
-
[Error - 08:50:45] Connection to server is erroring. Shutting down server.
[Error - 08:50:45] Connection to server is erroring. Shutting down server.
[Error - 08:50:45] Connection to server got clos…
-
单例类内部这样定义:XXXData.Instance = self
外部调用:XXXData.Instance:GetRoleLv()
期望是跳转到 GetRoleLv() 方法定义处,但实际总是会跳转到 Instance 定义处。