bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug: gtags not respecting .ctags files


From: Gis Ochre
Subject: Re: bug: gtags not respecting .ctags files
Date: Fri, 9 Aug 2019 21:28:59 +0300

Correction,
To remove confusion I may have caused, there is no need for an additional feature of:
```
+:options=~/.ctags.d/...
```
because gtags does respect settings in *.ctags files.
It was the abovementioned quirk with
`:langmap=...` override in gtags.conf, which confused me.

пт, 9 авг. 2019 г. в 15:53, Gis Ochre <address@hidden>:
Hello, Shigio!
Sorry, my bad. I didn't describe my particular issue in detail.
My particular issue was that gtags didn't respect `--langdef=kotlin` config from
~/.ctags.d/custom.ctags file.
On second thought, it doesn't require changing exuberant-ctags.c.
Adding line
```
    :langmap=kotlin\:.kt:\
```
under `universal-ctags|setting to use Universal Ctags plug-in parser:\` in gtags.conf
fixes the issue for me and ctags start using that langdef when called by gtags.

But maybe you should consider adding smth like
```
+:options=~/.ctags.d/mycustom.ctags,~/.ctags.d/anothercustom.ctags:\
```
to gtags.conf to support arbitrary ctags options, not just --langmap and -exlude.


пт, 9 авг. 2019 г. в 04:39, Shigio YAMAGUCHI <address@hidden>:
Hello,
File exclusion should be specified in gtags.conf. GLOBAL uses uctags only
as an parser. If you want to skip 'foo' file, please write like follows:

        [gtags.conf]
        :skip=foo:\

If 'foo' is a directory, it should be 'foo/'.
Please see gtags(1) for the detail.

Regards,
Shigio

2019年8月9日(金) 8:58 Gis Ochre <address@hidden>:
>
> Hello, everyone!
>
> Problem described in detail in https://github.com/universal-ctags/ctags/issues/1608.
> Can confirm that cornercase patch.diff fixed the issue for me.
>
> _______________________________________________
> Bug-global mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-global



--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB

reply via email to

[Prev in Thread] Current Thread [Next in Thread]