delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/12/11/13:59:23

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <CAN4-eHLtc3o=59PJ6fm+TEUc7NUid4U8J69+UKiwOXVM49A5tA@mail.gmail.com>
References: <CAN4-eHLtc3o=59PJ6fm+TEUc7NUid4U8J69+UKiwOXVM49A5tA AT mail DOT gmail DOT com>
Date: Tue, 11 Dec 2012 10:58:54 -0800
Message-ID: <CAN4-eHKrOtUfegrBxpZzgMh0ErFAub4yBFxY=-qmf1jsy7PPQQ@mail.gmail.com>
Subject: Re: ctags recursion broken?
From: Alan Thompson <thompson2526 AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Hi - As a long-time user of Cygwin and Exuberant ctags, it seems that
the current version of ctags on Cygwin is broken.  Specifically,

> /bin/ctags -R .
/bin/ctags: skipping .: it is not a regular file.

Normally, ctags should recursively descend and process all files from
the current directory.  I downloaded version 5.8 of Exuberant Ctags
from http://ctags.sourceforge.net/ and it works as expected.

Upon closer inspection, it appears that Cygwin has a different version
of ctags (not Exuberant Ctags!) that does not support recursion at
all!  Specifically,

> ctags -V
ctags (standalone 21.4.22)
Copyright (C) 2007 Free Software Foundation, Inc.
This program is distributed under the terms in ETAGS.README
>
> ctags --help
Usage: ctags [options] [[regex-option ...] file-name] ...

These are the options accepted by ctags.
You may use unambiguous abbreviations for the long option names.
  A - as file name means read names from stdin (one per line).
Absolute names are stored in the output file as they are.
Relative ones are stored relative to the output file's directory.
<snip>
-R, --no-regex
        Don't create tags from regexps for the following files.
<snip>
>

So the -R no longer means recursion, and there is no --recurse option.

Given that Exuberant Ctags is distributed under the GPL and is very
powerful, it seems that it would  be prudent to include it in Cygwin.
I could even volunteer to be the package maintainer, if desired.

How should we proceed?

Thank you,
Alan Thompson

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019