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

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

Open
4 of 11 tasks
evesdropper opened this issue Sep 20, 2021 · 6 comments
Open
4 of 11 tasks

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

evesdropper opened this issue Sep 20, 2021 · 6 comments

Comments

@evesdropper
Copy link

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:
    • Bug
    • Enhancement
    • Feature Request
    • Question
  • OS:
    • All/Other
    • Linux
    • OS X
    • Windows
  • Vim:
    • Terminal Vim
    • GVim
    • Neovim
@janlazo
Copy link
Collaborator

janlazo commented Sep 22, 2021

Can't debug without init.vim

@SuperCuber
Copy link

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

janlazo commented Sep 26, 2021

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

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

janlazo commented Sep 26, 2021

neovim/neovim#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
Copy link

PCZeroX commented Jan 17, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants