Il giorno ven 6 lug 2018 alle 14:59, Aaron Hill
<lilyp...@hillvisions.com> ha scritto:
On 2018-07-05 22:35, Federico Bruni wrote:
So the question is why lilypond-invoke-editor is not considered as a
program by Windows shell.
Perhaps because it does not end with .exe? Should it be made
executable?
I don't know Windows at all...
`lilypond-invoke-editor` is intended to be interpreted by Guile; but
since it has no file extension, Windows cannot invoke an associated
program. You should be able to wrap it up with a command shell
script easily enough...
lilypond-invoke-editor.cmd:
@ECHO OFF
SETLOCAL
SET LILYPOND_BIN=C:\Program Files (x86)\LilyPond\usr\bin
"%LILYPOND_BIN%\guile" -e main
"%LILYPOND_BIN%\lilypond-invoke-editor" %*
I should warn that I have not tested this, as I do not have an
installation of LilyPond on Windows. But, the principle should be
sound.
I first tried the command on PowerShell:
PS C:\Program Files (x86)\LilyPond\usr\bin> guile.exe -e main
lilypond-invoke-editor
ERROR: In procedure dynamic-link:
ERROR: file: "libguile-srfi-srfi-1-v-3", message: "can't open the
module"
I see that this problem was already reported:
http://lilypond.1069038.n5.nabble.com/GUB-guile-fails-to-open-lilypond-invoke-editor-script-td81139.html
By default, GUILE_LOAD_PATH is not set.
If I set it in current shell:
PS C:\Users\fede> $env:GUILE_LOAD_PATH="C:\Program Files
(x86)\LilyPond\usr\share\guile\1.8"
PS C:\Users\fede> Get-ChildItem Env:GUILE_LOAD_PATH
Name Value
---- -----
GUILE_LOAD_PATH C:\Program Files
(x86)\LilyPond\usr\share\guile\1.8
I get the same error.
PS Vaguely related:
https://sourceforge.net/p/testlilyissues/issues/2279/
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user