You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to convert files to PDF and other formats using Marp, it was observed that the conversion works fine when executed via the command line. However, when trying to execute the command using Java's ProcessBuilder to build and run the process, Runtime.getRuntime().exec("marp demo.md -o demo.pdf").start() it results in a timeout and conversion failure. Upon investigation, it was found that this method fails to start Marp properly. Adding the command option "--no-stdin" resolves the issue.
@taeyeon-0309 Yes, several languages will establish stdio pipes when spawning an external process, so the conversion will not start until stdin is explicitly closed.
Version of Marp Tool
@marp-team/marp-cli v3.4.0 (w/ @marp-team/marp-core v3.9.0)
Operating System
Windows
Environment
Bug occurs in
marp.exe
as well as when usingnpx @marp-team/marp-cli@latest
How to reproduce
npx @marp-team/marp-cli@latest prez.md -o prez.html
or
/path/to/marp prez.md -o prez.html
marp --help
ormarp --version
however work as expected. Using WindowsTerminal/Powershell works as expected.Expected behavior
It should render the html/pdf or go into watchmode as requested and provide the usual
[INFO]
/[WARN]
outputs accordingly.Actual behavior
the msys terminal freezes
Additional information
Already tried running with
MSYS_NO_PATHCONV=1
just in case it's related to msys's Posix path conversion but that didn't help.The text was updated successfully, but these errors were encountered: