"Lua PSI Viewer" feature not working.
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 215
- Forks
- 62
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Which OS are you using?
Linux
Expected Behaviour
The "Lua PSI Viewer" feature, when ran, it expects some index.html file to be at this path:
~/.vscode/extensions/sumneko.lua-3.15.0-linux-x64/client/web/dist/index.html
but presumably the index.html file path actually exists here
~/.vscode/extensions/sumneko.lua-3.15.0-linux-x64/client/webvue/build/index.html
The error happens because of exactly this line:
https://github.com/LuaLS/vscode-lua/blob/9e91c07ce7b3b9fa162763b0eb7d39cf90033798/client/src/psi/psiViewer.ts#L18
so just do:
- private static readonly distDirectory = "client/web/dist";
+ private static readonly distDirectory = "client/webvue/build";
Reproduction steps
Steps to reproduce:
<Ctrl+Shift+P>
Type: Lua PSI Viewer
get this error message:
Additional Notes
the bug got introduces in ~3 years ago, by commit 1c7a326
i actually dont know what this "Lua PSI Viewer" feature is for :P
Im curious to find out when it works (again)
Also, I was considering making this a pull request, but i dont know how to compile/run this project, so i cant test fix sry ):
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
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
Untersuche client/src/psi/psiViewer.ts, insbesondere den Wert von distDirectory und wie der PSI Viewer index.html auflöst. Führe den Lua PSI Viewer-Befehl aus der Command Palette aus und überprüfe, dass der Pfad client/webvue/build/index.html aus dem Paket verwendet wird. Erledigt ist die Aufgabe, wenn der Viewer ohne den Fehler wegen der fehlenden Datei geöffnet wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript, vscode
- Bereich
- devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 58/100