LuaLS / LuaLS/lua-language-server
Adding parent or higher directory to workspace.library of the .luarc.json of a subproject produces erroneous duplicate field/etc warnings
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Lua
- Sterne
- 4.4k
- Forks
- 442
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### How are you using the lua-language-server?
NeoVim
### Which OS are you using?
Linux
### What is the issue affecting?
Annotations, Type Checking, Diagnostics/Syntax Checking
### Expected Behaviour
No warnings issued for duplicate fields and similar.
### Actual Behaviour
Many warnings about duplicates are produced
### Reproduction steps
Create a subproject and add the parent directory to the subproject's .luarc.json, then create some annotated type and observe warnings about duplicates.
### Additional Notes
It is really a small issue but it would be great to be able to work on subprojects and get require() completions for both the true module name of the project, as well as my other projects within the path
### Log File
_No response_
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, das Problem in NeoVim unter Linux mit einem Unterprojekt zu reproduzieren, dessen .luarc.json das übergeordnete Verzeichnis zu workspace.library hinzufügt. Vergleiche die Diagnosen für annotierte Typen und doppelte Felder und überprüfe die require()-Vervollständigungen über die Projektpfade hinweg. Als erledigt gilt die Aufgabe, wenn die Konfiguration keine fehlerhaften Warnungen über Duplikate erzeugt und gleichzeitig die erwarteten Vervollständigungen beibehält.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- lua
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100