question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Watch mode only works once

See original GitHub issue

Context:

  • version (md-to-pdf -v): 3.2.1
  • platform (Unix, macOS, Windows): Windows
  • node version: v10.18.0

Describe the bug:

The watch mode only works the first time after it generates an empty PDF.

A clear and concise description of what the bug is. Feel free to include screenshots.

  1. Create a documentation.md file
  2. Run md2pdf documentation.md --watch
  3. Open the PDF and see that’s it is generated correctly ✔️
  4. Make a change to documentation.md
  5. Open the PDF file and see that’s it is generated correctly ✔️
  6. Make a change to documentation.md
  7. Open the PDF file and see that’s the file empty now ❌
  8. You can repeat step 6 and 7 several time the file will always be empty now ❌

demo_bug_watch_md_to_pdf

The problem occurs also when adding --as-html.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
simonhaenischcommented, Feb 22, 2021

I would probably set the value to 250 to try having it work on “most” computers.

I don’t think I’ll provide a default value here because I can’t even reproduce the issue at all on macOS so it’s probably not even necessary for a good chunk of the users. But thanks for confirming that this fixes it, i’ll see that I make a commit and release this soon.

0reactions
MangelMaximecommented, Feb 22, 2021

Thank you @simonhaenisch for your help on this problem.

I will do the upgrade tomorrow at work

Read more comments on GitHub >

github_iconTop Results From Across the Web

Most common Samsung Galaxy Watch 4 problems and how to ...
Watch-only mode will turn the Galaxy Watch 4 into a simple timepiece. To activate it, open Settings > Battery > Watch only. Tap...
Read more >
Galaxy watch 4 bugs and requests after 2 months use
Watch only mode is useless only shows time. - Watch had sleep tracking issues on 2 days out of 20 days. Once, I...
Read more >
Sleep App Bug - Watch Keeps Going into Sl…
In the Apple Watch app on my phone, I selected "Sleep" and under "Sleep Mode," I toggled "Turn On Automatically" to "off," and...
Read more >
The Most Common Wear OS Problems and How to Fix Them
1. Start off by rebooting your watch and your smartphone and see if it makes a difference. Go to Settings > Restart on...
Read more >
Apple Watch Troubleshooting: Common Problems and Solutions
After turning the Apple Watch back on, or sometimes after using Airplane mode, the Apple Watch may give you a No iPhone error....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found