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 <= ;<a href=3D"mailto:[email protected]">[email protected]</a>>:<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 <<a href= =3D"mailto:[email protected]" target=3D"_blank">[email protected]</= a>>:<br> ><br> > 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> ><br> ><br> > =D0=9E=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=BEMeizu M3 n= ote<br> ><br> > -------- =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> > =D0=9E=D1=82: Shigio YAMAGUCHI <<a href=3D"mailto:[email protected]" t= arget=3D"_blank">[email protected]</a>><br> > =D0=92=D1=80=D0=B5=D0=BC=D1=8F: =D1=81=D0=B1 10/8 01:52<br> > =D0=9A=D0=BE=D0=BC=D1=83: Gis Ochre <<a href=3D"mailto:gisochrewhb@= gmail.com" target=3D"_blank">[email protected]</a>><br> > =D0=9A=D0=BE=D0=BF=D0=B8=D1=8F: bug-global <<a href=3D"mailto:bug-g= [email protected]" target=3D"_blank">[email protected]</a>><br> >=C2=A0 =D0=A2=D0=B5=D0=BC=D0=B0: Re: bug: gtags not respecting .ctags f= iles<br> ><br> > >Sicne here is bug mailing list (not help mailing list), I am not i= nterested<br> > >in your problem. Could you describe gtags issue briefly?<br> > ><br> > >Regards,<br> > >Shigio<br> > ><br> > >2019=E5=B9=B48=E6=9C=889=E6=97=A5(=E9=87=91) 21:54 Gis Ochre <<= a href=3D"mailto:[email protected]" target=3D"_blank">gisochrewhb@gmail= .com</a>>:<br> > >><br> > >> Hello, Shigio!<br> > >> Sorry, my bad. I didn't describe my particular issue in d= etail.<br> > >> My particular issue was that gtags didn't respect `--lang= def=3Dkotlin` config from<br> > >> ~/.ctags.d/custom.ctags file.<br> > >> On second thought, it doesn't require changing exuberant-= ctags.c.<br> > >> Adding line<br> > >> ```<br> > >>=C2=A0 =C2=A0 =C2=A0:langmap=3Dkotlin\:.kt:\<br> > >> ```<br> > >> under `universal-ctags|setting to use Universal Ctags plug-in= parser:\` in gtags.conf<br> > >> fixes the issue for me and ctags start using that langdef whe= n called by gtags.<br> > >><br> > >> But maybe you should consider adding smth like<br> > >> ```<br> > >> +:options=3D~/.ctags.d/mycustom.ctags,~/.ctags.d/anothercusto= m.ctags:\<br> > >> ```<br> > >> to gtags.conf to support arbitrary ctags options, not just --= langmap and -exlude.<br> > >><br> > >><br> > >> =D0=BF=D1=82, 9 =D0=B0=D0=B2=D0=B3. 2019 =D0=B3. =D0=B2 04:39= , Shigio YAMAGUCHI <<a href=3D"mailto:[email protected]" target=3D"_blank">= [email protected]</a>>:<br> > >>><br> > >>> Hello,<br> > >>> File exclusion should be specified in gtags.conf. GLOBAL = uses uctags only<br> > >>> as an parser. If you want to skip 'foo' file, ple= ase write like follows:<br> > >>><br> > >>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[gtags.conf]<br> > >>>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:skip=3Dfoo:\<br> > >>><br> > >>> If 'foo' is a directory, it should be 'foo/&#= 39;.<br> > >>> Please see gtags(1) for the detail.<br> > >>><br> > >>> Regards,<br> > >>> Shigio<br> > >>><br> > >>> 2019=E5=B9=B48=E6=9C=889=E6=97=A5(=E9=87=91) 8:58 Gis Och= re <<a href=3D"mailto:[email protected]" target=3D"_blank">gisochrew= [email protected]</a>>:<br> > >>> ><br> > >>> > Hello, everyone!<br> > >>> ><br> > >>> > 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> > >>> > Can confirm that cornercase patch.diff fixed the iss= ue for me.<br> > >>> ><br> > >>> > _______________________________________________<br> > >>> > Bug-global mailing list<br> > >>> > <a href=3D"mailto:[email protected]" target=3D"_bla= nk">[email protected]</a><br> > >>> > <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> > >>><br> > >>><br> > >>><br> > >>> --<br> > >>> Shigio YAMAGUCHI <<a href=3D"mailto:[email protected]" ta= rget=3D"_blank">[email protected]</a>><br> > >>> PGP fingerprint:<br> > >>> 26F6 31B4 3D62 4A92 7E6F=C2=A0 1C33 969C 3BE3 89DD A6EB<b= r> > ><br> > ><br> > ><br> > >--<br> > >Shigio YAMAGUCHI <<a href=3D"mailto:[email protected]" target=3D"_= blank">[email protected]</a>><br> > >PGP fingerprint:<br> > >26F6 31B4 3D62 4A92 7E6F=C2=A0 1C33 969C 3BE3 89DD A6EB<br> <br> <br> <br> -- <br> Shigio YAMAGUCHI <<a href=3D"mailto:[email protected]" target=3D"_blank">sh= [email protected]</a>><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==--