junegunn / vim-plug

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

"No such file or directory" when using PlugUpdate #1132

Open evesdropper opened 2 years ago

evesdropper commented 2 years ago

Whenever I try to update plugins using PlugUpdate, the following error appears. It doesn't seem that the plugins are being updated. I tried uninstalling the plugins and reinstalling them, but they could not be found when trying to uninstall too. However, when checking the plugged folder, all of the plugins are in the folder. image image


:version
NVIM v0.5.0
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe /DWIN32 /D_WINDOWS /W3 -DNVIM_TS_HAS_SET_MATCH_LIMIT /MD /Zi /O2 /Ob1 /DNDEBUG /W3 -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -DWIN32 -D_WIN32_WINNT=0x0600 -DINCLUDE_GENERATED_DECLARATIONS -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -ID:/a/neovim/neovim/build/config -ID:/a/neovim/neovim/src -ID:/a/neovim/neovim/nvim-deps/usr/include -ID:/a/neovim/neovim/build/src/nvim/auto -ID:/a/neovim/neovim/build/include
Compiled by runneradmin@fv-az152-786

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

   system vimrc file: "$VIM\sysinit.vim"
  fall-back for $VIM: "C:/Program Files/nvim/share/nvim"
janlazo commented 2 years ago

Can't debug without init.vim

SuperCuber commented 2 years ago

I have the same issue, and similar errors happen both when using nvim-qt.exe (v0.5.0) from cmd and from git-bash.

Example vimrc:

" Plug
set runtimepath+=~/.vim
call plug#begin("~/.local/share/nvim/plugged")

Plug 'tpope/vim-commentary'

call plug#end()

PlugUpdate Results in:

- vim-commentary: The system cannot find the path specified.

PlugClean Results in:

x  C:\Users\myuser\.local\share\nvim\plugged\comfortable-motion.vim\:
    The system cannot find the path specified.

for every previously installed plugin.

When started from git-bash.exe, the errors are:

x vim-commentary:
    /usr/bin/bash: /s: No such file or directory

and

x  C:\Users\myuser\.local\share\nvim\plugged\comfortable-motion.vim\:
    /usr/bin/bash: /s: No such file or directory

for update and clean respectively.

janlazo commented 2 years ago

https://github.com/junegunn/vim-plug#usage suggests stdpath('data') . '/plugged', not ~/.local/share/nvim on Windows. git-bash doesn't influence Neovim. WSL is suppose to be unix environment, unlike git-bash.

SuperCuber commented 2 years ago

stdpath('data') . '/plugged'

I'll try it out but from the nature of the error I suspect it will persist.

git-bash doesn't influence Neovim

Well it clearly does since the error is different :P

janlazo commented 2 years ago

https://github.com/neovim/neovim/issues/14605. Setting the SHELL variable overrides neovim's default shell for that system but neovim does not adjust its shell-related options (ie. shellcmdflag).

PCZeroX commented 2 years ago

I'm beginner in bash scripting. I have the same problem when I run and update plugins in git bash terminal on windows 10, but not in powershell terminal. How to set SHELL (bash path) to remove that error message in neovim.