LuaLS / LuaLS/lua-language-server
duplicate-doc-alias with enum
未关闭
还没有人认领这个 Issue。
- 主要语言
- Lua
- 星标
- 4.4k
- 派生
- 442
- PR 合并指标
- 30 天内没有已合并 PR
描述
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.
Reproduction steps
无法复现,该问题只在一个特定的工作区中出现。
Additional Notes
Unable to reproduce. This issue only occurs in one specific workspace.
Log File
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 Windows Visual Studio Code 扩展中针对 @---@enum 注解的 LuaLS duplicate-doc-alias 诊断开始。在报告的 workspace 中尝试复现,并比较移动 enum 文件后的行为;未提供源文件或可用的日志。完成标准是找出 workspace 特定的原因并防止错误警告;如果能够复现,则添加回归测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- lua
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100