LuaLS / LuaLS/lua-language-server
一些3.4.0新增功能的语法检查异常
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description


单独写lua没能复现
另外有没有强制修改类型的配置方式,比如
`---@class A
local a = {}
---@class B:A
---@type string|number
local c = 1
---comment
---@return A
---@return string|number
local function func1()
return a, c
end
---comment
---@return B
---@return number
local function func2()
local ta, tb = func1()
return ta, tb
end`
在这种情况下我怎么去配置使ta、ta符合返回值类型?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the two screenshots and the provided Lua annotations involving A, B, and union return types. Reproduce the 3.4.0 syntax-checking behavior in the language server, then determine whether the reported diagnostics and the requested forced-type configuration can be addressed; done means the behavior is explained and a concrete configuration or limitation is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100