Skip to content

Also parse "Module" and "LaTeX3" warnings#971

Open
gucci-on-fleek wants to merge 1 commit intoTeXworks:mainfrom
gucci-on-fleek:warning-regexp
Open

Also parse "Module" and "LaTeX3" warnings#971
gucci-on-fleek wants to merge 1 commit intoTeXworks:mainfrom
gucci-on-fleek:warning-regexp

Conversation

@gucci-on-fleek
Copy link

Right now, the warning RegExp only matches warnings beginning with Package, Class, or LaTeX. However, using only core LaTeX kernel commands (without any packages), you can produce warnings starting with Module or LaTeX3:

\documentclass{article}

\directlua{luatexbase.module_warning("PACKAGE-NAME", "TEXT")}

\ExplSyntaxOn
    \regex_new:N \l_my_regex
    \regex_set:Nn \l_my_regex { [1-] }
\ExplSyntaxOff

\begin{document}
    Hello!
\end{document}
Module PACKAGE-NAME Warning: TEXT on input line 3

LaTeX3 Warning: Invalid end-point for range '1-\]' in character class.

Reference for luatexbase.module_warning

Reference for LaTeX3 Warning

Fixes #970.

@codecov
Copy link

codecov bot commented May 21, 2022

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 34.54%. Comparing base (fc95268) to head (0a33053).
⚠️ Report is 372 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #971      +/-   ##
==========================================
- Coverage   34.62%   34.54%   -0.09%     
==========================================
  Files         136      136              
  Lines       17041    17138      +97     
==========================================
+ Hits         5901     5920      +19     
- Misses      11140    11218      +78     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Log: some warnings are not counted and filtered

1 participant

Comments