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

neovim cannot execute programs from within the application #23278

Open
2 of 6 tasks
askondro opened this issue Feb 3, 2025 · 1 comment
Open
2 of 6 tasks

neovim cannot execute programs from within the application #23278

askondro opened this issue Feb 3, 2025 · 1 comment
Labels

Comments

@askondro
Copy link

askondro commented Feb 3, 2025

Description / Steps to reproduce the issue

Using the ucrt64 environment.

Install neovim with mingw-w64-ucrt-x86_64-neovim-qt (version 0.2.19-1 as of latest).

Run nvim-qt or nvim console.

type: !:test.exe (or other executable which exists)

Expected behavior

:!test.exe

should execute the application.

Actual behavior

Image

Verification

Windows Version

MINGW64_NT-10.0-26100

MINGW environments affected

  • MINGW64
  • MINGW32
  • UCRT64
  • CLANG64
  • CLANGARM64

Are you willing to submit a PR?

No response

@askondro askondro added the bug label Feb 3, 2025
@askondro askondro changed the title nevim cannot execute programs from within the application neovim cannot execute programs from within the application Feb 3, 2025
@sewbacca
Copy link
Contributor

sewbacca commented Feb 5, 2025

Might be a configuration issue. Try either setting via Lua:

-- $LOCALAPPDATA/nvim/init.lua
if vim.opt.shell:get():find "msys" then -- If it doesn't work, skip this check
	vim.opt.shellxquote = '('
	vim.opt.shellslash = true
	vim.opt.shellcmdflag = '-c'
	vim.opt.shelltemp = false
end

or adhoc

:set shellxquote=(
:set shellslash
:set shellcmdflag=-c
:set noshelltemp

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