LuaLS / LuaLS/lua-language-server

Diagnostic warn about duplicates from symlinked workspace

Open
#2,003 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

question
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.

Screenshot 2023-03-12 at 14 55 48
Screenshot 2023-03-12 at 14 57 27

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.