LuaLS / LuaLS/lua-language-server

versions 3.16.x are slower than 3.15.x

Open
#3,322 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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?

NeoVim

### Which OS are you using?

Windows

### What is the issue affecting?

Type Checking, Completion, Diagnostics/Syntax Checking, Hover, Libraries

### Expected Behaviour

Be able to parse/load the lua workspace/environment as fast as versions 3.15.x, or faster ideally.

### Actual Behaviour

Many seconds slower to load into lua files such as init.lua.

### Reproduction steps

Install versions 3.16.0 or later, and open a lua file.

### Additional Notes

my lua_ls config looks like this;
```lua
lua_ls = {
Lua = {
hint = {
semicolon = 'All'
},
runtime = {
version = 'LuaJIT',
path = {
'?.lua',
'?/init.lua'
},
pathStrict = true
},
workspace = {
checkThirdParty = false,
library = vim.api.nvim_get_runtime_file('', true)
},
telemetry = {
enable = false
}
}
}
```
loading into init.lua for neovim has to scan ~1600 in the counter, and it takes at least 15 seconds on version 3.16.4, and only up to 4 seconds on 3.15.0.

### 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

Reproduce the slowdown by opening init.lua in Neovim on Windows with the provided lua-language-server configuration, comparing 3.15.0 with 3.16.4 or later. Start by measuring the workspace/library scan, including the reported ~1600 counter, and identify what differs between versions. Done means loading completes near the earlier four-second result rather than taking at least 15 seconds.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.