tag:support.markedapp.com,2011-09-11:/discussions/problems/926-slightly-rare-cli-bugMarked: Discussion 2016-08-11T03:34:24Ztag:support.markedapp.com,2011-09-11:Comment/224082722012-12-09T18:46:11Z2012-12-09T18:46:11ZSlightly Rare CLI Bug<div><p>I see this same behavior with a lot of CLI's that use the
system-wide open command. <code>subl</code> for Sublime Text 2, for
example. If the target application doesn't respond quickly enough
(i.e. it takes too long to launch) the request times out. I'm
certain this is to prevent hangs in the system.</p>
<p>I'm not sure what to do about it, but I'll look into it.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/224082722012-12-09T18:50:41Z2012-12-09T18:50:43ZSlightly Rare CLI Bug<div><p>I don't know exactly how your app is setup, but you could queue
requests to open documents. Then, when the app is opened and
responsive, it just needs to pop each request off the queue and
open those documents.</p>
<p>That way, even if it's closed and I run the <code>mark</code>
command on two different documents real quick, they will both still
open even though Marked is still loading.</p>
<p>Cheers,<br>
Ryan</p></div>Ryan Scott Lewis