fourjay / vcscommand

Automatically exported from code.google.com/p/vcscommand
0 stars 0 forks source link

VCSCommand can not find svn.exe #106

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. I installed the newest VCSCommand (1.99.47) on my Windows 7 for gvim 7.3
2. I have tried ':!svn info .' and it returned a correct response.
3. Any VCSCommand fails with the message "version control command failed: 
command not found"
4. I tried to tweak the VCSCommandSVNExec but I always ended up with "no plugin 
error"

Thanks for any suggestions.

Chris 

Original issue reported on code.google.com by oti...@googlemail.com on 23 Apr 2013 at 7:59

GoogleCodeExporter commented 8 years ago
Where is SVN installed on your system?

When you execute ':!svn info .', is your working directory the same as the 
directory of the file in question?

What values of VCSCommandSVNExec did you try?

Original comment by bob.hies...@gmail.com on 23 Apr 2013 at 8:44

GoogleCodeExporter commented 8 years ago
Here is the value I use on Windows 7, gvim 7.3:

let g:VCSCommandSVNExec='c:\Program Files\TortoiseSVN\bin\svn.exe'

Original comment by bob.hies...@gmail.com on 23 Apr 2013 at 8:52

GoogleCodeExporter commented 8 years ago
Yes I am in my repository when I executed ':!svn info .' and there is a '.svn' 
directory. 

My svn command is in the $PATH and located at 'C:/Program Files\ 
(x86)/utils/svn.exe'

So I tried 

- let g:VCSCommandSVNExec='C:/Program Files\ (x86)/utils/svn.exe' no suitable 
plugin
- let VCSCommandSVNExec="C:\Program Files (x86)\utils\svn.exe" looks like it 
doesn't like the space

and any of these combinations with single/double quotes, forward/backward 
slashes, escaping the spaces and now with the global 'g:' as prefix. 

Any further clues?

Original comment by oti...@googlemail.com on 24 Apr 2013 at 7:06

GoogleCodeExporter commented 8 years ago
I'd guess it's the parentheses in the path.  I'll take a look.

Original comment by bob.hies...@gmail.com on 24 Apr 2013 at 2:52

GoogleCodeExporter commented 8 years ago
Parentheses seem to work okay.  A few questions:

1.  Did you try with svn in your PATH but *without* setting VCSCommandSVNExec?  
I haven't seen that fail before.

2.  Neither of the sample VCSCommandSVNExec looks right.  Could you please try:

let g:VCSCommandSVNExec='C:\Program Files (x86)\utils\svn.exe'

Single vs double quote is significant here.

Original comment by bob.hies...@gmail.com on 24 Apr 2013 at 3:14

GoogleCodeExporter commented 8 years ago
1.) 
I get an error: VCSCommand: Version control command failed: The command "svn" 
diff --non-interactive -- "filename" is misspelled or not found. This message 
is freely translated from German into English. I hope you don't get it wrong. 

2.) 
Same result as in number 1...

Appreciate your help, but what am I doing wrong?

Original comment by oti...@googlemail.com on 24 Apr 2013 at 3:56

GoogleCodeExporter commented 8 years ago
Do you set any of the following options?  What are their values?

shell
shelltype
shellpipe
shellslash
shellredir
shellquote
shellxquote
shellcmdflag

Original comment by bob.hies...@gmail.com on 24 Apr 2013 at 4:13

GoogleCodeExporter commented 8 years ago
I haven't set any of these values, at least not knowingly. Maybe another plugin 
is messing with them? 

Original comment by oti...@googlemail.com on 25 Apr 2013 at 7:03

GoogleCodeExporter commented 8 years ago
Could you please post their values?  You can see if they're being set by doing:

:verbose set shell?

... for instance.  On my system I see the following:

  shell=C:\Windows\system32\cmd.exe
  shellpipe=>%s 2>&1
noshellslash
  shellredir=>%s 2>&1
  shellquote=
  shellxquote=(
  shellcmdflag=/c

You can put the following in a script and :so it to get the settings:

redir => options
for option in [
            \ 'shell',
            \ 'shellpipe',
            \ 'shellslash',
            \ 'shellredir',
            \ 'shellquote',
            \ 'shellxquote',
            \ 'shellcmdflag'
            \ ]
    execute 'verbose set' option . '?'
endfor
redir END
new
silent put =options

Original comment by bob.hies...@gmail.com on 25 Apr 2013 at 4:18

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
 shell=C:\Windows\system32\cmd.exe
  shellpipe=>%s 2>&1
  shellslash
  shellredir=>%s 2>&1
  shellquote=
  shellxquote=
  shellcmdflag=/c

I have tried your values but with no success

I have tried your values for shellslash and shellxquote but with no success. 

Original comment by oti...@googlemail.com on 25 Apr 2013 at 5:00

GoogleCodeExporter commented 8 years ago
What patchlevel is your gvim?  It looks like your shellxquote should be changed.

When I change my sxq setting to empty, my command also fails.

Are you sure you tried just this?

set sxq=(

Original comment by bob.hies...@gmail.com on 25 Apr 2013 at 7:40

GoogleCodeExporter commented 8 years ago
My installed version is 7.3.46. 

Yes I tried the 'set sxq=(' but the message was 'no suitable plugin'

Original comment by oti...@googlemail.com on 26 Apr 2013 at 7:38

GoogleCodeExporter commented 8 years ago
1.  Had you previously had success with earlier versions of VCSCommand?

2.  Are you in a position to update your VIM?  That one's pretty old (October 
2010).  There were some improvements made in how running commands in shell work.

3.  Did you set 'sxq' in your vimrc or after VIM was already loaded?

4.  I've attached a copy of vcscommand.vim.  Could you please use it and run:

:echo VCSCommandGetSupportedTypes()

?

Original comment by bob.hies...@gmail.com on 26 Apr 2013 at 3:26

Attachments:

GoogleCodeExporter commented 8 years ago
Works fine with the 7.3.829 version.

Thank you very much for your help. 

Original comment by oti...@googlemail.com on 29 Apr 2013 at 4:19

GoogleCodeExporter commented 8 years ago
I'm glad to hear it.

Original comment by bob.hies...@gmail.com on 29 Apr 2013 at 5:55