Skip to content

Commit 3585498

Browse files
authored
Merge pull request #13618 from quarto-dev/tinytex/file-error
2 parents 938afa1 + 5c194ef commit 3585498

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

news/changelog-1.9.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ All changes included in 1.9:
3434
- ([#13589](https://github.com/quarto-dev/quarto-cli/issues/13589)): Fix callouts with invalid ID prefixes crashing with "attempt to index a nil value". Callouts with unknown reference types now render as non-crossreferenceable callouts with a warning, ignoring the invalid ID.
3535
- ([#13602](https://github.com/quarto-dev/quarto-cli/issues/13602)): Fix support for multiple files set in `bibliography` field in `biblio.typ` template partial.
3636

37+
### `pdf`
38+
39+
- ([rstudio/tinytex-releases#49](https://github.com/rstudio/tinytex-releases/issues/49)): Fix detection of LuaTeX-ja missing file errors by matching both "File" and "file" in error messages.
40+
3741
## Projects
3842

3943
### `website`

src/command/render/latexmk/parse-error.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ const packageMatchers = [
269269
},
270270
{ regex: /.* Loading '([^']+)' aborted!.*/g },
271271
{ regex: /.*! LaTeX Error: File `([^']+)' not found.*/g },
272-
{ regex: /.* file ['`]?([^' ]+)'? not found.*/g },
272+
{ regex: /.* [fF]ile ['`]?([^' ]+)'? not found.*/g },
273273
{ regex: /.*the language definition file ([^\s]*).*/g },
274274
{ regex: /.* \\(file ([^)]+)\\): cannot open .*/g },
275275
{ regex: /.*file `([^']+)' .*is missing.*/g },

tests/unit/latexmk/parse-error.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ unitTest("Detect missing files with `findMissingFontsAndPackages`", async () =>
4848
assertFound("! Package fontenc Error: Encoding file `t2aenc.def' not found.", "t2aenc.def");
4949
assertFound("! I can't find file `hyph-de-1901.ec.tex'.", "hyph-de-1901.ec.tex");
5050
assertFound("luaotfload-features.lua:835: module 'lua-uni-normalize' not found:", "lua-uni-algos.lua");
51+
assertFound("! LuaTeX-ja error: File 'jfm-zh_CN.lua' not found.", "jfm-zh_CN.lua");
5152
},{
5253
cwd: () => "unit/latexmk/"
5354
})

0 commit comments

Comments
 (0)