markdown icon indicating copy to clipboard operation
markdown copied to clipboard

Compile error with fresh MiKTeX installation

Open Yggdrasil128 opened this issue 7 months ago • 29 comments

Hello, I've recently ran into a problem that causes markdown to fail with the following error message:

...a/Local/Programs/MiKTeX/tex/luatex/markdown/markdown.lua:3237: bad argument #1 to 'open' (string expected, got nil)
stack traceback:
	[C]: in function 'io.open'
	...a/Local/Programs/MiKTeX/tex/luatex/markdown/markdown.lua:3237: in function <...a/Local/Programs/MiKTeX/tex/luatex/markdown/markdown.lua:3235>
	...a/Local/Programs/MiKTeX/tex/luatex/markdown/markdown.lua:3235: in main chunk
	[C]: in function 'require'
	[\directlua]:1: in main chunk.
\lua_now:e #1->\__lua_now:n {#1}
                                
l.8 \end{markdown}
                
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.

Here are my steps to reproduce:

  1. Create a fresh Windows 11 VM

  2. Install the most recent version of MiKTeX

  3. Create file document.tex

    \documentclass{article}
    \usepackage{markdown}
    \begin{document}
    Hello World!
    
    \begin{markdown}
    _Hello,_ **Markdown**!
    \end{markdown}
    \end{document}
    
  4. Run lualatex --interaction=nonstopmode --shell-escape --synctex=1 document.tex

  5. The above error occurs.

In the resulting PDF, only the "Hello World" part is there, the "Hello Markdown" part is missing. I have attached the full log file: document.log

Since everything is a fresh install, all packages are up-to-date.

Interestingly, on a different system where I haven't updated my MiKTeX packages in a while, I still have markdown version 2.23.0-0-g0b22f91 installed, and everything works fine there.

Please let me know if I can help you with any additional information.

Yggdrasil128 avatar Jul 03 '24 09:07 Yggdrasil128