Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XRefDB is corrupted #16

Open
shahar3000 opened this issue Aug 13, 2019 · 1 comment
Open

XRefDB is corrupted #16

shahar3000 opened this issue Aug 13, 2019 · 1 comment

Comments

@shahar3000
Copy link

hey,
I create a cscope database of a C project using:
$ cscope -Rbq
then in vim I load the database with:
:CCTreeLoadDB cscope.out
at this point everything is working great

I create the xref DB using
CCTreeSaveXRefDB cctree.out

then I close vim, reopen and load the db with
CCTreeLoadXRefDB cctree.out

but then when I try to use it (with :CCTreeTraceReverse) I get
Error detected while processing function 20_CCTreeTraceTreeForSymbol[19]..191[7]..186[2]..187[10]..112[9]..98:
line 1:
E716: Key not present in Dictionary: 7929

and I get garbage in the result

any idea what am I missing?

@qais-yousef
Copy link

qais-yousef commented Jan 29, 2023

FWIW, I have a PR that makes things better for me - but I must use CCTreeLoadXRefDBFromDisk.

The issue you have might be to the way taglist() builtin function in vim is expecting the file to be sorted. This caused cctree to fail to find some items and throw these errors. If you click through them you might actually find a result rendered. I did fix throwing this random errors - but not the failure to find some IDs sometimes..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants