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

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

Open
5 of 12 tasks
tigerinus opened this issue Feb 17, 2023 · 2 comments
Open
5 of 12 tasks
Labels

Comments

@tigerinus
Copy link

tigerinus commented Feb 17, 2023

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
  • Type:
    • [?] Bug
    • Enhancement
    • Feature Request
    • Question
  • OS:
    • All/Other
    • Linux
    • macOS
    • Windows
  • Vim:
    • Terminal Vim
    • GVim
    • Neovim
  • Git:
    • MSYS2
  • Shell:
    • fish

Workaround

SHELL= nvim -c PlugUpdate         
@tigerinus
Copy link
Author

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
Copy link
Author

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.

@tigerinus tigerinus changed the title [Windows + NeoVIM] error: Error reading script file '/s' when running PlugUpdate [Windows + MSYS2/fish + NeoVIM] error: Error reading script file '/s' when running PlugUpdate Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants