Thread: CTAGS for PL/pgSQL ?

CTAGS for PL/pgSQL ?

From
Charles Sheridan
Date:
Does anyone know if there are any CTAGS extensions or variants that
support PL/pgSQL ?

I use exuberant-ctags which does not support it, and a web search does
not return anything promising.

(I sent this same email to -novice the list, but this list seems more
appropriate).


Regards,
Charles Sheridan

Re: CTAGS for PL/pgSQL ?

From
Luca Ferrari
Date:
On Wed, Aug 28, 2013 at 5:08 PM, Charles Sheridan <cesheri@swbell.net> wrote:
> Does anyone know if there are any CTAGS extensions or variants that support
> PL/pgSQL ?
>
> I use exuberant-ctags which does not support it, and a web search does not
> return anything promising.

As far as I know, the quick answer is NO.
However I made a few simple tests with etags and it seems to work with
plpgsql. However I would expect it to fail for some advanced features.

Luca



Re: CTAGS for PL/pgSQL ?

From
Charles Sheridan
Date:
>> Does anyone know if there are any CTAGS extensions or variants that support
>> PL/pgSQL ?
>>
>> I use exuberant-ctags which does not support it, and a web search does not
>> return anything promising.
> As far as I know, the quick answer is NO.
> However I made a few simple tests with etags and it seems to work with
> plpgsql. However I would expect it to fail for some advanced features.
>
> Luca
>
Thanks Luca, unfortunately (?) I'm a pretty heavy Vim user, so etags is 
not in my scope.

Regards,
Charles




Re: CTAGS for PL/pgSQL ?

From
Bruce Momjian
Date:
On Thu, Aug 29, 2013 at 08:18:03AM -0500, Charles Sheridan wrote:
> 
> >>Does anyone know if there are any CTAGS extensions or variants that support
> >>PL/pgSQL ?
> >>
> >>I use exuberant-ctags which does not support it, and a web search does not
> >>return anything promising.
> >As far as I know, the quick answer is NO.
> >However I made a few simple tests with etags and it seems to work with
> >plpgsql. However I would expect it to fail for some advanced features.
> >
> >Luca
> >
> Thanks Luca, unfortunately (?) I'm a pretty heavy Vim user, so etags
> is not in my scope.

Uh, I think Vim can use etags, no?  Isn't etags Exuberant Ctags?  The 
Exuberant Ctags's FAQ mentions Vim:
http://ctags.sourceforge.net/faq.html#11

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +



Re: CTAGS for PL/pgSQL ?

From
Luca Ferrari
Date:
On Thu, Aug 29, 2013 at 3:33 PM, Bruce Momjian <bruce@momjian.us> wrote:

> Uh, I think Vim can use etags, no?  Isn't etags Exuberant Ctags?  The
> Exuberant Ctags's FAQ mentions Vim:
>

I was referring to the etags shipped with emacs, that even if does not
support (explicitly) sql seems to work for a very simple test. I've
done the same test using the etags (from ctags) and it works too, so
now the important thing is to make vim using the tags file and see
what is missing.


Luca



Re: CTAGS for PL/pgSQL ?

From
Charles Sheridan
Date:
On 13-08-29 9:00 AM, Luca Ferrari wrote:
> On Thu, Aug 29, 2013 at 3:33 PM, Bruce Momjian <bruce@momjian.us> wrote:
>
>> Uh, I think Vim can use etags, no?  Isn't etags Exuberant Ctags?  The
>> Exuberant Ctags's FAQ mentions Vim:
>>
> I was referring to the etags shipped with emacs, that even if does not
> support (explicitly) sql seems to work for a very simple test. I've
> done the same test using the etags (from ctags) and it works too, so
> now the important thing is to make vim using the tags file and see
> what is missing.
>
>
> Luca
>
>
Vim documentation states that ctags won't work w/ vim, and recommends 
exuberant-ctags.  If ctags does process PL/pgSQL, perhaps that output 
could be added to the exuberant-ctags tags file, likely w/ some 
processing.  I've got exuberant-ctags on a cron, and I think that Vim 
also calls it periodically during a Vim session, so I'd also cron ctags 
for regular update to the same tags file.   To avoid sync problems, 
where exuberant-ctags overwrites the ctags content, I'd actually want to 
call both tags programs from the a common exuberant-ctags wrapper.

Charles