You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Getting Undefined field "field_name".
Last working version: 2.6.8
Current version: 3.0.2
To Reproduce
Steps to reproduce the behavior:
Go to '...'
Click on '....'
Scroll down to '....'
See error
Expected behavior
Screenshots
Environment (please complete the following information):
OS: Windows
Client: VSCode
Additional context
The classes are big and this is a fragment of them but illustrates the issue.
The fields were properly recognized using version 2.6.8
For example, the field wep1 and xp are not recognized when using 3.x (including 3.0.2), neither when typing to give suggestions, nor after being fully typed.
There are classes that inherit from this one and they have the same behavior for the fields, either theirs or parent's, undefined with version 3.0.2
Hi sumneko, I looked at 980 before creating this issue, probably I'm missing something, but could you point me towards what? Do i need to change/add a lot of annotations now, to make it work like 2.6.8, what am I missing?
Or the case is not yet supported and I just need to wait?
Describe the bug
Getting Undefined field "field_name".
Last working version: 2.6.8
Current version: 3.0.2
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
Environment (please complete the following information):
Additional context
The classes are big and this is a fragment of them but illustrates the issue.
The fields were properly recognized using version 2.6.8
For example, the field wep1 and xp are not recognized when using 3.x (including 3.0.2), neither when typing to give suggestions, nor after being fully typed.
There are classes that inherit from this one and they have the same behavior for the fields, either theirs or parent's, undefined with version 3.0.2
`
---@Class Cl_char
Cl_char = {}
Cl_char.__index = Cl_char
setmetatable(Cl_char,
{
__call = function(cls, init_t)
local self = setmetatable({}, cls)
self:init(init_t)
return self
end,
})
function Cl_char:init(init_t)
self.wep1 = nil
self.xp = 0
end
function Cl_char:free()
if self.wep1 then self.wep1:free() end
end
`
Provide logs
Find the log at https://github.com/sumneko/lua-language-server/wiki/Default-log-path
The text was updated successfully, but these errors were encountered: