codequery icon indicating copy to clipboard operation
codequery copied to clipboard

Unsupported cscope parameters: -c is required. -q, -b and -R are optional. The rest should not be used.

Open d4em0n opened this issue 4 years ago • 4 comments

Hi, i try to run cqmakedb on c project but i got the following error.

> cqmakedb -s cq.db -c cscope.out -t tags -p
cscope.out sanity check Error
Unsupported cscope parameters: -c is required. -q, -b and -R are optional. The rest should not be used.

d4em0n avatar Jan 28 '21 07:01 d4em0n

@d4em0n Did you first create a cscope.files file then run cscope like this: cscope -cb You can find this info in the HOWTO-LINUX and HOWTO-WINDOWS files.

ruben2020 avatar Jan 28 '21 09:01 ruben2020

Greetings Ruben. Using -c option seems to considerably slow down the indexing of cscope; not sure why though. Is there any reason for not using the compressed format? (aka, without -c option).

I also wonder if the inverted index variant would be useful for codequery as well (-q option)

Thanks.

dariomx avatar Mar 17 '21 14:03 dariomx

@dariomx -c is used because cqmakedb does not parse the compressed version of cscope.out at the moment. But this could be a suggestion for enhancement if that really makes a difference in indexing speed.

ruben2020 avatar Jul 22 '21 03:07 ruben2020

@dariomx -c is used because cqmakedb does not parse the compressed version of cscope.out at the moment. But this could be a suggestion for enhancement if that really makes a difference in indexing speed.

It could be a nice feature to add, when handling big cscope databases.

pidgeon777 avatar Oct 28 '21 15:10 pidgeon777

@dariomx -c is used because cqmakedb does not parse the compressed version of cscope.out at the moment. But this could be a suggestion for enhancement if that really makes a difference in indexing speed.

It could be a nice feature to add, when handling big cscope databases.

Just wanted to add an upvote for this. The project I work on the most has around 19,000 files, and anything to speed up the database build would be helpful.

brent-casavant-hpe avatar Jun 02 '23 17:06 brent-casavant-hpe

@brent-casavant-hpe I think I'll start looking into this again soon. It sounds like a good feature to add to cqmakedb.

ruben2020 avatar Jun 11 '23 17:06 ruben2020

@brent-casavant-hpe @pidgeon777 @dariomx @d4em0n I have added the ability to support compressed cscope.out files, but it's currently experimental. It's on the develop branch. Simply leave out -c from the cscope call.

ruben2020 avatar Jan 12 '24 11:01 ruben2020

@brent-casavant-hpe @pidgeon777 @dariomx @d4em0n Support for compressed cscope.out supported experimentally in v0.27.0. This issue can now be closed.

ruben2020 avatar Jan 26 '24 07:01 ruben2020