From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: 'lua.registercode' bug in latest beta
Date: Sat, 18 Nov 2017 18:37:59 +0100 [thread overview]
Message-ID: <06E4D9BA-EAEB-44B6-AAF5-F096F007E73D@fiee.net> (raw)
In-Reply-To: <DE595051-70A1-4596-94FB-B192DFFEFD4A@fiee.net>
Am 2017-11-07 um 08:14 schrieb Henning Hraban Ramm <texml@fiee.net>:
> Am 2017-11-07 um 04:59 schrieb Li Yanrui (李延瑞) <liyanrui.m2@gmail.com>:
>
>> Hi,
>>
>> Using '\ctxloadluafile' can get an error:
>>
>> ```
>> ..ext/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:50: bad argument #1 to 'gmatch' (string expected, got nil)
>> ```
>
> Same here:
>
> lua error > lua error on line 30 in file /Users/hraban/Library/texmf/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.mkvi:
>
> ...xmf/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:47: bad argument #1 to 'gmatch' (string expected, got nil)
> stack traceback:
> [C]: in function 'gmatch'
> ...xmf/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:47: in function 'registercode'
> [ctxlua]:1: in main chunk
>
> 20 %C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
> 21 %C GNU General Public License for more details.
> 22 %C
> 23 %C You should have received a copy of the GNU General Public License
> 24 %C along with this program. If not, see <http://www.gnu.org/licenses/>.
> 25
> 26 \unprotect
> 27
> 28 % Lua functions for the core and also for the frontend modules
> 29
> 30 >> \ctxloadluafile{s-cor-00}
>
>
>
>> It seems to be caused by 'if options ~= ""' in `lua.registercode'. That empyt string should be 'nil'?
>
> Yep, after 'context --make' that lets it work for me.
> Thank you!
Why is this still not fixed? It’s so easy, but I don’t like to patch it after every update again!
Please change "" to nil in tex/texmf-context/tex/context/base/mkiv/luat-cod.lua, line 49!
Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2017-11-18 17:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-07 3:59 Li Yanrui (李延瑞)
2017-11-07 7:14 ` Henning Hraban Ramm
2017-11-18 17:37 ` Henning Hraban Ramm [this message]
2017-11-26 14:05 ` Marco Patzer
2017-11-26 14:20 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=06E4D9BA-EAEB-44B6-AAF5-F096F007E73D@fiee.net \
--to=texml@fiee.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).