-
-
Notifications
You must be signed in to change notification settings - Fork 123
Watch-mode does not work in a specific situation #642
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
Comments
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.
|
Dear yhatt, I read issues you showed me, and it looks that watch-mode does not work with custom css without VS Code. I use this marp environment in usual. https://github.com/konekotech/marp-env-public When I remove |
The latest Marp CLI v4.1.2, with |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I tried running With VSCodeWhen the file changes, the log outputs the following, and the preview updates correctly:
With Wezterm (Neovim)When the file changes, the log outputs the following, but the preview does not update:
|
I added The issue occurs because Neovim saves files by creating a temporary file, deleting the original ( Setting |
That behavior has been called "Atomic write" and provided by Vim and Vim-based editors. chokidar should be already handling that case by default, by detecting the set of According to the behavior you've described, the second action for the atomic save in your editor was simply renaming the backup file. Probably it could not detect this change as the The documentation of Neovim is already mentioned to problem of file watchers, to consider switching the |
Version of Marp Tool
Marp CLI v4.1.1
Operating System
macOS
Environment
How to reproduce
slide.md
andtheme.css
)marp ./slide.md --theme ./theme.css --preview
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.
The text was updated successfully, but these errors were encountered: