Incorrect resource paths
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- neovim, vim
- 领域
- tooling
调研方向
定位为 g:rescript_bsc_exe 和 g:rescript_bsb_exe 赋值的代码,然后检查 l:res_bin_dir 的形成方式,以及它是否已经是绝对路径。在 Neovim 0.6.1 或其他受支持的设置上验证路径构造,并确认两个可执行文件路径都不再接收多余的 getcwd() 前缀。
由索引模型根据 Issue 内容生成。
描述
For some reason, on my setup, the following code results in the wrong paths:
let g:rescript_bsc_exe = getcwd() . "/" . l:res_bin_dir . "/bsc.exe"
let g:rescript_bsb_exe = getcwd() . "/" . l:res_bin_dir . "/bsb.exe"
The path l:res_bin_dir is already absolute, so prepending getcwd() adds redundant directories to the front and makes the path wrong.
This change fixes the paths on my system: https://github.com/ellbur/vim-rescript/commit/b42b94e939c1827d8ca32d0bbc46f5340755e796
I don't know much about vimscript so I don't know if that would cause problems on other systems.
My system is: Linux (Manjaro), NeoVim 0.6.1.
- 主要语言
- Vim Script
- 星标
- 164
- 派生
- 17
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
rescript-lang/vim-rescript 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
Add errorformat 未关闭
难度 3/5 1-2 天 新手友好度 35/100
rescript-lang/vim-rescript#74 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
rescript-lang/vim-rescript#67 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 30/100
rescript-lang/vim-rescript#66 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
查看 rescript-lang/vim-rescript 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
idean3885/claude-ops-agent#521 ·
-
难度 2/5 1-3 小时 新手友好度 72/100
0xMiden/bridge-portal#132 ·
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
newrelic-experimental/preflight#793 · 1 条评论 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 70/100
babalae/bettergi-scripts-list#3674 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
caddyserver/caddy#8046 ·