I cannot get CScope to work. When searching for functions that call or are called from a function, cscope reports "+cannot". Expanding "+cannot" provides a list of files. It looks like all the files in my project. Each line says "Line: 0, open, <file path>. If I open a DOS box and type "cscope" I get "error opening terminal: cygwin". Then it creates a cscope.xxxx directory that is empty where the xxxx are random numbers. I have only one copy of cygwin1.dll and it is in my Program Files\CodeLite directory. I tried copying it to \Windows\System32, but no joy. Any ideas?
EDIT
Well good news! It is working now. I believe it began working after I cleaned up some obsolete entries in my codelite.xml and session.xml files and removed the link to a corrupt project file (not the active project) in my *.workspace file.
CScope error
-
- CodeLite Enthusiast
- Posts: 24
- Joined: Wed Jan 28, 2009 7:51 pm
- Contact:
CScope error
Last edited by KEhrhardt on Wed Jan 28, 2009 9:23 pm, edited 1 time in total.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CScope error
I know that you said that you dont have other cygwin1.dll, but this error is due to multiple instances of cygwin1.dll
Another option: try to run cscope from the dos shell, do u get any error?
Eran
Another option: try to run cscope from the dos shell, do u get any error?
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 24
- Joined: Wed Jan 28, 2009 7:51 pm
- Contact:
Re: CScope error
From above -> If I open a DOS box and type "cscope" I get "error opening terminal: cygwin". Note that the workspace, project and code exist on a network drive, not my local hard disk if that matters at all. I thought that perhaps CodeLite could not find the cygwin1.dll, so I copied it from the CodeLite directory (my only copy) to \Windows\system32, since it is the first directory on my path. Cscope does work now, although it is quite slow finding the calling/called functions.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CScope error
Well, we dont maintain cscope here, but maybe u can use 'find in files' with the option 'display c++ scope' enabled?KEhrhardt wrote:Cscope does work now, although it is quite slow finding the calling/called functions
does it help?
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 24
- Joined: Wed Jan 28, 2009 7:51 pm
- Contact:
Re: CScope error
This setting gives a little more info when searching files, but does not help with the speed issue. But cscope is working, so I am happy.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CScope error
Then I can only guess that the problem is that the scanned files are under the network drive which is slowKEhrhardt wrote:but does not help with the speed issue.
Eran
Make sure you have read the HOW TO POST thread