kevinhwang91 / nvim-bqf

Better quickfix window in Neovim, polish old quickfix window.
BSD 3-Clause "New" or "Revised" License
1.69k stars 30 forks source link

Fzf mode emit Command failed #130

Closed kevyuu closed 10 months ago

kevyuu commented 10 months ago

Neovim version (nvim -v | head -n1)

nvim 0.9.2

Operating system/version

Windows 11

How to reproduce the issue

  1. Go to fzf mode in quickfix window

Content of bat file: @echo off setlocal enabledelayedexpansion "fzf" ^"--color^" ^"gutter:-1^" ^"--scroll-off^" ^"4^" ^"--no-separator^" ^"--multi^" ^"--ansi^" ^"--delimiter^" ^"\^|^" ^"--with-nth^" ^"2..^" ^"--nth^" ^"3..,1,2^" ^"--header-lines^" ^"0^" ^"--tiebreak^" ^"index^" ^"--info^" ^"inline^" ^"--prompt^" ^" Quickfix^> ^" ^"--no-border^" ^"--layout^" ^"reverse-list^" ^"--expect^" ^"ctrl-c,ctrl-q,ctrl-x,ctrl-v,ctrl-t^" ^"--bind^" ^"ctrl-o:toggle-all^" ^"--preview-window^" ^"0^" ^"--preview^" ^"echo {1} ^>^> C:\Users\kevin\AppData\Local\Temp\nvim.0\twEcoJ\0^" --no-height > C:\Users\kevin\AppData\Local\Temp\nvim.0\twEcoJ\1 endlocal

Expected behavior

Should not emit command failed.

Actual behavior

quickfix

kevinhwang91 commented 10 months ago

Does fzf.vim work fine for your system?

kevyuu commented 10 months ago

:Files seems okay to me fzf

kevinhwang91 commented 10 months ago

I am a newbie programmer in Windows, please provide detailed steps to build an environment for me to track.

rockyzhang24 commented 10 months ago

Maybe it's caused by parsing, escaping and processing the path in window, which is a nightmare.

kevyuu commented 10 months ago

Seems like the issue is in fzf, using list as source for fzf cause problem when using fzf in windows. I have uninstall bqf and try to run fzf#run({'source':['test1', 'test2']}) and get the same error.

kevyuu commented 10 months ago

If anyone meet the same issue, can change the $env:shell to cmd.exe. Using powershell as fzf shell seems to be buggy. '^' is an excape character for cmd.exe not powershell

rockyzhang24 commented 10 months ago

For someone encounting this issue, just throw windows away and switch to using Linux instead!