Slightly Rare CLI Bug

Ryan Scott Lewis's Avatar

Ryan Scott Lewis

09 Dec, 2012 03:58 PM

Sometimes, juuuust sometimes, when I open Marked from the CLI mark command when it is not currently running, Marked will open but will not open the document. Then, I have to run the command again and Marked will open the document.

Low priority, but slightly annoying bug.

  1. Support Staff 1 Posted by Brett on 09 Dec, 2012 06:46 PM

    Brett's Avatar

    I see this same behavior with a lot of CLI's that use the system-wide open command. `subl` 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.

    I'm not sure what to do about it, but I'll look into it.

  2. 2 Posted by Ryan Scott Lewi... on 09 Dec, 2012 06:50 PM

    Ryan Scott Lewis's Avatar

    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.

    That way, even if it's closed and I run the mark command on two different documents real quick, they will both still open even though Marked is still loading.

    Cheers,
    Ryan

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac