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

Update .ccls upon installing a new library #4950

Open
1 task done
anurag3301 opened this issue Jul 19, 2024 · 0 comments
Open
1 task done

Update .ccls upon installing a new library #4950

anurag3301 opened this issue Jul 19, 2024 · 0 comments

Comments

@anurag3301
Copy link

anurag3301 commented Jul 19, 2024

What kind of issue is this?

  • Feature Request.

Configuration

Operating system: Linux arch 6.9.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 28 Jun 2024 04:32:50 +0000 x86_64 GNU/Linux

PlatformIO Version (platformio --version): PlatformIO Core, version 6.1.15

Description of problem

I use neovim along with ccls, upon initializing the project using the --ide vim flag it creates a .ccs file which works perfectly. However upon installing a new library using pio pkg install it does not update the .ccls file with the include path of the library's header file, due to that the language server has no idea about the library headers which makes the development unpleasant.

I think it should be easy to implement, the library is already included while building, so I think I should be able to add the -I/path/ in the .ccls file for the library.

I'd like to work on this, can you guild be a bit about which files I should look into?

Steps to Reproduce

  1. Create a project with --ide vim flag
  2. Check the .ccls file
  3. Add a new library using pio pkg install
  4. Check the language server is not able to find the library's includes as it's not there in the .ccls file

Actual Results

Update the .ccls file with the include path for library

Expected Results

Doesn't the .ccls file with the include path for the library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants