-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fixes #2327 - request for rtags layer for c/c++ completion #2327
Comments
Although ycmd is Good enough for complete, but the spacemacs lack of c++ code navigation tools, Rtags is a good choice. |
I do not think ycmd is fast and powerful enough for a serious c/c++ project. |
For navigating code, you can use As for Maybe you should create a |
create a decent layer is beyond my ability currently. I used it in pure emacs but have trouble with key-bindings with spacemacs |
In my (short) experience rtags is fantastic (and much better than gtags for c++) - it really understands the code even with templates and macros. I would love to see it integrated in a spacemacs layer. I also think company-clang and flycheck's clang backend should be better supported by the c-c++ layer.
No need to activate rtags-mode - just use the commands. The easiest way to set everything up perfectly is maybe cmake-ide (if you use cmake)
I wonder if it should be an enhancement of the gtags layer. rtags can fall back to gtags if unavailable, so it could be an option on top of the already existing (and super useful) gtags layer. |
@autosquid Great, I am looking forwad to it appearing on master (I also have it in my private layer... but it's so much nicer if it's standardized...) |
@autosquid @duerrp - would you mind sharing how you set it up in your own layer - I have it setup and it works but when I search for references, I am unable to go to the next occurence (Enter does nothing in the rtags window) |
Sure, I have this in my private layer:
|
see also: #2834 This is my packages.el for rtags.
|
Thanks! |
Sorry a quick question from an emacs starter, if I enable add this to my private layer and install the rtags server. Can I just enable the C++ layer from my spacemacs dotfile? |
This seems to be the older of two tickets on rtags support. In December I posted a comment on the other ticket, #2834 (comment). Maybe someone reading along in this ticket has something to add? |
@autosquid @duerrp Thank you very much for sharing your rtags layer configs. I've merged For the layer config see gist: c308dc57085ebbc0f9de. Best |
Adding |
This might be helpful on the cmake-ide side of things, it populates your system includes. It's a merge of:
|
@syl20bnr , this issue could be closed hence rtags support was merged to develop |
@myrgy thanks for bumping this issue. It will be closed when the fix gets to the master 😸 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
I tried
rtags
, and almost set it up. except that rtags-mode makes my buffer read-only and eat some key (for example 's'). But I cannot go any further due to my poor emacs knowledge. Really need help.I think rtags is really promising for completion. It is fast and accurate, which is far better than
complete-clang' and
irony`.You should really have a look at it. It will make the current c-c++ layer much much better.
The text was updated successfully, but these errors were encountered: