Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LaTeX-Workshop
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
James-Yu
LaTeX-Workshop
Commits
5d82e492
Commit
5d82e492
authored
2 months ago
by
James Yu
Browse files
Options
Downloads
Patches
Plain Diff
Fix #4317 Logs of failed xelatex compile should be parsed
parent
5969df14
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/parse/parser.ts
+2
-1
2 additions, 1 deletion
src/parse/parser.ts
with
2 additions
and
1 deletion
src/parse/parser.ts
+
2
−
1
View file @
5d82e492
...
...
@@ -74,6 +74,7 @@ function stringify(ast: Ast.Ast): string {
// https://github.com/James-Yu/LaTeX-Workshop/issues/2893#issuecomment-936312853
const
latexPattern
=
/^Output
\s
written
\s
on
\s(
.*
)\s\(
.*
\)\.
$/gm
const
latexFatalPattern
=
/Fatal error occurred, no output PDF file produced!/gm
const
latexXeNoOutputPattern
=
/^No pages of output.$/gm
const
latexmkPattern
=
/^Latexmk:
\s
applying
\s
rule/gm
const
latexmkLog
=
/^Latexmk:
\s
applying
\s
rule/
...
...
@@ -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
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment