tag 784621 moreinfo thanks On Thu, 07 May 2015, Arturo Borrero Gonzalez wrote:
Heyho, > Using cgit, I've found a small issue if the source code is a debian package. > The d/rules is not shown if no lexer is found. > > The apache log says this: > > [cgi:error] [pid 24139] [client XX] AH01215: Traceback (most recent call > last):, referer: http://www.example.org/git/pkg-debian/tree/debian > [cgi:error] [pid 24139] [client XX] AH01215: File > "/usr/lib/cgit/filters/syntax-highlighting.py", line 42, in <module>, > referer: http://www.example.org/git/pkg-debian/tree/debian > [cgi:error] [pid 24139] [client XX] AH01215: lexer = guess_lexer(data, > encoding='utf-8'), referer: http://www.example.org/git/pkg-debian/tree/debian > [cgi:error] [pid 24139] [client XX] AH01215: File > "/usr/lib/python2.7/dist-packages/pygments/lexers/__init__.py", line 252, in > guess_lexer, referer: http://www.example.org/git/pkg-debian/tree/debian > [cgi:error] [pid 24139] [client XX] AH01215: raise ClassNotFound('no > lexer matching the text found'), referer: > http://www.example.org/git/pkg-debian/tree/debian > [cgi:error] [pid 24139] [client XX] AH01215: pygments.util.ClassNotFound: no > lexer matching the text found, referer: > http://www.example.org/git/pkg-debian/tree/debian > > I think cgit should print the file with no syntax highlighting. I am currently testing that problem against the 0.11.2 that I am currently packaging. I am not able to reproduce the problem with that version, can you please try to reproduce it with that version, after I uploaded it? Thanks in advance Alex -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org