Marked crashes when launching from a terminal

Jeffrey Johnson's Avatar

Jeffrey Johnson

14 Apr, 2021 07:13 AM

// Please enter a detailed description of the issue // Description of the issue: I used to be able to run open -a Marked --args README.md in the terminal to open a file, but now Marked just crashes.

// Please enter a list of steps required to reproduce the issue // Steps to reproduce:

  1. Run in a terminal open -a Marked --args README.md

// If applicable please attach a sample document that causes the issue for you. Any file will do

// Configuration (do not edit) Marked 2 1020 (Setapp)

macOS Version: 10.15.7

additionalMathJaxConfig:
allowPageBreakInCode: YES
bookTxtIsLeanpub: NO
summaryMdIsGitBook: NO
codeIsPoetry: NO
codeCanWrap: YES
collapsibleHeadlines: NO
convertGithubCheckboxes: YES
convertGithubEmoji: YES
convertYAMLToMMD: NO
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: GitHub
defaultProcessor: Discount (GFM)
enableMiniMap: NO
excludeBlockQuotesFromCounts: NO
excludeFootnotesFromCounts: NO
excludeVerbatimFromCounts: NO
excludeCaptionsFromCounts: NO
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: YES
h1IsPageBreak: NO
h2IsPageBreak: NO
hrIsPageBreak: NO
includeMathJax: YES
includeKatex: NO
limitTextWidth: NO
mathNumberEquations: NO
mathNumberEquationsSide: 0
mathNumberEquationsAMSOnly: NO
minimalJavaScript: NO
outlineModeExtensions:
permissionGranted: NO
printHeaderBottomLeft:
printHeaderBottomRight:
printHeaderFirstPage: NO
printFooterFirstPage: NO
printHeaderTopLeft:
printHeaderTopRight:
processHTMLFiles: YES
removeMetadataForPreview: NO
removeYAMLHeaders: NO
scrollToEdit: YES
shouldDetectCritic: YES
shouldHighlightMarkupErrors: NO
shouldLoadCritic: NO
syntaxHighlight: YES
syntaxHighlightOnlyLang: NO
useCustomMarkdownProcessor: NO
customMarkdownProcessor:
useCustomPreprocessor: NO
customPreprocessor:
useFirstH1AsPrintTitle: YES

  1. Support Staff 1 Posted by Brett on 14 Apr, 2021 10:48 AM

    Brett's Avatar

    I'm not seeing this happen locally, but I'm testing with the Paddle
    version, not the Setapp version. I'll have to reconfigure to test that.

    Can you let me know what happens if you run `open
    'x-marked://open/[~/path/to/README.md]'` instead?

    -Brett

  2. Support Staff 2 Posted by Brett on 14 Apr, 2021 10:49 AM

    Brett's Avatar

    Also, when you say `--args` do you literally mean `--args` or are there
    other arguments you're sending to the open command?

    -Brett

  3. 3 Posted by Jeffrey Johnson on 15 Apr, 2021 01:13 PM

    Jeffrey Johnson's Avatar

    Hi Brett,

    Running open 'x-marked://open/path/to/README.md' only opened the app, not
    the document. However, when I removed the '--args' option and simply ran open
    -a Marked README.md it actually worked. Weird, because I used to have to
    pass the arguments for Marked via --args.

    But it's working. Thank you.

    Regards
    Jeffrey

  4. 4 Posted by Jeffrey Johnson on 15 Apr, 2021 01:14 PM

    Jeffrey Johnson's Avatar

    Hi Brett,

    Yes, the help of the open command indicates that --args is how you pass
    arguments to the target application. But it doesn't seem to work that way
    now.

    Regards
    Jeffrey

  5. Support Staff 5 Posted by Brett on 15 Apr, 2021 01:29 PM

    Brett's Avatar

    --args is a generic indicator for "arguments", meaning it's where you would put actual flags for the command if you need them. If you don't need any additional arguments, just leave that part blank.

  6. Brett closed this discussion on 15 Apr, 2021 01:29 PM.

Comments are currently closed for this discussion. You can start a new one.

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