LuaLS / LuaLS/lua-language-server

Validation of function-type parameters

Open
#2,702 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
4.4k
Forks
442
PR merge metrics
No merged PRs in 30d

Description

I expect error to occur on last line, because formal and actual signatures of callbacks do not match.
But no any warnings happened.

![image](https://github.com/LuaLS/lua-language-server/assets/75124358/30715c3d-c96f-4681-a5bd-7cbea13f73b5)

Contributor guide

Open the contributing guide

Research direction

Start by reconstructing the callback example shown in the attached image and reproduce the missing warning for the mismatched formal and actual signatures. Trace function-type parameter validation from that reproduction; done means the final line reports the signature mismatch without introducing unrelated warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.