zauguin / luaul

7 stars 3 forks source link

Error with texlive 2024 #20

Closed samcarter closed 7 months ago

samcarter commented 7 months ago

The following test document throws an error if I compile with texlive 2024 (pretest):

% !TeX TS-program = lualatex
\documentclass{article}
\usepackage{lua-ul}

\begin{document}
test
\end{document}

(it works fine with an up-to-date texlive 2023)

Log file:

This is LuaHBTeX, Version 1.18.0 (TeX Live 2024)  (format=lualatex 2024.2.23)  25 FEB 2024 19:31
 restricted system commands enabled.
**document.tex
(./document.tex
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-02-20>
Lua module: luaotfload 2024-02-14 3.27 Lua based OpenType font support
Lua module: lualibs 2023-07-13 2.76 ConTeXt Lua standard libraries.
Lua module: lualibs-extended 2023-07-13 2.76 ConTeXt Lua libraries -- extended c
ollection.
luaotfload | conf : Root cache directory is "/usr/local/texlive/2024/texmf-var/l
uatex-cache/generic/names".
luaotfload | init : Loading fontloader "fontloader-2023-12-28.lua" from kpse-res
olved path "/usr/local/texlive/2024/texmf-dist/tex/luatex/luaotfload/fontloader-
2023-12-28.lua".
Lua-only attribute luaotfload@noligature = 1
luaotfload | init : Context OpenType loader version 3.134
Inserting `luaotfload.node_processor' in `pre_linebreak_filter'.
Inserting `luaotfload.node_processor' in `hpack_filter'.
Inserting `luaotfload.glyph_stream' in `glyph_stream_provider'.
Inserting `luaotfload.define_font' in `define_font'.
Lua-only attribute luaotfload_color_attribute = 2
luaotfload | conf : Root cache directory is "/usr/local/texlive/2024/texmf-var/l
uatex-cache/generic/names".
Inserting `luaotfload.harf.strip_prefix' in `find_opentype_file'.
Inserting `luaotfload.harf.strip_prefix' in `find_truetype_file'.
Removing  `luaotfload.glyph_stream' from `glyph_stream_provider'.
Inserting `luaotfload.harf.glyphstream' in `glyph_stream_provider'.
Inserting `luaotfload.harf.finalize_vlist' in `post_linebreak_filter'.
Inserting `luaotfload.harf.finalize_hlist' in `hpack_filter'.
Inserting `luaotfload.cleanup_files' in `wrapup_run'.
Inserting `luaotfload.harf.finalize_unicode' in `finish_pdffile'.
Inserting `luaotfload.glyphinfo' in `glyph_info'.
Lua-only attribute luaotfload.letterspace_done = 3
Inserting `luaotfload.aux.set_sscale_dimens' in `luaotfload.patch_font'.
Inserting `luaotfload.aux.set_font_index' in `luaotfload.patch_font'.
Inserting `luaotfload.aux.patch_cambria_domh' in `luaotfload.patch_font'.
Inserting `luaotfload.aux.fixup_fontdata' in `luaotfload.patch_font_unsafe'.
Inserting `luaotfload.aux.set_capheight' in `luaotfload.patch_font'.
Inserting `luaotfload.aux.set_xheight' in `luaotfload.patch_font'.
Inserting `luaotfload.rewrite_fontname' in `luaotfload.patch_font'.
Inserting `tracingstacklevels' in `input_level_string'. (/usr/local/texlive/202
4/texmf-dist/tex/latex/base/article.cls
Document Class: article 2023/05/17 v1.4n Standard LaTeX document class
(/usr/local/texlive/2024/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2023/05/17 v1.4n Standard LaTeX file (size option)
luaotfload | db : Font names database loaded from /usr/local/texlive/2024/texmf-
var/luatex-cache/generic/names/luaotfload-names.luc.gz)
\c@part=\count186
\c@section=\count187
\c@subsection=\count188
\c@subsubsection=\count189
\c@paragraph=\count190
\c@subparagraph=\count191
\c@figure=\count192
\c@table=\count193
\abovecaptionskip=\skip48
\belowcaptionskip=\skip49
\bibindent=\dimen139
)
(/usr/local/texlive/2024/texmf-dist/tex/lualatex/lua-ul/lua-ul.sty
Package: lua-ul 2022-05-31 v0.2.0 Underlining and related functionality for Lua
TeX
Lua function luaul.restore_everyhbox = 25
Lua function luaul.new_underline_type = 26
Lua function luaul.set_underline_func = 27
Lua function luaul.reset_underline_func = 28...-dist/tex/lualatex/lua-ul/pre_app
end_to_vlist_filter.lua:30: attempt to call a nil value (field 'getupvalue')
stack traceback:
    ...-dist/tex/lualatex/lua-ul/pre_append_to_vlist_filter.lua:30: in main chunk
    [C]: in function 'require'
    ...l/texlive/2024/texmf-dist/tex/lualatex/lua-ul/lua-ul.lua:426: in local 'load
er'
    ...cal/texlive/2024/texmf-dist/tex/latex/l3kernel/expl3.lua:233: in upvalue 'tr
y_require'
    ...cal/texlive/2024/texmf-dist/tex/latex/l3kernel/expl3.lua:248: in function <.
..cal/texlive/2024/texmf-dist/tex/latex/l3kernel/expl3.lua:247>.
<argument> \__lua_load_module_p:n {lua-ul}

l.36 \lua_load_module:n {lua-ul}

The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.

! Argument of \use_none:nn has an extra }.
<inserted text> 
\par 
l.36 \lua_load_module:n {lua-ul}

