latex.tmbundle icon indicating copy to clipboard operation
latex.tmbundle copied to clipboard

Run command crashes with undefined control sequence in \input file

Open eduardkareletc opened this issue 3 years ago • 0 comments

A bug in the bundle building script is triggered when a file is included using \input. The first undefined control sequence in that file kills the build with the error message below:

Traceback (most recent call last): File "/Users/edkj/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/bin/texmate.py", line 1014, in status = command_parser.parse_stream() File "/Users/edkj/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Python/parsing.py", line 771, in parse_stream return super(LaTexMkParser, self).parse_stream() File "/Users/edkj/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Python/parsing.py", line 188, in parse_stream function(matching, line) File "/Users/edkj/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Python/parsing.py", line 790, in start_latex fatal_error, number_errors, number_warnings = parser.parse_stream() File "/Users/edkj/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Python/parsing.py", line 611, in parse_stream return super(LaTexParser, self).parse_stream() File "/Users/edkj/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Python/parsing.py", line 188, in parse_stream function(matching, line) File "/Users/edkj/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/lib/Python/parsing.py", line 631, in handle_error linenumber = int(matching.group(2)) TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

The crash leaves a broken pdf output and broken Biber file. Clean up after the bug would be nice.

eduardkareletc avatar Jun 30 '22 11:06 eduardkareletc