"Lua PSI Viewer" feature not working.
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- TypeScript
- Estrelas
- 215
- Forks
- 62
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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 ):
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Inspecione client/src/psi/psiViewer.ts, especialmente o valor de distDirectory e como o PSI Viewer resolve index.html. Reproduza o comando Lua PSI Viewer na Command Palette e verifique se o caminho client/webvue/build/index.html empacotado é usado. Está concluído quando o visualizador abre sem o erro de arquivo ausente.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- typescript, vscode
- Domínio
- devtools
- Tipo de issue
- Bug
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Status de atividade
- Estagnada
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 58/100