CTags icon indicating copy to clipboard operation
CTags copied to clipboard

extra_tag_paths does not work on OSX

Open wuntee opened this issue 10 years ago • 0 comments

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.

  1. cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include
  2. ctags -f .tags -R . (will likely need root privs to write here)
  3. 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/"] ],
  4. Rebuild ctags for any project/file
  5. Add a variable that exists in the originally built .tags file (such as xmlNs which should exist in libxml2/libxml/tree.h)
  6. Attempt to retrieve the definition for variable type in step 5. Note the message "Can't find 'xmlNs'"

wuntee avatar Feb 10 '15 15:02 wuntee