ruben2020 / codequery

A code-understanding, code-browsing or code-search tool. This is a tool to index, then query or search C, C++, Java, Python, Ruby, Go and Javascript source code. It builds upon the databases of cscope and ctags, and provides a nice GUI tool.
https://ruben2020.github.io/codequery/
Mozilla Public License 2.0
680 stars 86 forks source link

cqmakedb gives cscope sanity check error #50

Closed imtiazhussainsyed closed 7 years ago

imtiazhussainsyed commented 8 years ago

Hi, I have created cscope.files and ctags as mentioned in http://ruben2020.github.io/codequery/windows-install/HOWTO-WINDOWS.txt I still get this error. not sure what the problem is. any help would be appreciated. cscope -cb (BTW, this step just hangs). therefore, I run cscope once, which creates cscope,out automatically. ctags --fields=+i -n -R -L cscope.files cqmakedb -s .\myproject.db -c cscope.out -t tags -p cscope.out sanity check Error

I tried using just *.c files in cscope.files hoping to keep the code base smaller. But it doesn't seem to have helped.

ruben2020 commented 8 years ago

Hi, Is your code base open source? Can I get it and try it?

imtiazhussainsyed commented 8 years ago

No. Its not open source. However I will try with an open source package and will let you know.

Sent from Yahoo Mail on Android

On Wed, Jan 13, 2016 at 7:27 pm, Rubennotifications@github.com wrote:
Hi, Is your code base open source? Can I get it and try it?

— Reply to this email directly or view it on GitHub.

Vonfry commented 8 years ago

@ruben2020 Hi, I have met the same problem.

My code is a test code which only has one class and a main function. I run cscope with -b.

#include <stdlib.h>
class test
{
public:
    test ();
    virtual ~test ();

private:

};

int main()
{
    return 0;
}

Cmd follow:

cscope -b
ctags --tag-relative=yes -R --fields=+il .
cqmakedb -s ./myproject.db -c ./cscope.out -t ./tags -p

If I replace ctags cmd like:

ctags --fields=+i -n -R -L ./cscope.files

It has the same error.

cscope.out sanity check Error

My system is OS X 10.10. and install with brew.

And I try to use -d param, but it seems that nothing happened.

NEW

I have found the reason. I must run cscope with -c

ruben2020 commented 8 years ago

Yes. The -c will remove compression.

kishorepillai commented 8 years ago

while tying to use codequery in my windows 7 as per the "How to steps" in w7 I get the following

C:\codelite>ls CMakeLists.txt TestSpace doc showgraph Doxyfile cli gui tags LICENSE.md cmakefind makedb test NEWS.txt cscope.files querylib windows-install README.md cscope.out release.json

C:\codelite>cscope -b ( If I use -c option , I get errors.."cscope: -c or -T option mismatch between command line and old symbol database" skipped -c to get it going) C:\codelite>ctags --fields=+i -n -R -L cscope.files

C:\codelite>cqmakedb -s .\myproject.db -c cscope.out -t tags -p cscope.out sanity check Error

Let me know , if cscope.out and files files are required.....

Can some one help us out.

kishorepillai commented 8 years ago

files.zip

ruben2020 commented 8 years ago

I'll try it out

ruben2020 commented 8 years ago

Hi @gitofmine

The cscope.out in files.zip was not built with -c, and that's why it does not work. Why doesn't it work for you? Are using the latest version of cscope which is 15.8a?

Perhaps I should make the error description clearer for not using -c.

ruben2020 commented 7 years ago

Now it will print warning for not using -c