LuaLS / LuaLS/lua-language-server

WorkspaceUpdate and diagnostic changes

Open
#2,948 0 comments 0 reactions 0 assignees View on GitHub

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
image

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

  1. After some time this notification disappears, does server support frequent configuration changes?
  2. Is there any sync between updating workspace.library and diagnostic checks?
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.