Changes between Initial Version and Version 1 of Ticket #31256


Ignore:
Timestamp:
Sep 14, 2011, 5:33:38 PM (13 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Please remember to use WikiFormatting, and to Cc the maintainer of the affected port.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31256

    • Property Owner changed from macports-tickets@… to mww@…
    • Property Keywords ctags removed
    • Property Port ctags added
  • Ticket #31256 – Description

    initial v1  
    33Here's the command I'm running from my project's root directory:
    44
     5{{{
    56/opt/local/bin/ctags -e -f /path/to/TAGS -R --tag-relative=yes --totals=no --langmap=php:.php --exclude=.svn --PHP-kinds=+cf .
     7}}}
    68
    79I'm running this on a PHP project, obviously. Also, you'll notice the -e flag, making the TAGS file etags compatible.
     
    911A proper etags reference should basically be of the format:
    1012
     13{{{
    1114<file>,<size of tag entry>
    1215<tag information>
     16}}}
    1317
    1418A TAGS file will contain many of these.
     
    1620Here's an example of what the ctags compiled with Snow Leopard is (properly) generating.
    1721
     22{{{
    1823../../../Volumes/webdev/biosafety/trunk/application/Bootstrap.php,78
    1924class Bootstrap extends Zend_Application_Bootstrap_BootstrapBootstrap33,719
    2025(... extra lines here for the rest of this tag's information ...)
     26}}}
    2127
    2228The important thing here is the path at the beginning.
     
    2430The ctags compiled on Lion, however, doesn't always have this proper format. Sometimes the path will be /var/some/temp/path/somewhere or, more often, will be nonexistent, like this:
    2531
     32{{{
    2633,78
    2734class Bootstrap extends Zend_Application_Bootstrap_BootstrapBootstrap33,719
    2835(... extra lines here for the rest of this tag's information ...)
     36}}}
    2937
    3038Notice there is no file reference before the first comma. Note that not all of the tags references are bad. Some are proper, a few have paths to /var/somewhere, but the rest have no file reference at all.