Incorrect resource paths
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- neovim, vim
- Domain
- tooling
Research direction
Locate the code that assigns g:rescript_bsc_exe and g:rescript_bsb_exe, then inspect how l:res_bin_dir is formed and whether it is already absolute. Verify the path construction on Neovim 0.6.1 or another supported setup, and confirm that both executable paths no longer receive a redundant getcwd() prefix.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Vim Script
- Stars
- 164
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rescript-lang/vim-rescript
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Add errorformat Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
rescript-lang/vim-rescript#74 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
rescript-lang/vim-rescript#67 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
rescript-lang/vim-rescript#66 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in rescript-lang/vim-rescript
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
hemilabs/ui-monorepo#2332 ·
-
Help-Wanted Needs-Triage Package-Update
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
microsoft/winget-pkgs#438662 ·
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
olcf/olcf-test-harness#278 · 1 comment ·