Skip to content

duplicate-doc-alias with enum #3428

Open

Description

@54679128

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

Activity

  1. CppCXY commented on Jul 1, 2026

    @CppCXY
    Member

    我判断是, 你修改了这个文件的大小写导致的这个问题, 在windows上, 在vscode中仅仅修改拼写的大小写并不会真的生效, 而且可能引起vscode认为存在两个名称近似仅仅大小写不同的两个文件

  2. Issues-translate-bot commented on Jul 1, 2026

    @Issues-translate-bot

    Sumneko Lua translate bot


    My judgment is that this problem is caused by you changing the case of this file. On Windows, just changing the case of spelling in vscode will not really take effect, and it may cause vscode to think that there are two files with similar names but different cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions