File/folder renames where only capitalization changes causes assumed duplication
还没有人认领这个 Issue。
评估
调研方向
Start by tracing how the language server tracks an open file when its path changes only in capitalization, using the reproduction steps with a.lua renamed to A.lua on Windows. The report does not name a source file or test, so locate the file tracking and duplicate-field diagnostic entry points, then add a regression test for the rename case. Done when the class fields are no longer reported as duplicates after the rename.
由索引模型根据 Issue 内容生成。
描述
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?
Diagnostics/Syntax Checking
Expected Behaviour
When a file or folder is renamed from, for example, test to Test, the language server should not suddenly mark everything as Duplicate-Defined-Field/etc.
Actual Behaviour
All fields within classes are marked as duplicates.
Reproduction steps
- Create a file,
a.lua. - Open the file so it's an opened tab in the editor.
- Rename it to
A.lua. - Write a basic class definition into it.
---@class X
---@field Y string
local x = {}
function x.new() end
- Observe the bug.
Additional Notes
Windows treats paths containing different capitalization as the same file, unlike linux. a.lua in Windows is the same as A.lua. I believe there is an assumption somewhere that a.lua does not equal A.lua and it causes the language server to bug out.
Log File
I just want to report this then sleep. If nobody else is able to reproduce/get logs, I will do so tomorrow.
- 主要语言
- Lua
- 星标
- 4.4k
- 派生
- 452
- 平均合并
- 15 天 6 小时
- 30 天内合并 PR
- 4
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
LuaLS/lua-language-server 的其他 Issue
-
Witch 2未关闭
难度 1/5 1 小时以内 新手友好度 91/100
LuaLS/lua-language-server#3482 ·
-
难度 1/5 1 小时以内 新手友好度 86/100
LuaLS/lua-language-server#3481 ·
-
难度 1/5 1 小时以内 新手友好度 87/100
LuaLS/lua-language-server#3480 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 62/100
LuaLS/lua-language-server#1776 ·
-
`continue -- comment` rejected with `runtime.nonstandardSymbol=["continue"]`可能已有人在做 @ybai08 于 3 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
LuaLS/lua-language-server#3474 · 1 条评论 ·
查看 LuaLS/lua-language-server 的全部 Issue
相似的 Issue
-
guide
难度 2/5 1-3 小时 新手友好度 72/100
fitzforge/polestar#672 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
jangala-dev/devicecode-lua#344 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
luainkernel/lunatik#2018 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 78/100