Page 1 of 1

where is cscope's database?

Posted: Mon Jan 24, 2011 11:41 pm
by pkwong
I am trying to use the cscope plugin. When I try to find a symbol with cscope, I get the "cscope results for: ..." but no results when there really should be.

I build the database by selecting the "Entire Workspace" for the "Search scope", "Update Db" and "Create reverted Index" in the cscope tab, and then select the menu item "Plugins">"CScope">"Create CScope database".

I see the cscope_file.list file created in my workspace directory and it seems to have all the files in my workspace.

Is a database and/or tags file created and if so, where can I find it?

Environment:
Vista Enterprise SP1
CL 2.9.0.4684

peter

Re: where is cscope's database?

Posted: Tue Jan 25, 2011 12:09 pm
by eranif
The cscope DB is file named 'cscope.out' it should be located near the cscope_file.list

If you can't see it, then there is probably a problem with your cscope executable (maybe you have cygwin installed?)

Do you get any error in the 'Trace' window?

Eran

Re: where is cscope's database?

Posted: Tue Jan 25, 2011 11:18 pm
by pkwong
Hi Eran,
I don't have cygwin installed. The only cygwin DLL is the one in the CL install directory (c:\program files\codelite\cygwin1.dll).
Running cscope from DOS CMD shell:

C:\Program Files\CodeLite>cscope.exe
Error opening terminal: cygwin.

C:\Users\EPETWAI\Documents\Work\workspace\codelite\sfi_latest>"C:\Program Files\CodeLite\cscope" -q
Error opening terminal: cygwin.

Trace window shows no errors.

The cscope executable is version 15.6, dated Jan 10, 2008.

I have used it before in a previous company (and older version of CL and different s/w project). Maybe I need a clean install?

peter

Re: where is cscope's database?

Posted: Wed Jan 26, 2011 1:34 am
by pkwong
I ran cscope from the command line after creating /tmp:

C:\Users\EPETWAI\Documents\Work\workspace\codelite\sfi_latest>"c:\Program Files"\codelite\cscope -b -i cscope_file.list

and this didn't complain about
Error opening terminal: cygwin

and it also created the cscope.out file.

Then running cscope find from CL came back with a bunch of results.

So it looks like my set up has problems creating the .out cross reference from within CL.
Though I still don't understand why I get the cygwin opening terminal error.

peter

Re: where is cscope's database?

Posted: Wed Jan 26, 2011 3:22 am
by pkwong
Still unable to create the inverted index. Tried it from command line:

C:\Users\EPETWAI\Documents\Work\workspace\codelite\sfi_latest>"c:\Program Files"\codelite\cscope -qb -i cscope_file.list
cscope: -q option mismatch between command line and old symbol database

cscope: cannot create inverted index; ignoring -q option
cscope: removed files ncscope.in.out and ncscope.po.out

This just creates the .out file.
Using just the -q option, or -q with -i options:

C:\Users\EPETWAI\Documents\Work\workspace\codelite\sfi_latest>"c:\Program Files"\codelite\cscope -q
Error opening terminal: cygwin.

C:\Users\EPETWAI\Documents\Work\workspace\codelite\sfi_latest>"c:\Program Files"\codelite\cscope -q -i cscope_file.list
Error opening terminal: cygwin.

Anyone have any ideas why this is happening?

peter