LuaLS / LuaLS/vscode-lua

"Lua PSI Viewer" feature not working.

Abierto
#172 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
TypeScript
Estrellas
215
Forks
62
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### 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:
```diff
- private static readonly distDirectory = "client/web/dist";
+ private static readonly distDirectory = "client/webvue/build";
```

### Reproduction steps

Steps to reproduce:


Type: Lua PSI Viewer

Image

get this error message:

Image

### 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 ):

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Inspecciona client/src/psi/psiViewer.ts, especialmente el valor de distDirectory y cómo PSI Viewer resuelve index.html. Reproduce el comando Lua PSI Viewer desde la Command Palette y verifica que se use la ruta client/webvue/build/index.html empaquetada. Se considera terminado cuando el visor se abre sin el error de archivo inexistente.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
typescript, vscode
Área
devtools
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
58/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.