LuaLS / LuaLS/lua-language-server

duplicate-doc-alias with enum

Open
#3,428 2 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?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Annotations

Expected Behaviour

It should not prompt "duplicate-doc-alias"

Actual Behaviour

An enum was defined using the ---@enum annotation, and then LuaLS warned "duplicate-doc-alias". Changing the enum name had no effect. After moving the file containing the enum definition to a different VS Code workspace, the issue no longer occurred.

Image
Reproduction steps

无法复现,该问题只在一个特定的工作区中出现。

Additional Notes

Unable to reproduce. This issue only occurs in one specific workspace.

Log File

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

Start with the LuaLS duplicate-doc-alias diagnostic for @---@enum annotations in the Windows Visual Studio Code extension. Try to reproduce it in the reported workspace and compare behavior after moving the enum file; no source file or usable log is provided. Done means identifying the workspace-specific cause and preventing the false warning, with a regression test if reproduction becomes possible.

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
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.