File/folder renames where only capitalization changes causes assumed duplication
まだ誰も着手していません。
評価
調査の方向性
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時間
- マージ済み PR(30日)
- 4
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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