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
- 分支
- 449
- 平均合併
- 15 天 6 小時
- 30 天內合併 PR
- 4
環境準備
- 提供 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
LuaLS/lua-language-server 的其他 Issue
-
難度 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 於 2 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 35/100
LuaLS/lua-language-server#3474 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 35/100
LuaLS/lua-language-server#3470 ·
查看 LuaLS/lua-language-server 的全部 Issue
相似的 Issue
-
bug discord guide:04-the-barrens locale:enUS triage v0.2.6
難度 2/5 1-3 小時 新手友好度 64/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 78/100
-
難度 2/5 1-3 小時 新手友好度 78/100
scp-fs2open/fs2open.github.com#7914 ·
維護者通常 1 天內回覆
-
severity: low
難度 1/5 1-3 小時 新手友好度 89/100
luainkernel/lunatik#1980 ·
維護者通常 1 天內回覆
-
enhancement good first issue help wanted
難度 2/5 1-3 小時 新手友好度 68/100
gabrielmongefranco/privatium-app-meds#26 ·
維護者通常 1 天內回覆