MaskRay / ccls

C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
Apache License 2.0
3.78k stars 260 forks source link

LSP client does not attach for files in bazel-out/ #929

Open johngkhs opened 1 year ago

johngkhs commented 1 year ago

Observed behavior

I use bazel for my C++ build and include_prefix, which copies from header files into virtual include folders within the bazel-out directory. When going to definition with LSP to one of these header files, the LSP client does not automatically attach.

Expected behavior

The LSP client should automatically attach to C++ files even in the bazel-out/ subdirectory. I tested clangd does successfully attach to these files.

Steps to reproduce

Open a C++ file within the bazel-out directory, and check :LspInfo() within nvim. It will say 0 clients attached.

System information