Re: Python 3 and pygments-parser
Marcus Harnisch <[email protected]> Thu, 16 May 2024 00:42:46 +0200
| Newsgroups | gmane.comp.gnu.global.bugs |
|---|---|
| Message-ID | <CAAmKruUiKPxH-4kNR=1b8D+LL+ubxVyTAK5DC-TyX=Lw1mSbcA@mail.gmail.com> |
--0000000000000a4392061885d77f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Shigio Glad to hear that it didn't work :-) Thank you for adding this to the known bugs list. Best regards, Marcus On Tue, May 14, 2024 at 8:16=E2=80=AFAM Shigio YAMAGUCHI <[email protected]> w= rote: > Hi Marcus, > I confirmed that the problem is reproduced. > I have made a new entry to the 'Known bugs' list. > Thank you for the report. > > [https://www.gnu.org/software/global/bugs.html] > o Pygments plug-in parser with python3 does not work, if 'ctagscom' is no= t > set. > If it is not set, default path obtained by configure script should be > used. > > $ cat > gtags.conf > default:\ > :ctagscom=3D:\ > :langmap=3DC\:.c.h:\ > :gtags_parser=3DC\:/usr/local/lib/gtags/pygments-parser.la: > $ gtags > $ global -x '.*' > $ _ # no tags > > Regards, > Shigio > > On Mon, May 13, 2024 at 5:04=E2=80=AFPM Marcus Harnisch > <[email protected]> wrote: > > > > Hi Shigio > > > > On Sat, May 11, 2024 at 5:35=E2=80=AFAM Shigio YAMAGUCHI <[email protected]= g> wrote: > >> > >> $ cat gtags.conf > >> default:\ > >> :ctagscom=3D/opt/local/bin/uctags:\ > >> :langmap=3DC\:.c.h:\ > >> :gtags_parser=3DC\:/usr/local/lib/gtags/pygments-parser.la: > > > > > > The important difference, which exposes the bug, is your explicit > configuration of ctagscom. Leave it undefined and rely on whatever > UNIVERSAL_CTAGS has been configured to. Only if ctagscom is empty, you wi= ll > see a comparison between b'' (empty bytearray) and '' (empty string). > > > > Best regards, > > Marcus > > > > -- > Shigio YAMAGUCHI <[email protected]> > PGP fingerprint: > 26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB > --0000000000000a4392061885d77f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-size:small">Hi = Shigio</div><div><br></div><div>Glad <span class=3D"gmail_default" style=3D= "font-size:small">to hear that </span>it didn't work<span class=3D"gmai= l_default" style=3D"font-size:small"> </span>:-)<span class=3D"gmail_defaul= t" style=3D"font-size:small"> Thank you for adding this to the known bugs l= ist.<br></span></div><div><span class=3D"gmail_default" style=3D"font-size:= small"><br></span></div><div><span class=3D"gmail_default" style=3D"font-si= ze:small">Best regards,</span></div><div><span class=3D"gmail_default" styl= e=3D"font-size:small">Marcus<br></span></div></div><br><div class=3D"gmail_= quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tue, May 14, 2024 at 8:16= =E2=80=AFAM Shigio YAMAGUCHI <<a href=3D"mailto:[email protected]">shigio@g= nu.org</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"m= argin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left= :1ex">Hi Marcus,<br> I confirmed that the problem is reproduced.<br> I have made a new entry to the 'Known bugs' list.<br> Thank you for the report.<br> <br> [<a href=3D"https://www.gnu.org/software/global/bugs.html" rel=3D"noreferre= r" target=3D"_blank">https://www.gnu.org/software/global/bugs.html</a>]<br> o Pygments plug-in parser with python3 does not work, if 'ctagscom'= is not set.<br> =C2=A0 If it is not set, default path obtained by configure script should b= e used.<br> <br> $ cat > gtags.conf<br> default:\<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 :ctagscom=3D:\<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 :langmap=3DC\:.c.h:\<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 :gtags_parser=3DC\:/usr/local/lib/gtags/<a href= =3D"http://pygments-parser.la" rel=3D"noreferrer" target=3D"_blank">pygment= s-parser.la</a>:<br> $ gtags<br> $ global -x '.*'<br> $ _=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0# no tags<br> <br> Regards,<br> Shigio<br> <br> On Mon, May 13, 2024 at 5:04=E2=80=AFPM Marcus Harnisch<br> <<a href=3D"mailto:[email protected]" target=3D"_blank">marcus= [email protected]</a>> wrote:<br> ><br> > Hi Shigio<br> ><br> > On Sat, May 11, 2024 at 5:35=E2=80=AFAM Shigio YAMAGUCHI <<a href= =3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>> wrote:<= br> >><br> >> $ cat gtags.conf<br> >> default:\<br> >> :ctagscom=3D/opt/local/bin/uctags:\<br> >> :langmap=3DC\:.c.h:\<br> >> :gtags_parser=3DC\:/usr/local/lib/gtags/<a href=3D"http://pygments= -parser.la" rel=3D"noreferrer" target=3D"_blank">pygments-parser.la</a>:<br= > ><br> ><br> > The important difference, which exposes the bug, is your explicit conf= iguration of ctagscom. Leave it undefined and rely on whatever UNIVERSAL_CT= AGS has been configured to. Only if ctagscom is empty, you will see a compa= rison between b'' (empty bytearray) and '' (empty string).<= br> ><br> > Best regards,<br> > Marcus<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> --0000000000000a4392061885d77f--