Symlink to Custom Preprocessor Not Working

connor's Avatar

connor

25 Mar, 2020 08:02 PM

Hey Brett,

I've put together a shell script to use as a custom preprocessor in Marked. When pointing Marked directly to the preprocessor .sh file, everything works great. I would like to have a symlink to this shell script in my ~/bin directory and point Marked to this symlink, but Marked is unsuccessful at running the preprocessor in this case.

If I generate a true UNIX symlink via

ln -s ~/Development/marked_pandoc/to_file.sh ~/bin/to_file.sh

when I try to enter this path in the Preprocessor settings, Marked says the script is Not Found (see attached image), and it will not enable the Preprocessor. Console error: customPreprocessor not found: /Users/connor/bin/to_file.sh

On the other hand, if I use the Finder to create an alias, Marked considers this an acceptable Preprocessor, but when enabled and executed causes Marked to crash with console error Couldn't posix_spawn: error 8.

The fact that aliases don't work isn't super surprising to me, but I can't figure out the symlink issue. What am I missing?

Thanks as always for a great app!

Connor

  1. Support Staff 1 Posted by Brett on 25 Mar, 2020 08:18 PM

    Brett's Avatar

    Because of the way the processes are spawned, symlinks are always going to be tricky (read not possible). Is having the path to the actual file an issue somehow?

    - Brett

  2. 2 Posted by connor on 25 Mar, 2020 08:19 PM

    connor's Avatar

    No, not really. I just thought it would be nice to have all my shell scripts together in one place, in addition to in their respective git repo directories, but that's in no way a dealbreaker. Thanks for the info!

    Connor

Reply to this discussion

Internal reply

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

Attaching KB article:

»

Already uploaded files

  • Screen_Shot_2020-03-25_at_12.59.33_PM.png 88.8 KB

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