LuaLS / LuaLS/lua-language-server
WorkspaceUpdate and diagnostic changes
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
How are you using the lua-language-server?
Other
Which OS are you using?
Linux
What is the issue affecting?
Diagnostics/Syntax Checking
Expected Behaviour
Lua language server sends textDocument/publishDiagnostics with error but at the same time gives description
This error happens only when sending workspace/didChangeConfiguration every two seconds with new annotations for lua, working without frequent configuration changes works ok
- After some time this notification disappears, does server support frequent configuration changes?
- Is there any sync between updating workspace.library and diagnostic checks?
- Are there any ways how debug where the problem comes from?
Actual Behaviour
No error with undefined global appear
Reproduction steps
Actually, we wrote our own extension for VScode and use language server binary to run in separate subprocess
Additional Notes
No response
Log File
No response
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
No files or tests are named. Start by reproducing the issue while sending workspace/didChangeConfiguration every two seconds with changing Lua annotations, then trace how workspace.library updates interact with textDocument/publishDiagnostics. Done means identifying the synchronization or configuration behavior and either restoring the undefined-global diagnostic or documenting the supported behavior.
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