[latex3-commits] [git/LaTeX3-latex3-l3build] main: Be more aggressive removing line numbers from stack traces (8145e89)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Feb 16 08:12:41 CET 2023


Repository : https://github.com/latex3/l3build
On branch  : main
Link       : https://github.com/latex3/l3build/commit/8145e89782464b1820586b0a081a3ed9ef8fae7b

>---------------------------------------------------------------

commit 8145e89782464b1820586b0a081a3ed9ef8fae7b
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Feb 16 07:12:41 2023 +0000

    Be more aggressive removing line numbers from stack traces


>---------------------------------------------------------------

8145e89782464b1820586b0a081a3ed9ef8fae7b
 CHANGELOG.md      | 1 +
 l3build-check.lua | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8c4388d..929fe8d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ this project uses date-based 'snapshot' version identifiers.
 
 ### Changed
 - Drop a redundant setup line for upTeX
+- Normalise more Lua stack trace data (may require `.tlg` rebuild)
 
 ### Fixed
 - Ensure `texmf.cnf` work correctly for `dvips`
diff --git a/l3build-check.lua b/l3build-check.lua
index dc075cd..040b9c5 100644
--- a/l3build-check.lua
+++ b/l3build-check.lua
@@ -126,8 +126,8 @@ local function normalize_log(content,engine,errlevels)
     -- Zap line numbers from \show, \showbox, \box_show and the like:
     -- do this before wrapping lines
     line = gsub(line, "^l%.%d+ ", "l. ...")
-    -- Also from lua stack traces.
-    line = gsub(line, "lua:%d+: in function", "lua:...: in function")
+    -- Also from Lua stack traces
+    line = gsub(line, "lua:%d+:", "lua:...:")
     -- Allow for wrapped lines: preserve the content and wrap
     -- Skip lines that have an explicit marker for truncation
     if len(line) == maxprintline  and





More information about the latex3-commits mailing list.