Greetings-
A small matter, but the Lilypond bundle can't find the shell command "pre" in TextMate 2 (8930). I couldn't find it either.
I'm happy to fix this, but am unsure where/whether bash_init.sh is used anymore in TM2.
Thanks! Charles
So perhaps bash_init.sh needs to be explicitly loaded?
Here's a clip from the Lilypond "Engrave & View" command:
. "${TM_SUPPORT_PATH}/lib/bash_init.sh"
"$TM_LILYPOND" "$TM_FILENAME" | pre
if [[ -f "${TM_FILEPATH%.*}.pdf" ]]; then echo "Opening PDF…"; open "${TM_FILEPATH%.*}.pdf" else echo "Error generating PDF file." fi
I added the specific load of bash_init.sh, and it now finds pre, but the execution order is strange. pre completes after receiving nothing from stdout, and "Opening PDF..." is echoed before the stdoutput of the Lilypond rendering.
Like so:
http://vze26m98.net/tm2/engrave-view.png
All's fine on 1.5, what don't I know/understand here?
Thanks, Charles