"Lua PSI Viewer" feature not working.
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 215
- 派生
- 62
- PR 合并指标
- 30 天内没有已合并 PR
描述
### 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
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 ):
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
检查 client/src/psi/psiViewer.ts,尤其是 distDirectory 的值以及 PSI Viewer 如何解析 index.html。从 Command Palette 中重新执行 Lua PSI Viewer 命令,并验证使用的是打包后的 client/webvue/build/index.html 路径。查看器能够在没有缺少文件错误的情况下打开,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- typescript, vscode
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 58/100