Re: possible bug in pygments-parser
Shigio YAMAGUCHI <[email protected]> Sun, 19 Nov 2023 11:41:51 +0900
| Newsgroups | gmane.comp.gnu.global.general |
|---|---|
| Message-ID | <CADJmJYoj78NGoQJD-ntjs_PcdMpvRK0bsa6=qZAgEtHerhAXtQ@mail.gmail.com> |
Hello, > 1. The last few lines of /usr/share/gtags/PLUGIN_HOWTO.pygments should pr= obably be deleted. You are right. It should be maintained as a part of GNU Global. > Line 30 of /usr/share/gtags/script/pygments_parser.py is ... EXUBERANT_CT= AGS =3D "/usr/bin/etags" That's obviously wrong and different from the original. You should suggest it on Manjaro mailing list instead of here. Regards, Shigio On Sun, Nov 19, 2023 at 12:39=E2=80=AFAM Mandar Mitra <[email protected]= om> wrote: > > I'm running global 6.6.10-1 on Arch / Manjaro Linux. Just wanted to check= about a couple of issues on this discussion list before bothering the deve= lopers. > > > 1. The last few lines of /usr/share/gtags/PLUGIN_HOWTO.pygments should pr= obably be deleted. It currently reads: > > <begin quote> > Pygments plug-in parser was written by Yoshitaro MAKISE. > For detals, please see the following site: > [https://github.com/yoshizow/global-pygments-plugin] > > Though it is considered a separate package, not part of GLOBAL proper, > we included it for user's convenience. > <end quote> > > But https://github.com/yoshizow/global-pygments-plugin says > > <begin quote> > IMPORTANT NOTICE! > > global-pygments-plugin is now bundled with GNU GLOBAL. > The development continues in the GLOBAL community and you can find the la= test code there. > > This repository is no longer maintained and just remain for reference pur= poses. > <end quote> > > > 2. Line 30 of /usr/share/gtags/script/pygments_parser.py is > > EXUBERANT_CTAGS =3D "/usr/bin/etags" > > For me, etags is provided by the emacs package, instead of ctags / univer= sal-ctags. etags does not accept the -x flag (line 142 of pygments_parser.p= y). > > So the command "gtags --gtagslabel=3Dpygments" gives an error, while "gta= gs --gtagslabel=3Duniversal-ctags" works without problems. > > Would it be a good idea to just change etags to ctags in the above defini= tion? > > > Thanks, > Mandar. > --=20 Shigio YAMAGUCHI <[email protected]> PGP fingerprint: 26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB