rescript-lang / rescript-lang/vim-rescript

Incorrect resource paths

未关闭
#59 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
Vim Script
星标
164
派生
17
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

定位为 g:rescript_bsc_exe 和 g:rescript_bsb_exe 赋值的代码,然后检查 l:res_bin_dir 的形成方式,以及它是否已经是绝对路径。在 Neovim 0.6.1 或其他受支持的设置上验证路径构造,并确认两个可执行文件路径都不再接收多余的 getcwd() 前缀。

由索引模型根据 Issue 内容生成。

评估

技术栈
neovim, vim
领域
tooling
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。