Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

File/folder renames where only capitalization changes causes assumed duplication

Offen
#3,478 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
lua
Bereich
backend

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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
Image

All fields within classes are marked as duplicates.

Reproduction steps
  1. Create a file, a.lua.
  2. Open the file so it's an opened tab in the editor.
  3. Rename it to A.lua.
  4. Write a basic class definition into it.
---@class X
---@field Y string
local x = {}

function x.new() end
  1. 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.

Vorherrschende Sprache
Lua
Sterne
4.4k
Forks
449
Ø Merge
15 T. 6 Std.
Gemergte PRs (30 T.)
4

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus LuaLS/lua-language-server

Alle Issues in LuaLS/lua-language-server

Ähnliche Issues

Weitere Issues zu Lua

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.