Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

attempt to index a nil value (g lobal 'l3kernel') #235

Closed
pddzaic opened this issue Jan 27, 2022 · 1 comment
Closed

attempt to index a nil value (g lobal 'l3kernel') #235

pddzaic opened this issue Jan 27, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@pddzaic
Copy link

pddzaic commented Jan 27, 2022

The following MWE leads (second run with lualatex) to an error:

\documentclass{article}

\usepackage{acro}

\DeclareAcronym{A}{
  short      = {AAA},
  long       = {Die Abkürzung AAA}
}

\DeclareAcronym{B}{
  short      = {BBB},
  long       = {Die Abkürzung BBB}
}

\begin{document}

\printacronyms

Hier: \ac{A}

Hier: \ac{B}

\end{document}

The error is:

(C:/PortableApps/Miktex/texmfs/install/tex/latex/translations/dicts/translation
s-basic-dictionary-english.trsl)[\directlua]:1: attempt to index a nil value (g
lobal 'l3kernel')
stack traceback:
        [\directlua]:1: in main chunk.
\lua_now:e #1->\__lua_now:n {#1}

l.19

?

Here the log-file:

This is LuaHBTeX, Version 1.14.0 (MiKTeX 21.12.10 Portable) (format=lualatex 2022.1.27)  27 JAN 2022 13:03
 restricted system commands enabled.
**./bug_acro.tex
(./bug_acro.tex
LaTeX2e <2021-11-15> patch level 1
Lua module: luaotfload 2021-05-21 3.18 Lua based OpenType font support
Lua module: lualibs 2021-05-20 2.74 ConTeXt Lua standard libraries.
Lua module: lualibs-extended 2021-05-20 2.74 ConTeXt Lua libraries -- extended c
ollection.
luaotfload | conf : Root cache directory is "C:/PortableApps/Miktex/texmfs/data/
luatex-cache/generic/names".
luaotfload | init : Loading fontloader "fontloader-2021-05-20.lua" from kpse-res
olved path "C:/PortableApps/Miktex/texmfs/install/tex/luatex/luaotfload/fontload
er-2021-05-20.lua".
Lua-only attribute luaotfload@noligature = 1
Lua-only attribute luaotfload@syllabe = 2
luaotfload | init : Context OpenType loader version 3.116
Inserting `luaotfload.node_processor' at position 1 in `pre_linebreak_filter'.
Inserting `luaotfload.node_processor' at position 1 in `hpack_filter'.
Inserting `luaotfload.glyph_stream' at position 1 in `glyph_stream_provider'.
Inserting `luaotfload.define_font' at position 1 in `define_font'.
Lua-only attribute luaotfload_color_attribute = 3
luaotfload | conf : Root cache directory is "C:/PortableApps/Miktex/texmfs/data/
luatex-cache/generic/names".
Inserting `luaotfload.harf.strip_prefix' at position 1 in `find_opentype_file'.
Inserting `luaotfload.harf.strip_prefix' at position 1 in `find_truetype_file'.
Inserting `luaotfload.harf.finalize_vlist' at position 1 in `post_linebreak_filt
er'.
Inserting `luaotfload.harf.finalize_hlist' at position 2 in `hpack_filter'.
Inserting `luaotfload.cleanup_files' at position 1 in `wrapup_run'.
Inserting `luaotfload.harf.finalize_unicode' at position 1 in `finish_pdffile'.
Inserting `luaotfload.glyphinfo' at position 1 in `glyph_info'.
Lua-only attribute luaotfload.letterspace_done = 4
Inserting `luaotfload.aux.set_sscale_dimens' at position 1 in `luaotfload.patch_
font'.
Inserting `luaotfload.aux.set_font_index' at position 2 in `luaotfload.patch_fon
t'.
Inserting `luaotfload.aux.patch_cambria_domh' at position 3 in `luaotfload.patch
_font'.
Inserting `luaotfload.aux.fixup_fontdata' at position 1 in `luaotfload.patch_fon
t_unsafe'.
Inserting `luaotfload.aux.set_capheight' at position 4 in `luaotfload.patch_font
'.
Inserting `luaotfload.aux.set_xheight' at position 5 in `luaotfload.patch_font'.
Inserting `luaotfload.rewrite_fontname' at position 6 in `luaotfload.patch_font'
. L3 programming layer <2022-01-21>
Inserting `tracingstacklevels' at position 1 in `input_level_string'.
(C:/PortableApps/Miktex/texmfs/install/tex/latex/base/article.cls
Document Class: article 2021/10/04 v1.4n Standard LaTeX document class
(C:/PortableApps/Miktex/texmfs/install/tex/latex/base/size10.clo
File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option)
luaotfload | db : Font names database loaded from C:/PortableApps/Miktex/texmfs/
data/luatex-cache/generic/names/luaotfload-names.luc)
\c@part=\count183
\c@section=\count184
\c@subsection=\count185
\c@subsubsection=\count186
\c@paragraph=\count187
\c@subparagraph=\count188
\c@figure=\count189
\c@table=\count190
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen137
)
(C:/PortableApps/Miktex/texmfs/install/tex/latex/acro/acro.sty
(C:/PortableApps/Miktex/texmfs/install/tex/latex/l3packages/l3keys2e/l3keys2e.s
ty (C:/PortableApps/Miktex/texmfs/install/tex/latex/l3kernel/expl3.sty
Package: expl3 2022-01-21 L3 programming layer (loader) 

(C:/PortableApps/Miktex/texmfs/install/tex/latex/l3backend/l3backend-luatex.def
File: l3backend-luatex.def 2022-01-12 L3 backend support: PDF output (LuaTeX)
\l__color_backend_stack_int=\count191
\l__pdf_internal_box=\box50
))
Package: l3keys2e 2022-01-12 LaTeX2e option processing using LaTeX3 keys
)
Package: acro 2022/01/04 v3.6 typeset acronyms and other abbreviations (CN)
\g__acro_version_int=\count192
\l__acro_tmpa_int=\count193
\l__acro_tmpb_int=\count194
\l__acro_tmpc_int=\count195
\l__acro_tmpd_int=\count196
Loading module `bas
@pddzaic pddzaic changed the title attempt to index a nil value (g lobal 'l3kernel') bug: attempt to index a nil value (g lobal 'l3kernel') Jan 27, 2022
@pddzaic pddzaic changed the title bug: attempt to index a nil value (g lobal 'l3kernel') attempt to index a nil value (g lobal 'l3kernel') Jan 27, 2022
@cgnieder cgnieder added the bug Something isn't working label Jan 27, 2022
@cgnieder
Copy link
Owner

Thanks for this. It has to do with sorting and has to do with the reason for PR #231.
It is already fixed in acro. I'll make a release soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants