Glad it is all working.
Just posting this to the forum in case other users run into the same issue.
 

> -----Original Message-----
> From: Sibin P. Thomas [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 09, 2006 1:04 AM
> To: David Fishburn
> Subject: RE: Vim and cscope
> 
> Hey thanks a lot Dave, it's working finally :)
> 
> I guess the only thing I had missed out earlier was the 
> ".exe" in the command ":se csprg=D:\cscope\bin\cscope". I now 
> made it ":se csprg=D:\cscope\bin\cscope.exe" and Voila it works!!.
> 
> Once again thanks a million for all the help (u have no idea 
> how many days I spent over this; initially googling and later 
> changing cscope source code!)
> 
> Regards,
> Sibin
> 
> -----Original Message-----
> From: David Fishburn [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 08, 2006 9:55 PM
> To: Sibin P. Thomas
> Subject: RE: Vim and cscope
> 
> This is what I have in my vimrc
> 
> if has("cscope")
>     " Most often I find I need to recursively look at data
>     " You cannot use (reports an error opening subdirs):
>     "     cscope -R *.sql
>     " You must use:
>     "     cscope -R 
>     " But that only gets C/CPP files.
>     " I have to do this:
>     "     find -name *.sql > cscope.files
>     "       or dir /s/b *.sql > cscope.files
>     "     cscope -b (create the cscope database)
>     "     cscope -C (queries this with case insensitivity)
>     "
>     " To open the same options in Vim:
>     "     cs add cscope.out . -C  (for case insensitivity)
>     "
>     " For help on cscope and Vim:
>     "     :cs
>     "     :h cs
> 
>     let &cscopeprg = expand('$VIM\Tools\cscope.exe')
>     " If 'csto' is set to zero, cscope database(s) are searched first,
>     " followed " by tag file(s) if cscope did not return any matches. 
>     set cscopetagorder=0
>     " set cscopetag
>     set nocscopeverbose
>     " determines how many components of a file's path to display
>     set cscopepathcomp=3
>     " Use the quickfix window for the cscope query
>     set cscopequickfix=s-,c-,d-,i-,t-,e-
>     " add any database in current directory
>     
>     if filereadable("cscope.out")
>         " cscope -C (queries this with case insensitivity)
>         exec 'cs add '.expand('%:p:h').'\cscope.out "" '
>         " else add database pointed to by environment
>     elseif $CSCOPE_DB != ""
>         cs add $CSCOPE_DB
>     endif
>     set csverb
> endif
> 
>  
> 
> > -----Original Message-----
> > From: Sibin P. Thomas [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, August 08, 2006 2:25 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Vim and cscope
> > 
> > This is my vimrc file and this is what I did 1. run "cscope 
> -R" in the 
> > directory c:\path. This directory contains my project.
> > 2. open a file "C:\path\sub_directory\sub_dir_level2\file.c"
> > 3. give the command ":cs add c:\path\cscope.out"
> > This is when I get the error "E623: Could not spawn cscope process"
> > 
> > Just tell me where I am going wrong?
> > I have the exact same setup as yours i.e. 
> > Vim 7 and 6.3. 
> > Winxp sp2
> > Cscope 16.0a
> > 
> > Regards,
> > Sibin
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, August 08, 2006 10:39 AM
> > To: Sibin P. Thomas
> > Subject: Re: Vim and cscope
> > 
> > I just tried it again. 
> > Vim 7 and 6.3. 
> > Winxp sp2
> > Cscope 16.0a (I think). 
> > Sorry, can't think of anything else. 
> > Unless you have more than 1 cscope in your path and it is 
> getting the 
> > wrong one first.
> > What Vim cscope options did you set?
> > 
> > 
> > 
> > ----- Original Message -----
> > From: "Sibin P. Thomas" [EMAIL PROTECTED]
> > Sent: 08/07/2006 09:11 PM
> > To: "David Fishburn" <[EMAIL PROTECTED]>
> > Subject: RE: Vim and cscope
> > 
> > I had checked all this before using the last resort of 
> asking help in 
> > the mailing list. Just for the record the :echo
> > has('cscope') returns 1 and there is a +cscope in the 
> version info(in 
> > both the versions I have tried).
> > 
> > Also I researched the problem and went through the cscope 
> source code 
> > (of version 15.4) and *I think* that the problem lies in 
> the function 
> > "spawnvp()"
> > which MSDN states that is not supported anymore (we should use the 
> > function "_spawnvp()" now).
> > I must state that the I don't have any conclusive evidence to prove 
> > that "spawnvp()" is the culprit.
> > 
> > I tried changing the source and recompiling but was going 
> in circles 
> > hence the SOS. I was hoping someone would have come across this 
> > problem already and solved it already :)
> > 
> > Regards,
> > Sibin
> > 
> > -----Original Message-----
> > From: David Fishburn [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, August 08, 2006 12:12 AM
> > To: Sibin P. Thomas
> > Subject: RE: Vim and cscope
> > 
> > What is returned with this:
> > :echo has('cscope')
> > 
> > Or browse the output of :ver.
> > 
> > Dave
> >  
> > 
> > > -----Original Message-----
> > > From: Sibin P. Thomas [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, August 07, 2006 12:50 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: Vim and cscope
> > > 
> > > 
> > > Hi Dave,
> > > 
> > > I was initially using the cscope version 15.4 then I 
> downloaded the 
> > > version u pointed me to (version 16.0a), both give the same error.
> > > 
> > > I used the "cscope -R" command to create the cscope database.
> > > 
> > > When I try to use the ":cs add /path/cscope.out" command 
> I get the 
> > > error
> > > "E623: Could not spawn cscope process"
> > > 
> > > Regards,
> > > Sibin
> > > 
> > > 
> > > 
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > Sent: Sunday, August 06, 2006 6:19 PM
> > > To: Sibin P. Thomas
> > > Subject: Re: Vim and cscope
> > > 
> > > Which version of cscope are you using?
> > > 
> > > What command did you use to create a cscope database. 
> > > 
> > > What Vim command did you use that resulted in this error?
> > > 
> > > Dave
> > > 
> > > 
> > > 
> > > 
> > > ----- Original Message -----
> > > From: "Sibin P. Thomas" [EMAIL PROTECTED]
> > > Sent: 08/02/2006 11:57 PM
> > > To: <[email protected]>
> > > Subject: RE: Vim and cscope
> > > 
> > > 
> > > 
> > > Could someone help me here; I tried what Dave suggested 
> but with no 
> > > success.
> > > 
> > > Regards,
> > > Sibin
> > > 
> > > > -----Original Message-----
> > > > From: Sibin P. Thomas [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, July 31, 2006 6:25 AM
> > > ...
> > > > I tried integrating Cscope 15.4 with Vim7.0 on WinXP (I
> > > have installed
> > > > cygwin too); but whenever I try to use cscope in Vim I get the 
> > > > following error -
> > > > 
> > > > "E623: Could not spawn cscope process".
> > > 
> > > Sounds like you are using the cscope from the open source project.
> > > 
> > > You need a special version of cscope that is integrated with Vim.
> > > :h cscope-info
> > > 
> > > Will point you to different downloads locations.
> > > 
> > > Since you are on win32, you need to download it from:
> > > http://iamphet.nm.ru/cscope/index.html
> > > :h cscope-win32
> > > 
> > > HTH,
> > > Dave
> > > 
> > > 
> > 
> > 
> 
> 

Reply via email to