"Lua PSI Viewer" feature not working.
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 215
- Fork
- 62
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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 ):
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Esamina client/src/psi/psiViewer.ts, in particolare il valore di distDirectory e il modo in cui PSI Viewer risolve index.html. Riproduci il comando Lua PSI Viewer dalla Command Palette e verifica che venga utilizzato il percorso client/webvue/build/index.html incluso nel pacchetto. Il lavoro è completato quando il viewer si apre senza l'errore di file mancante.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript, vscode
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 58/100