SublimeText / LaTeXTools

LaTeX plugin for Sublime Text
https://latextools.readthedocs.io/
2k stars 364 forks source link

texcount.py crashes in ST4 #1490

Open darthoctopus opened 3 years ago

darthoctopus commented 3 years ago

Results from texcount are presented via the quick panel in texcount.py as

            self.view.window().show_quick_panel(
                res_split[1:4] + res_split[9:], None
            )

However, according to the API docs, the second positional argument should be a callable, and this causes a crash in ST4. I've been using a workaround as

res_split[1:4] + res_split[9:], (lambda *args: None)

for a while now and it seems to work.