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 fugitive commands working - temp file name problem or <SNR>52_ReplaceCmd issue? #1054

Closed
philwhiles opened this issue Jul 13, 2018 · 7 comments

Comments

@philwhiles
Copy link

Fugitive cloned from master today, installed with Pathogen, running with vim81 under cygwin on windows server 2012

Git installation is windows version, not cygwin - git works fine when invoked from bash.

:Glog, :Gstatus etc shows a disparity between the temp file name used in the !git command redirection and the subsequent output display, but this is always preceded by a complaint about 52_ReplaceCmd.

Is this a bug or a setup/env issue?

untitled

@tpope
Copy link
Owner

tpope commented Jul 13, 2018

Those tempfiles are unrelated. The first is for running git log and the second is for displaying the first result. "Cannot open file" usually means "the command that was supposed to create this file failed". You'll have to crack open s:ReplaceCmd to see what went wrong. I don't have a way to test on Windows currently so I can't do much debugging myself.

@tpope
Copy link
Owner

tpope commented Jul 13, 2018

I guess I can at least direct you to the line that's probably failing:

call system('cmd /c "'.prefix.s:gsub(a:cmd,'[<>]', cmd_escape_char.'&').redir.'"')

@tpope
Copy link
Owner

tpope commented Jul 16, 2018

I improved the error messages a bit which might provide a clue.

@philwhiles
Copy link
Author

Pulled master - no better clues.
Sorry - don't do vimscript
The line you ref above appears not to be in master btw?

@tpope
Copy link
Owner

tpope commented Jul 17, 2018

It's here now:

return system('cmd /c "'.prefix.s:gsub(a:cmd,'[<>]', cmd_escape_char.'&').redir.'"')

You could change that return system to echomsg to see what it's trying to run.

@tpope
Copy link
Owner

tpope commented Jul 25, 2018

I have pushed some really good error messages.

@tpope
Copy link
Owner

tpope commented Aug 14, 2019

If it's still happening, report back with the new error message.

@tpope tpope closed this as completed Aug 14, 2019
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

2 participants