Re: Python 3 and pygments-parser
Shigio YAMAGUCHI <[email protected]> Tue, 14 May 2024 15:16:37 +0900
| Newsgroups | gmane.comp.gnu.global.bugs |
|---|---|
| Message-ID | <CADJmJYoUAc3TTvb61e85sWVc-TJi71BFazQn0YRY5UTO+S83ug@mail.gmail.com> |
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 not =
set.
If it is not set, default path obtained by configure script should be use=
d.
$ 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]>=
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 configu=
ration of ctagscom. Leave it undefined and rely on whatever UNIVERSAL_CTAGS=
has been configured to. Only if ctagscom is empty, you will see a comparis=
on between b'' (empty bytearray) and '' (empty string).
>
> Best regards,
> Marcus
--=20
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F 1C33 969C 3BE3 89DD A6EB