-
-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
YouCompleteMe support for auto completion #4855
Comments
Hello there! If you are looking for general programing the kind people of QMK discord might be able to help! |
May I suggest using NeoVim w/ https://github.com/Shougo/neoinclude.vim |
@bbaserdem, I ran into a similar issue trying to get the I did manage to get it working eventually though. I wrote up the details here: https://www.reddit.com/r/olkb/comments/bhdzxe/has_anyone_got_a_c_language_server_working_with/elur31t/ @yiancar, I totally agree that supporting a particular tool or editor plugin isn't a QMK issue. However, it does seem that QMK's current build system is setup in such a way that it's hard to integrate it in the standard ways with C/C++ tooling in general. In both @bbaserdem's case trying to get YouCompleteMe working, and my case trying to get There are a few tools out there for generating compilation databases for make based C/C++ projects (e.g., bear and scan-build), but I wasn't able to get any of them to work with the QMK codebase (they just generated empty databases). Additionally, figuring out how to find the information I needed for Now all that said, I have very little experience working with C based projects, and I might just be missing something obvious ¯_(ツ)_/¯. But if I'm not, maybe it's worth seeing if some changes could be made to the build system so that it's more straight forward to use common C/C++ tooling while working on the QMK codebase, e.g., making it easy to generate a compilation database for a given target, and/or adding something to the QMK docs. I'd be happy to help, but given that I barely understand how the current build system works, I don't think I'll get very far on my own. |
@drashna, any thoughts on the above? |
Sorry. NO, I don't really have an idea about this. I know with VS Code, on Windows, at least, it wouldn't handle everything correctly unless I added the gcc (arm and avr) source folders to the pathing for VSCode. You may need to do the same thing. |
Thanks for the response 🙂. Though I don't think that's the issue in my case. Everything works once I get the right configuration file setup. |
This issue has been automatically marked as resolved because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs. |
@malob that is very interesting that you managed a solution. I don't have the skillset to solve this at all. That being said, I am going to copy paste your discussion here, as reddit is more volatile with comments that github. And I will probably want to set this up with ale at some point. Malob
Drashna
Malob
|
I had success generating a
Combined with vs code's cmake tools plugin this gives me now good highlighting of enabled/disabled ifdefs. |
@okke-formsma, hmmm interesting, I just tried that both for |
Did you make clean first? |
I've just tried this and it generates a valid compile_commands.json file for me. |
I'm on macOS so that might be the issue. My other main hypothesis is that this is Nix related. I'm using |
I'll try this out on macOS when I get some time. |
Just submitted #8916 which adds a simpler way of creating |
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs. |
Closing due to inactivity. |
This is not an issue, but utilizing some other program to make editing easier; and if it can be enabled easily from the upstream.
Feature Request Type
Description
I am still a beginner when it comes to C. I use vim to edit files, with YouCompleteMe plugin for autocompletion.
YouCompleteMe requires a config file, or a compilation database for completion, but I am unsure how to get that working by myself.
What I don't understand is; can this be handled by compilation database (modification in make?) or do I need to specify myself on a config file.
The text was updated successfully, but these errors were encountered: