LuaLS / LuaLS/lua-language-server
Diagnostic warn about duplicates from symlinked workspace
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?
NeoVim
### Which OS are you using?
MacOS
### What is the issue affecting?
Diagnostics/Syntax Checking
### Expected Behaviour
I expected ignoring symlinks.
### Actual Behaviour
I have a plugin I'm developing on my machine and I'm using Packer (plugin manager) to install the plugin in a plugins directory. Local plugins are just symlinked. This causes the diagnostics to warn about duplicates in every single annotation.
If I remove the symlink diagnostic stop spamming warnings.

### Reproduction steps
1. Install latest stable neovim
2. Install Packer or, I think, any other plugin manager
3. Install local plugin via plugin manager `use("~/path_to_plugin")`
2. Open any file which contains annotations
4. See warnings
### 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
Reproduce the issue with NeoVim, Packer, and a local plugin installed through a symlink, then compare diagnostics with the symlink removed. Start from the diagnostics/syntax-checking path that reports duplicate annotations. Done means symlinked workspaces no longer produce duplicate warnings while normal diagnostics still appear.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, macos
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100