Open skywind3000 opened 6 years ago
Would you please make a patch to pygments_parser.py in gnu global after fixing this ?
It can be reproduced easily on Windows, just put an empty "hello.Bat" (keep the first letter of .bat upcase) file in your project, than run gtags with pygments label enabled.
I believe, gtags will lower case ext-names on windows, but pygments_parser.py won't, that works fine on linux but will crash on windows when you got a .C
, .Cpp
, .Py
or .Bat
filename.
I am here because found your name in the head of pygments_parser.py, and google tells me you have a project here.
Running gnu global 6.6.2 on windows with pygments_parser.py, I encountered this:
after looking into pygments_parser.py, I found:
the third line cannot handle extnames which don't exist in the langmap, and should be fixed as:
same problem in
pygments_parser.py.in
:https://github.com/yoshizow/global-pygments-plugin/blob/aebed6d2c77c01c82319aa6577c3b51c57e20ecc/pygments_parser.py.in#L105-L110