Symlink to Custom Preprocessor Not Working
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
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 25 Mar, 2020 08:18 PM
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 Posted by connor on 25 Mar, 2020 08:19 PM
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