Smattr / clink

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

"no message of desired type" with compile_commands.json #124

Closed Smattr closed 1 year ago

Smattr commented 1 year ago

When parsing Graphviz 6befdeeb472dda111cbd4d6e62ab597c3709f182 with a compile_commands.json enabled, you get

[CLINK] clink/src/option.c:228: failed to open /tmp/tmp.1RXprLgI4Q/graphviz/compile_commands.json
[CLINK] clink/src/option.c:238: using /tmp/tmp.1RXprLgI4Q/graphviz/build/compile_commands.json compilation database
0: Clang-parsing C++ file lib/cgraph++/AGraph.cpp                                                                                  
0: failed to parse lib/cgraph++/AGraph.cpp: No message of desired type 

This error should not occur, but it's also poorly explained. This is an ENOMSG somewhere reflecting no match or exhaustion of an iterator.

Smattr commented 1 year ago

Fixed in c15c5e9ea9592c8fdacac2350ae0c3183fd05a32.