Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
johngkhs opened this issue Feb 24, 2023 · 0 comments
Open

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

johngkhs opened this issue Feb 24, 2023 · 0 comments

Comments

@johngkhs
Copy link

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

  • ccls version: master
  • clang version: 11.0.1
  • Editor: Nvim
  • Language client (and version): Latest nvim lsp config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant