Smattr / clink

a modern re-implementation of Cscope
The Unlicense
46 stars 2 forks source link

assertion id >= 0 failed #242

Closed terminatorul closed 5 months ago

terminatorul commented 6 months ago

I built and tried clink, for one of my work projects, but I get the above assertion multiple times when I try to generate the database. I used 100 C source files (all *.c) listed in my namefile and in compile_commands.json, with --parse-C=clang option on the command line

Smattr commented 6 months ago

Can you elaborate? I don’t see that assertion anywhere in Clink’s code, so I’m not sure what failure you are seeing.

terminatorul commented 6 months ago

Now I only get issue https://github.com/Smattr/clink/issues/243, it appears to be blocking the real problem with the assert

However I found the assert in the source code:

Smattr commented 6 months ago

Oh it’s id with a lowercase i. I was grepping for it with uppercase as per the issue title.

terminatorul commented 6 months ago

Yes, sorry ! Fixed the spelling now ...

Smattr commented 6 months ago

I don’t think it will be much help to your goals of parsing your current code base, but I think the root cause of this one is an unchecked failure. https://github.com/Smattr/clink/pull/245