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

Watch-mode does not work in a specific situation #642

Open
konekotech opened this issue Jan 25, 2025 · 1 comment
Open

Watch-mode does not work in a specific situation #642

konekotech opened this issue Jan 25, 2025 · 1 comment

Comments

@konekotech
Copy link

konekotech commented Jan 25, 2025

Version of Marp Tool

Marp CLI v4.1.1

Operating System

macOS

Environment

  • OS version: macOS Sequoia 15.2
  • Node.js version: Node.js 22.11.0

How to reproduce

  1. Create a markdown and a CSS file in Vim / NeoVIm (e.g: slide.md and theme.css)
  2. Edit and save
  3. Open another tab in the terminal, and run marp ./slide.md --theme ./theme.css --preview
  4. Edit markdown file again, and save

Expected behavior

Saving will be reflected on the preview window.

Actual behavior

Saving is not reflected on the preview window. It does not change.

Additional information

When I tried this in VS Code terminal (using Marp-CLI, not VSCode extention one), the saving was reflected on preview window.
However, when I use another terminals such as WezTerm and iTerm2, this issue occured.

@konekotech konekotech changed the title Watching does not work in a specific situation Watch-mode does not work in a specific situation Jan 25, 2025
@yhatt
Copy link
Member

yhatt commented Jan 25, 2025

I have tried to reproduce on iTerm2, and I met only first once that the file change event was not fired. When tried the exactly same operation after logged out from macOS, I've confirmed that the file change event is correctly tracking in all of 4-5 times try. Probably it would mean that the difference of using terminal emulator is not root cause of that issue.

Some issues about watching file system has been reported before, but any issue was not resolved clearly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants