Marked crashes when launching from a terminal
// 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:
- 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
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
Support Staff 1 Posted by Brett on 14 Apr, 2021 10:48 AM
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
Support Staff 2 Posted by Brett on 14 Apr, 2021 10:49 AM
Also, when you say `--args` do you literally mean `--args` or are there
other arguments you're sending to the open command?
-Brett
3 Posted by Jeffrey Johnson on 15 Apr, 2021 01:13 PM
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 Posted by Jeffrey Johnson on 15 Apr, 2021 01:14 PM
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
Support Staff 5 Posted by Brett on 15 Apr, 2021 01:29 PM
--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.Brett closed this discussion on 15 Apr, 2021 01:29 PM.