Skip to content
Snippets Groups Projects
Commit 5d82e492 authored by James Yu's avatar James Yu
Browse files

Fix #4317 Logs of failed xelatex compile should be parsed

parent 5969df14
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,7 @@ function stringify(ast: Ast.Ast): string {
// https://github.com/James-Yu/LaTeX-Workshop/issues/2893#issuecomment-936312853
const latexPattern = /^Output\swritten\son\s(.*)\s\(.*\)\.$/gm
const latexFatalPattern = /Fatal error occurred, no output PDF file produced!/gm
const latexXeNoOutputPattern = /^No pages of output.$/gm
const latexmkPattern = /^Latexmk:\sapplying\srule/gm
const latexmkLog = /^Latexmk:\sapplying\srule/
......@@ -114,7 +115,7 @@ function log(msg: string, rootFile?: string): boolean {
} else if (msg.match(texifyPattern)) {
msg = trimTexify(msg)
}
if (msg.match(latexPattern) || msg.match(latexFatalPattern)) {
if (msg.match(latexPattern) || msg.match(latexFatalPattern) || msg.match(latexXeNoOutputPattern)) {
latexLogParser.parse(msg, rootFile)
latexLogParser.showLog()
} else if (latexmkSkipped(msg)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment