I hope it is ok to raise this issue here - I couldn't find anywhere else other than the mailing list.
I've tried clangd-indexer for a project which has a common compile_commands.json but is built using many different Makefiles in different directories using plain 'make'.
What I have found is running:
clangd-indexer -executor=all-TUs compile_commands.json > clangd.dex
results in many compilation errors due to header files not being found, despite them being in the current directory for the corresponding .cc file. The compile_commands.json specifies the absolute directory which contains both .cc and .h files for each .cc file in question.
Is it possible clangd-indexer is not changing directories to the directory specified in compile_commands.json when trying to compile the TU?