junegunn / vim-plug

:hibiscus: Minimalist Vim Plugin Manager
https://junegunn.github.io/vim-plug/
MIT License
34.07k stars 1.93k forks source link

[Windows + MSYS2/fish + NeoVIM] error: Error reading script file '/s' when running `PlugUpdate` #1227

Open tigerinus opened 1 year ago

tigerinus commented 1 year ago

Run nvim -c PlugUpdate and got this:

image

Please give some hints on where to look further about this issue.


" vim-plug
call plug#begin('~/.vim/plugins')
Plug 'tpope/vim-sensible'               " settings that make sense
Plug 'joshdick/onedark.vim'             " color theme
Plug 'airblade/vim-gitgutter'           " reflect git changes per line
Plug 'sheerun/vim-polyglot'             " syntax highlighting for languages
Plug 'scrooloose/syntastic'             " syntax checker for languages
Plug 'romgrk/barbar.nvim'               " tabline
Plug 'vim-airline/vim-airline'          " statusline
Plug 'vim-airline/vim-airline-themes'   " status bar theme
Plug 'godlygeek/tabular'                " text filtering and alignment
Plug 'chiel92/vim-autoformat'           " code formatting
Plug 'kyazdani42/nvim-web-devicons'     " icons

call plug#end()
NVIM v0.8.3
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compiled by runneradmin@fv-az171-224

Features: -acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM\sysinit.vim"
  fall-back for $VIM: "C:/Program Files (x86)/nvim/share/nvim"

Run :checkhealth for more info

Workaround

SHELL= nvim -c PlugUpdate         
tigerinus commented 1 year ago

I reproduced the issue on a different Windows machine

NVIM v0.8.2
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compiled by runneradmin@fv-az28-353

Features: -acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM\sysinit.vim"
  fall-back for $VIM: "C:/Program Files (x86)/nvim/share/nvim"

Run :checkhealth for more info
tigerinus commented 1 year ago

I got the same error message when running fish /s whatever

image

Somewhere in your .vim must be calling $SHELL /s ... or something like that.