I’m trying to set up a remote index for an extremely large project (over 35M lines of C/C++ code) but I’m having troubles with queries involving generated files. The problem is, generated files are placed in some user-specified directory possibly outside project’s root, and
clangd-index-server has no way of mapping them for the client to be able to find locally. As a consequence, the server logs error
E[11:30:17.791] Unable to convert Ref to protobuf: File path '/path/to/generated/code/subproject/genfile.h' doesn't start with '/path/to/project/'. and the response is missing references to generated code.
My config.yaml looks like this:
If: PathMatch: /home/user/path/to/userproject/subproject/.* Index: External: Server: 127.0.0.1:50051 MountPoint: /home/user/path/to/userproject/subproject/
Is there any workaround for this setup?