vim-plug icon indicating copy to clipboard operation
vim-plug copied to clipboard

"No such file or directory" when using PlugUpdate

Open evesdropper opened this issue 3 years ago • 6 comments

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"
  • Type:
    • [X] Bug
    • [ ] Enhancement
    • [ ] Feature Request
    • [ ] Question
  • OS:
    • [ ] All/Other
    • [ ] Linux
    • [ ] OS X
    • [X] Windows
  • Vim:
    • [X] Terminal Vim
    • [ ] GVim
    • [X] Neovim

evesdropper avatar Sep 20 '21 16:09 evesdropper

Can't debug without init.vim

janlazo avatar Sep 22 '21 01:09 janlazo

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.

SuperCuber avatar Sep 22 '21 06:09 SuperCuber

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.

janlazo avatar Sep 26 '21 18:09 janlazo

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

SuperCuber avatar Sep 26 '21 19:09 SuperCuber

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).

janlazo avatar Sep 26 '21 19:09 janlazo

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.

PCZeroX avatar Jan 17 '22 19:01 PCZeroX