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

marp.exe rendering and watch mode do not work in msys on Windows 10 (i.e. git-bash) #573

Open
embix opened this issue Apr 12, 2024 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@embix
Copy link

embix commented Apr 12, 2024

Version of Marp Tool

@marp-team/marp-cli v3.4.0 (w/ @marp-team/marp-core v3.9.0)

Operating System

Windows

Environment

  • OS version: Windows 10 22H2 Build 19045.4291
  • Node.js version: the one baked into Marp CLI, when using npx it's the rather rusty 17.9.0
  • Shell Environment: msys/bash (git-bash as distributed with git 2.44.0 for Windows)

Bug occurs in marp.exe as well as when using npx @marp-team/marp-cli@latest

How to reproduce

  1. open git-bash
  2. create a minimal prez.md
  3. either npx @marp-team/marp-cli@latest prez.md -o prez.html
    or /path/to/marp prez.md -o prez.html
  4. it seems to freeze

marp --help or marp --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.

@embix embix added the bug Something isn't working label Apr 12, 2024
@yhatt
Copy link
Member

yhatt commented Apr 12, 2024

Duplicated: marp-team/marp#500

Workarounds: Add --no-stdin option, or run CLI through winpty bridge.

@yhatt yhatt added the duplicate This issue or pull request already exists label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants