Re: bug: gtags not respecting .ctags files

Gis Ochre <[email protected]> Sat, 10 Aug 2019 14:57:09 +0300
Newsgroups gmane.comp.gnu.global.general
Message-ID <CAF4sATbUz=TAvvoy_zJT+AbfzuE+mZQONUPV8Rphaq6G3ZViDw@mail.gmail.com>
--===============1032375167497761453==
Content-Type: multipart/alternative; boundary="00000000000042b505058fc1fe77"

--00000000000042b505058fc1fe77
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Just for hitstory. Sorry for not looking at
https://lists.gnu.org/archive/html/help-global/ first.
That was dumb.

=D1=81=D0=B1, 10 =D0=B0=D0=B2=D0=B3. 2019 =D0=B3. =D0=B2 14:33, Shigio YAMA=
GUCHI <[email protected]>:

> Would you please repost this issue to the help mailing list?
> I think I can help you.
>
> Regards,
> Shigio
>
> 2019=E5=B9=B48=E6=9C=8810=E6=97=A5(=E5=9C=9F) 18:55 gisochrewhb <gisochre=
[email protected]>:
> >
> > Shigio, no code issue. Gtags just lacks documentation on how to use
> custom --langdefs of uctags. It would save gtags users frustration. Anywa=
y,
> thx for help!
> >
> >
> > =D0=9E=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=BEMeizu M3 no=
te
> >
> > -------- =D0=98=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D0=BE=D0=B5 =D1=81=D0=BE=
=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B5 --------
> > =D0=9E=D1=82: Shigio YAMAGUCHI <[email protected]>
> > =D0=92=D1=80=D0=B5=D0=BC=D1=8F: =D1=81=D0=B1 10/8 01:52
> > =D0=9A=D0=BE=D0=BC=D1=83: Gis Ochre <[email protected]>
> > =D0=9A=D0=BE=D0=BF=D0=B8=D1=8F: bug-global <[email protected]>
> >  =D0=A2=D0=B5=D0=BC=D0=B0: Re: bug: gtags not respecting .ctags files
> >
> > >Sicne here is bug mailing list (not help mailing list), I am not
> interested
> > >in your problem. Could you describe gtags issue briefly?
> > >
> > >Regards,
> > >Shigio
> > >
> > >2019=E5=B9=B48=E6=9C=889=E6=97=A5(=E9=87=91) 21:54 Gis Ochre <gisochre=
[email protected]>:
> > >>
> > >> Hello, Shigio!
> > >> Sorry, my bad. I didn't describe my particular issue in detail.
> > >> My particular issue was that gtags didn't respect `--langdef=3Dkotli=
n`
> config from
> > >> ~/.ctags.d/custom.ctags file.
> > >> On second thought, it doesn't require changing exuberant-ctags.c.
> > >> Adding line
> > >> ```
> > >>     :langmap=3Dkotlin\:.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 calle=
d
> by gtags.
> > >>
> > >> But maybe you should consider adding smth like
> > >> ```
> > >> +:options=3D~/.ctags.d/mycustom.ctags,~/.ctags.d/anothercustom.ctags=
:\
> > >> ```
> > >> to gtags.conf to support arbitrary ctags options, not just --langmap
> and -exlude.
> > >>
> > >>
> > >> =D0=BF=D1=82, 9 =D0=B0=D0=B2=D0=B3. 2019 =D0=B3. =D0=B2 04:39, Shigi=
o YAMAGUCHI <[email protected]>:
> > >>>
> > >>> Hello,
> > >>> File exclusion should be specified in gtags.conf. GLOBAL uses uctag=
s
> only
> > >>> as an parser. If you want to skip 'foo' file, please write like
> follows:
> > >>>
> > >>>         [gtags.conf]
> > >>>         :skip=3Dfoo:\
> > >>>
> > >>> If 'foo' is a directory, it should be 'foo/'.
> > >>> Please see gtags(1) for the detail.
> > >>>
> > >>> Regards,
> > >>> Shigio
> > >>>
> > >>> 2019=E5=B9=B48=E6=9C=889=E6=97=A5(=E9=87=91) 8:58 Gis Ochre <gisoch=
[email protected]>:
> > >>> >
> > >>> > 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
> > >>> > [email protected]
> > >>> > https://lists.gnu.org/mailman/listinfo/bug-global
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> Shigio YAMAGUCHI <[email protected]>
> > >>> PGP fingerprint:
> > >>> 26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB
> > >
> > >
> > >
> > >--
> > >Shigio YAMAGUCHI <[email protected]>
> > >PGP fingerprint:
> > >26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB
>
>
>
> --
> Shigio YAMAGUCHI <[email protected]>
> PGP fingerprint:
> 26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB
>

--00000000000042b505058fc1fe77
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Just for hitstory. Sorry for not looking at <a href=
=3D"https://lists.gnu.org/archive/html/help-global/">https://lists.gnu.org/=
archive/html/help-global/</a> first.<br></div>That was dumb.<br></div><br><=
div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">=D1=81=D0=
=B1, 10 =D0=B0=D0=B2=D0=B3. 2019 =D0=B3. =D0=B2 14:33, Shigio YAMAGUCHI &lt=
;<a href=3D"mailto:[email protected]">[email protected]</a>&gt;:<br></div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p=
x solid rgb(204,204,204);padding-left:1ex">Would you please repost this iss=
ue to the help mailing list?<br>
I think I can help you.<br>
<br>
Regards,<br>
Shigio<br>
<br>
2019=E5=B9=B48=E6=9C=8810=E6=97=A5(=E5=9C=9F) 18:55 gisochrewhb &lt;<a href=
=3D"mailto:[email protected]" target=3D"_blank">[email protected]</=
a>&gt;:<br>
&gt;<br>
&gt; Shigio, no code issue. Gtags just lacks documentation on how to use cu=
stom --langdefs of uctags. It would save gtags users frustration. Anyway, t=
hx for help!<br>
&gt;<br>
&gt;<br>
&gt; =D0=9E=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=BEMeizu M3 n=
ote<br>
&gt;<br>
&gt; -------- =D0=98=D1=81=D1=85=D0=BE=D0=B4=D0=BD=D0=BE=D0=B5 =D1=81=D0=BE=
=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B5 --------<br>
&gt; =D0=9E=D1=82: Shigio YAMAGUCHI &lt;<a href=3D"mailto:[email protected]" t=
arget=3D"_blank">[email protected]</a>&gt;<br>
&gt; =D0=92=D1=80=D0=B5=D0=BC=D1=8F: =D1=81=D0=B1 10/8 01:52<br>
&gt; =D0=9A=D0=BE=D0=BC=D1=83: Gis Ochre &lt;<a href=3D"mailto:gisochrewhb@=
gmail.com" target=3D"_blank">[email protected]</a>&gt;<br>
&gt; =D0=9A=D0=BE=D0=BF=D0=B8=D1=8F: bug-global &lt;<a href=3D"mailto:bug-g=
[email protected]" target=3D"_blank">[email protected]</a>&gt;<br>
&gt;=C2=A0 =D0=A2=D0=B5=D0=BC=D0=B0: Re: bug: gtags not respecting .ctags f=
iles<br>
&gt;<br>
&gt; &gt;Sicne here is bug mailing list (not help mailing list), I am not i=
nterested<br>
&gt; &gt;in your problem. Could you describe gtags issue briefly?<br>
&gt; &gt;<br>
&gt; &gt;Regards,<br>
&gt; &gt;Shigio<br>
&gt; &gt;<br>
&gt; &gt;2019=E5=B9=B48=E6=9C=889=E6=97=A5(=E9=87=91) 21:54 Gis Ochre &lt;<=
a href=3D"mailto:[email protected]" target=3D"_blank">gisochrewhb@gmail=
.com</a>&gt;:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Hello, Shigio!<br>
&gt; &gt;&gt; Sorry, my bad. I didn&#39;t describe my particular issue in d=
etail.<br>
&gt; &gt;&gt; My particular issue was that gtags didn&#39;t respect `--lang=
def=3Dkotlin` config from<br>
&gt; &gt;&gt; ~/.ctags.d/custom.ctags file.<br>
&gt; &gt;&gt; On second thought, it doesn&#39;t require changing exuberant-=
ctags.c.<br>
&gt; &gt;&gt; Adding line<br>
&gt; &gt;&gt; ```<br>
&gt; &gt;&gt;=C2=A0 =C2=A0 =C2=A0:langmap=3Dkotlin\:.kt:\<br>
&gt; &gt;&gt; ```<br>
&gt; &gt;&gt; under `universal-ctags|setting to use Universal Ctags plug-in=
 parser:\` in gtags.conf<br>
&gt; &gt;&gt; fixes the issue for me and ctags start using that langdef whe=
n called by gtags.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; But maybe you should consider adding smth like<br>
&gt; &gt;&gt; ```<br>
&gt; &gt;&gt; +:options=3D~/.ctags.d/mycustom.ctags,~/.ctags.d/anothercusto=
m.ctags:\<br>
&gt; &gt;&gt; ```<br>
&gt; &gt;&gt; to gtags.conf to support arbitrary ctags options, not just --=
langmap and -exlude.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; =D0=BF=D1=82, 9 =D0=B0=D0=B2=D0=B3. 2019 =D0=B3. =D0=B2 04:39=
, Shigio YAMAGUCHI &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">=
[email protected]</a>&gt;:<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Hello,<br>
&gt; &gt;&gt;&gt; File exclusion should be specified in gtags.conf. GLOBAL =
uses uctags only<br>
&gt; &gt;&gt;&gt; as an parser. If you want to skip &#39;foo&#39; file, ple=
ase write like follows:<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[gtags.conf]<br>
&gt; &gt;&gt;&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:skip=3Dfoo:\<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; If &#39;foo&#39; is a directory, it should be &#39;foo/&#=
39;.<br>
&gt; &gt;&gt;&gt; Please see gtags(1) for the detail.<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; Regards,<br>
&gt; &gt;&gt;&gt; Shigio<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; 2019=E5=B9=B48=E6=9C=889=E6=97=A5(=E9=87=91) 8:58 Gis Och=
re &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">gisochrew=
[email protected]</a>&gt;:<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; Hello, everyone!<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; Problem described in detail in <a href=3D"https://gi=
thub.com/universal-ctags/ctags/issues/1608" rel=3D"noreferrer" target=3D"_b=
lank">https://github.com/universal-ctags/ctags/issues/1608</a>.<br>
&gt; &gt;&gt;&gt; &gt; Can confirm that cornercase patch.diff fixed the iss=
ue for me.<br>
&gt; &gt;&gt;&gt; &gt;<br>
&gt; &gt;&gt;&gt; &gt; _______________________________________________<br>
&gt; &gt;&gt;&gt; &gt; Bug-global mailing list<br>
&gt; &gt;&gt;&gt; &gt; <a href=3D"mailto:[email protected]" target=3D"_bla=
nk">[email protected]</a><br>
&gt; &gt;&gt;&gt; &gt; <a href=3D"https://lists.gnu.org/mailman/listinfo/bu=
g-global" rel=3D"noreferrer" target=3D"_blank">https://lists.gnu.org/mailma=
n/listinfo/bug-global</a><br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt;<br>
&gt; &gt;&gt;&gt; --<br>
&gt; &gt;&gt;&gt; Shigio YAMAGUCHI &lt;<a href=3D"mailto:[email protected]" ta=
rget=3D"_blank">[email protected]</a>&gt;<br>
&gt; &gt;&gt;&gt; PGP fingerprint:<br>
&gt; &gt;&gt;&gt; 26F6 31B4 3D62 4A92 7E6F=C2=A0 1C33 969C 3BE3 89DD A6EB<b=
r>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;--<br>
&gt; &gt;Shigio YAMAGUCHI &lt;<a href=3D"mailto:[email protected]" target=3D"_=
blank">[email protected]</a>&gt;<br>
&gt; &gt;PGP fingerprint:<br>
&gt; &gt;26F6 31B4 3D62 4A92 7E6F=C2=A0 1C33 969C 3BE3 89DD A6EB<br>
<br>
<br>
<br>
-- <br>
Shigio YAMAGUCHI &lt;<a href=3D"mailto:[email protected]" target=3D"_blank">sh=
[email protected]</a>&gt;<br>
PGP fingerprint:<br>
26F6 31B4 3D62 4A92 7E6F=C2=A0 1C33 969C 3BE3 89DD A6EB<br>
</blockquote></div>

--00000000000042b505058fc1fe77--


--===============1032375167497761453==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSGVscC1nbG9i
YWwgbWFpbGluZyBsaXN0CkhlbHAtZ2xvYmFsQGdudS5vcmcKaHR0cHM6Ly9saXN0cy5nbnUub3Jn
L21haWxtYW4vbGlzdGluZm8vaGVscC1nbG9iYWwK

--===============1032375167497761453==--