-
-
Notifications
You must be signed in to change notification settings - Fork 12
Generating ctags for C files in the include/ dir
#5
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
Conversation
|
Error phrasing is adequate. Do we really need C++? Should be C only AFAIK. This reminded me of a couple of rake.vim patch tweaks I forgot to mention. I just committed them myself. |
|
Hey, I just pushed an update to the PR. If ruby-build is used with Having the tags for C/C++ files of the whole ruby project when writing or just browsing C extensions is a very neat thing. Btw @mislav helped with making this feature elegant. My initial idea was clunky, so thanks Mislav. A weird thing about the ctags program:
As always, please let me know if you have any remarks about the PR! |
bin/rbenv-ctags
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this method gets called only once, I would rather inline it at the place where it's needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the thing to do here is make generate_ctags_in take an optional languages argument and call --languages="${2:-ruby}". Then move the rest of the logic inline.
|
Hi guys, Please let me know if you have more feedback. |
|
While I think I implemented all of Mislav's feedback, I left the script output as-is because of Tim's comment. |
Generating ctags for C files in the `include/` dir
|
Output is a separate concern. If any interested parties care enough to get it silenced, I'd merge a pull request. |
|
Guess I should have tested first. The output is showing |
|
Hmm.. sorry to hear things don't work well. |
|
Oh, looks to be a 1.8.7 thing. Having trouble understanding why. Can you reproduce? |
|
It looks like 1.8.7 rubies don't have an Sorry for the mistake, I'll take some time to investigate and open a PR with a fix (I'll also check what happens with |
|
If it's any consolation rubies 1.9.2, 1.9.3 and above seem to be ok: they have the include dir and |
Hi,
continuing on the same idea as in vim-rake PR #25,
it would be great if C header files from ruby include dir would get a
tagsfile.When paired with vim's
tagsoption this would help with looking up C macrosand structures in
ruby.hand other header files. Also, ctags is faster andmore precise than vim's
[iand[d(although I find all these options useful).This PR contains a working solution although I don't feel happy about the
error message verbiage.
Anyway, if you're willing to consider merging this PR any feedback is
appreciated and I'll be responsive to make changes.