Closed glyph closed 11 years ago
Thanks for the report Glyph; I have really only tested with simple scripts so far -- even Django's HTTP server causes problems (unless you turn off auto-reload). I'm just using Pygments auto-identification; how does Twisted normally handle content identification with Pygments?
"content identification with Pygments" is not normally a thing that we have to "handle" :). We write code in Python, usually with a .py
extension, but very occasionally (as in this case) in the bin
directory, with no extension, or with a weird extension (like .tac
). Then, if a developer uses a tool which needs to know that the code in question is Python for some reason, that developer just tells that tool that the code in question is Python. 99% of the time this is just a text editor anyway, not Pygments.
IMHO, it would be reasonable for bugjar to always assume the argument that it's given on the command line is Python, since that is literally a requirement :-). If other files failed to syntax highlight that would be a far less annoying failure than failing to work entirely.
Thanks for the fix! Hopefully I'll try again soon :-).
Here's what I tried, and here's the traceback: