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
where is cscope's database?
-
- CodeLite Enthusiast
- Posts: 17
- Joined: Tue Dec 01, 2009 3:08 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: where is cscope's database?
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
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
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 17
- Joined: Tue Dec 01, 2009 3:08 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: where is cscope's database?
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
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
-
- CodeLite Enthusiast
- Posts: 17
- Joined: Tue Dec 01, 2009 3:08 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: where is cscope's database?
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
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
-
- CodeLite Enthusiast
- Posts: 17
- Joined: Tue Dec 01, 2009 3:08 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: where is cscope's database?
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
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