Open mynamedjef opened 7 months ago
By default, asyncrun uses shell
and shellcmdflag
to run command.
Changing them may cause issues.
Solution: specify dedicated shell option for asyncrun:
let g:asyncrun_shell = 'c:\windows\system32\cmd.exe'
let g:asyncrun_shellflag = '/c'
Thanks for quick response.
Tried your suggestion, but the problem is identical. Is there a way to set up default shellredir
, shellpipe
, shellquote
and shellxquote
? Since they seem to be important too
Hey I have made a pull request to allow changing the shell on windows with neo-vim,
https://github.com/skywind3000/asyncrun.vim/pull/287
To enable using cmd for asyncrun
let g:asyncrun_shell = 'c:\windows\system32\cmd.exe'
let g:asyncrun_shellflag = '/c'
Using this minimal setup and neovim:
When I run
:AsyncRun
, I get something like this (python x.py
should just output'ok'
):Taking a look at
asyncrun.cmd
:Removing shell commands (from
let &shell
toset shellquote
), makesAsyncRun
work correctly. My logic is that powershell doesn't invokeasyncrun.cmd
correctly. Is there a fix for this?