k-takata / minpac

A minimal package manager for Vim 8+ (and Neovim)
835 stars 30 forks source link

minpac#update() not working on Windows 10 + nvim 0.5.0 #122

Open ghillb opened 3 years ago

ghillb commented 3 years ago

Hello,

oddly :call minpac#update() fails for me on Windows 10 and nvim 0.5.0 with the following error:

Error detected while processing function <SNR>57_start_update[2]..<SNR>57_update_single_plugin[62]..<SNR>57_start_job[12]..minpac#job#start[1]..<SNR>59_job_start:
line   29:
E903: Process failed to start: no such file or directory: "/bin/bash"

OS: Windows 10 v1809 nvim version: NVIM v0.5.0-801-ga061d53e1 installed via: scoop install neovim-nightly minpac installed via: git clone https://github.com/k-takata/minpac.git %LOCALAPPDATA%\nvim\pack\minpac\opt\minpac

resulf of :call minpac#update():

Screenshot 2020-11-03 204206

On Linux minpac works flawlessly for me!

k-takata commented 3 years ago

I haven't used Neovim, so I'm not sure why this occurs. What does :set shell? show? I expect shell=C:\Windows\System32\cmd.exe. Do you set SHELL environment variable?

ghillb commented 3 years ago

You are absolutely right, the shell was pointing to bash. After removing it, :call minpac#update() now throws the following error: Screenshot 2020-11-04 172419

But after continuing with Return, the packages are installed correctly.

k-takata commented 3 years ago

Can you copy&paste the result of :message?

ghillb commented 3 years ago

It is unfortunately just what you see in the screenshot:

Error detected while processing function <SNR>15_HL:
line   43:
E421: Color name or number not recognized: ctermbg= gui=NONE cterm=NONE
E421: Color name or number not recognized: ctermbg= gui=NONE cterm=NONE
E421: Color name or number not recognized: ctermbg= gui=NONE cterm=NONE

I think its a problem with the colorscheme rather than with minpac. For some reason minpac triggers it and that only on Windows. Edit: I found it, I had to remove let g:gruvbox_sign_column = 'none'.