I've run across a `}' that doesn't seem to match anything.
For example, `\def\a#1{...}' and `\a}' would produce
this error. If you simply proceed now, the `\par' that
I've just inserted will cause me to report a runaway
argument that might be the root of the problem. But if
your `}' was spurious, just type `2' and it will go away.

Runaway argument?
! Paragraph ended before \use_none:nn was complete.
<to be read again> 
\par 
l.36 \lua_load_module:n {lua-ul}

I suspect you've forgotten a `}', causing me to apply this
control sequence to too much text. How can we recover?
My plan is to forget the whole thing and hope for the best.

! Missing number, treated as zero.
<to be read again> 
)
l.36 \lua_load_module:n {lua-ul}

A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)

! LaTeX Error: Lua module `lua-ul' not found.

For immediate help type H <return>.
 ...                                              

l.36 \lua_load_module:n {lua-ul}

The file `lua-ul.lua' could not be found. Please ensure that the file was
properly installed and that the filename database is current.

The Lua loader provided this additional information:

\l__luaul_top_dim=\dimen140
\l__luaul_bottom_dim=\dimen141
\l__luaul_height_dim=\dimen142
) (/usr/local/texlive/2024/texmf-dist/tex/latex/l3backend/l3backend-luatex.def
File: l3backend-luatex.def 2024-02-20 L3 backend support: PDF output (LuaTeX)
\l__color_backend_stack_int=\count194
Inserting `l3color' in `luaotfload.parse_color'.
\l__pdf_internal_box=\box51
) (./document.aux)
\openout1 = document.aux

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 5.
LaTeX Font Info:    Trying to load font information for TS1+cmr on input line 5
.
 (/usr/local/texlive/2024/texmf-dist/tex/latex/base/ts1cmr.fd
File: ts1cmr.fd 2023/04/13 v2.5m Standard LaTeX font definitions
)
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for TU/lmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
[1

{/usr/local/texlive/2024/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./document.aux)
 ***********
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2024-02-20>
 ***********
)

Here is how much of LuaTeX's memory you used:
 571 strings out of 476468
 100000,1977958 words of node,token memory allocated
 406 words of node memory still in use:
   3 hlist, 1 vlist, 1 rule, 2 glue, 3 kern, 1 glyph, 4 attribute, 48 glue_spec,
 4 attribute_list, 1 write nodes
   avail lists: 2:22,3:4,4:2,5:22,6:2,7:36,9:18
 22725 multiletter control sequences out of 65536+600000
 15 fonts using 723367 bytes
 35i,5n,55p,149b,125s stack positions out of 10000i,1000n,20000p,200000b,200000s
</Users/username/Library/Fonts/lmroman10-regular.otf>
Output written on document.pdf (1 page, 2858 bytes).

PDF statistics: 15 PDF objects out of 1000 (max. 8388607)
 8 compressed objects within 1 object stream
 0 named destinations out of 1000 (max. 131072)
 1 words of extra memory for PDF output out of 10000 (max. 100000000)
zauguin commented 7 months ago

This should be resolved with the latest repository version, I still have to upload it to CTAN though.

samcarter commented 7 months ago

Oh, sorry for the noise! I should have tested with the dev version first! It indeed works perfectly with texlive 2024!

zauguin commented 7 months ago

Oh, sorry for the noise!

Not so much noise and more a good reminder to upload the release :wink:

samcarter commented 7 months ago

(the last time I reported a problem which has already been fixed was something in siunitx and it convinced me that Joseph is a Time Lord. So consequently, you must be a Time Lord, too :) )

u-fischer commented 5 months ago

This seems still to be not on ctan?

Edit: even if I install the development version it errors for me in lualatex-dev.

u-fischer commented 3 months ago

It doesn't work for me on windows because of the name of the file pre_append_to_vlist_filter.lua. If I change this file to UF-pre_append_to_vlist_filter.lua and adapt lua-ul.lua file to use require'UF-pre_append_to_vlist_filter' it compiles without problems.