rescript-lang / rescript-lang/vim-rescript
Incorrect resource paths
まだ誰も着手していません。
- 主要言語
- 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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
g:rescript_bsc_exe と g:rescript_bsb_exe を割り当てているコードを特定し、l:res_bin_dir がどのように形成されているか、またそれがすでに絶対パスかどうかを確認します。Neovim 0.6.1 または別のサポート対象のセットアップでパスの構築を検証し、2 つの実行可能ファイルのパスに冗長な getcwd() プレフィックスが付加されなくなっていることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- neovim, vim
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100