CTags
CTags copied to clipboard
extra_tag_paths does not work on OSX
I am trying to include a .tags file for the core OSX SDK header files, however retreiving definitions does not work after configuring as follows. Furthermore, setting 'debug' to 'true' in the ctags sublime config does not produce any additional output.
-
cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include -
ctags -f .tags -R .(will likely need root privs to write here) - Modify CTags.sublime-settings to include:
"extra_tag_paths": [ [["source.python", "windows"], "C:\\Python27\\Lib\\tags"], [["source.c", "osx"], "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/"] ], - Rebuild ctags for any project/file
- Add a variable that exists in the originally built .tags file (such as
xmlNswhich should exist inlibxml2/libxml/tree.h) - Attempt to retrieve the definition for variable type in step 5. Note the message "Can't find 'xmlNs'"