cgreer / MRU-Tag

Jump to most recently used tags (functions/methods/etc) in Vim.
MIT License
3 stars 0 forks source link

Problem with OS X ctags #1

Open mattdodge opened 10 years ago

mattdodge commented 10 years ago

Doesn't seem to work properly with OS X version of ctags. Here is the debug stream from debug.txt after making a change

VIMLOG: LOGGING TAG INFO  test
INFO:root:***     MAIN     ***
INFO:root:***     log     ***
INFO:root:args: ['log', '/Users/matt/Documents/code/Python/test.py', '61', '34', 'py']
INFO:root:cbuffer file: /Users/matt/.vim/bundle/MRU-Function/plugin/../tmp/cBuffers/cBuffer.py
INFO:root:getting nearest tag... /Users/matt/.vim/bundle/MRU-Function/plugin/../tmp/cBuffers/cBuffer.py
INFO:root:src, fe, line: /Users/matt/.vim/bundle/MRU-Function/plugin/../tmp/cBuffers/cBuffer.py, py, 61
INFO:root:PYTHON tag... 
INFO:root:pyNearest: 55 def __init__
INFO:root:NO TAG FOUND
WARNING:root:NO TAGS
VIMLOG: log tag info err: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ctags: illegal option -- -usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
cgreer commented 10 years ago

It looks like OSX comes with ctags and not exuberant ctags. I don't have/grok OSX homebrew but I'm guessing these articles show the standard way to install it?

http://www.runtime-era.com/2012/05/exuberant-ctags-in-osx-107.html http://gmarik.info/blog/2010/10/08/ctags-on-OSX

I changed the plugin call "ctags" to "ctags-exuberant"(they point to the same executable on Ubuntu once you install exuberant-ctags) so that it's more specific. At least now it will say "command not found" if it's not installed.

If that works then I'll add OSX instructions to the README.