Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install the binary file #854

Closed
seongs1024 opened this issue Jul 19, 2022 · 4 comments
Closed

Cannot install the binary file #854

seongs1024 opened this issue Jul 19, 2022 · 4 comments

Comments

@seongs1024
Copy link

seongs1024 commented Jul 19, 2022

Environment:

  • OS: WSL2 ubuntu
  • (Neo)Vim version: Vim 8.1.2269
  • vim-clap version: v0.35

Describe the bug

Cannot install the binary file with Plug 'liuchengxu/vim-clap', { 'do': { -> clap#installer#force_download() } }

Clap debug

Error detected while processing function clap#[5]..clap#installer#install[7]..clap#installer#build_all[7]..SNR>30_unix_sanity_check_is_ok:
line   12:
E484: Can't open file /tmp/vaC0B75/3
has cargo: 1
has maple: v:null
has +python3: 1
has py dynamic module: 0
has ctags: ctags not found
rustc version:
Error detected while processing function clap#[25]..clap#debugging#info:
line   44:
E484: Can't open file /tmp/vaC0B75/4

Additional context

After following the guide, downloading pre-built binary, vim-clap works except git-related commands.

Same error message of:

  • :Clap bcommits
  • :Clap commits
  • :Clap git_diff_files
Error detected while processing function clap#[46]..clap#for[23]..SNR>69_detect_source_type[9]..79[1]..clap#provider#commits#source_common[1]..clap#path#get_git_root:
line    1:
E484: Can't open file /tmp/vm6phQZ/7
E684: list index out of range: 0

Especially :Clap gfiles works though.

@seongs1024 seongs1024 added the bug Something isn't working label Jul 19, 2022
@liuchengxu
Copy link
Owner

Some providers can work without the Rust binary, but some are not.

Looks like your vim failed to call system() somehow, can you see what :echo system("uname") says?

@seongs1024
Copy link
Author

seongs1024 commented Jul 20, 2022

:echo system("uname") says:

E484: Can't open file /tmp/vZdM1Y0/0

echo works but system() doesn't work.
I guess, it's not the problem of vim-clap.

But on the terminal, uname says:

/home/user〉uname                                                                           07/20/2022 05:09:58 PM
Linux

@liuchengxu
Copy link
Owner

It's probably caused by the shell you are using, a few useful links, kristijanhusak/vim-js-file-import#31, dag/vim-fish#50.

@seongs1024
Copy link
Author

seongs1024 commented Jul 20, 2022

I'm using nushell so the vim system() call doesn't work.
I put set shell=/bin/bash in the ~/.vimrc file, which fixed the problem.

Thanks a lot!

@liuchengxu liuchengxu removed the bug Something isn't working label Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants