Changes between Initial Version and Version 1 of Ticket #31256
- Timestamp:
- Sep 14, 2011, 5:33:38 PM (13 years ago)
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 3 3 Here's the command I'm running from my project's root directory: 4 4 5 {{{ 5 6 /opt/local/bin/ctags -e -f /path/to/TAGS -R --tag-relative=yes --totals=no --langmap=php:.php --exclude=.svn --PHP-kinds=+cf . 7 }}} 6 8 7 9 I'm running this on a PHP project, obviously. Also, you'll notice the -e flag, making the TAGS file etags compatible. … … 9 11 A proper etags reference should basically be of the format: 10 12 13 {{{ 11 14 <file>,<size of tag entry> 12 15 <tag information> 16 }}} 13 17 14 18 A TAGS file will contain many of these. … … 16 20 Here's an example of what the ctags compiled with Snow Leopard is (properly) generating. 17 21 22 {{{ 18 23 ../../../Volumes/webdev/biosafety/trunk/application/Bootstrap.php,78 19 24 class Bootstrap extends Zend_Application_Bootstrap_BootstrapBootstrap33,719 20 25 (... extra lines here for the rest of this tag's information ...) 26 }}} 21 27 22 28 The important thing here is the path at the beginning. … … 24 30 The 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: 25 31 32 {{{ 26 33 ,78 27 34 class Bootstrap extends Zend_Application_Bootstrap_BootstrapBootstrap33,719 28 35 (... extra lines here for the rest of this tag's information ...) 36 }}} 29 37 30 38 Notice 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.