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

Running PlugClean in nvim from Git Bash fails. #1300

Open
3 of 11 tasks
daxgames opened this issue Dec 29, 2024 · 6 comments
Open
3 of 11 tasks

Running PlugClean in nvim from Git Bash fails. #1300

daxgames opened this issue Dec 29, 2024 · 6 comments
Labels

Comments

@daxgames
Copy link

Error happens when running :PlugClean in nvim from Git Bash on Windows.

Note: Git Bash is part of a portable Git for Windows 'install' and nvim was installed using Chocolatey.

image

Answering y just as a test, because all these plugins are indeed installed.

image

It works correctly if running in a cmd.exe or powershell.exe shells.


My plug block is modular and not in a single file.  I could manufacture one if you like.
NVIM v0.10.1
Build type: Release
LuaJIT 2.1.1713484068
  • Type:
    • Bug
    • Enhancement
    • Feature Request
    • Question
  • OS:
    • All/Other
    • Linux
    • macOS
    • Windows
  • Vim:
    • Terminal Vim
    • GVim
    • Neovim
@junegunn
Copy link
Owner

What is the output of :echo [&shell, &shellcmdflag, &shellredir]?

@daxgames
Copy link
Author

daxgames commented Jan 5, 2025

image

@daxgames
Copy link
Author

daxgames commented Jan 5, 2025

Run this from Git for Windows Portable to recreate:

image

@junegunn
Copy link
Owner

junegunn commented Jan 6, 2025

image

I suspect the values are inconsistent, because bash doesn't support /s or /c, they are options of cmd.exe. Do you manually override the &shell value in your configuration file? Does a simple command like :echo system('git --help') work in Vim?

@daxgames
Copy link
Author

daxgames commented Jan 6, 2025

I do not override the shell and I don't know where those command line arguments come from because literally all I do is double click on git-bash.exe.

It's not really that big a deal I just noticed it so I reported it

@junegunn
Copy link
Owner

junegunn commented Jan 7, 2025

I mean the failure seems to have been caused by the incorrect &shellcmdflag value, so I wanted to check if that's really the case by checking if a simple system call outside of vim-plug works, i.e. :echo system('git --help').

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