openlilylib / oll-core

Library Infrastructure for LilyPond add-ons
17 stars 13 forks source link

Cannot load oll-core with absolute path for `-I` #61

Closed jmaibaum closed 1 year ago

jmaibaum commented 2 years ago

I have the very same issue as #48 even though I am using absolute paths.

OS: Fedora Silverblue 35, Fedora Toolbox with fedora-35 image Lilypond: 2.23.4 (Fedora 35 repositories)

My test file oll-test.ly:

\include "oll-core/package.ily"

Output:

$ toolbox enter
⬢[jm@toolbox oll-test]$ lilypond -I /home/jm/openlilylib oll-test.ly
GNU LilyPond 2.23.4
Processing `oll-test.ly'
Parsing...Omitting the destination on a call to format is deprecated.
Pass #f as the destination, before the format string.

/home/jm/openlilylib/oll-core/internal/init.ily:46:2: error: GUILE signaled an error for the expression beginning here
#
 (use-modules
Unbound variable: use-syntax
/home/jm/openlilylib/oll-core/internal/init.ily:59:1: error: unknown escaped string: `\registerOption'

\registerOption #'(_propsets) #'()
/home/jm/openlilylib/oll-core/internal/init.ily:59:17: error: syntax error, unexpected SCM_TOKEN, expecting '.' or '='
\registerOption 
                #'(_propsets) #'()
/home/jm/openlilylib/oll-core/internal/init.ily:60:1: error: unknown escaped string: `\definePropertySet'

\definePropertySet #'(OLL global) #'()
/home/jm/openlilylib/oll-core/internal/init.ily:60:20: error: syntax error, unexpected SCM_TOKEN, expecting '.' or '='
\definePropertySet 
                   #'(OLL global) #'()
/home/jm/openlilylib/oll-core/internal/init.ily:63:1: error: unknown escaped string: `\registerOption'

\registerOption oll-core.root #(this-parent)
/home/jm/openlilylib/oll-core/internal/init.ily:63:17: error: syntax error, unexpected SYMBOL, expecting '.' or '='
\registerOption 
                oll-core.root #(this-parent)
/home/jm/openlilylib/oll-core/internal/init.ily:63:31: error: syntax error, unexpected SCM_TOKEN, expecting '='
\registerOption oll-core.root 
                              #(this-parent)
/home/jm/openlilylib/oll-core/internal/init.ily:66:1: error: unknown escaped string: `\registerOption'

\registerOption loaded-packages #'(oll-core)
/home/jm/openlilylib/oll-core/internal/init.ily:67:1: error: unknown escaped string: `\registerOption'

\registerOption loaded-modules.oll-core #'()
/home/jm/openlilylib/oll-core/internal/init.ily:67:41: error: syntax error, unexpected SCM_TOKEN, expecting '='
\registerOption loaded-modules.oll-core 
                                        #'()
/home/jm/openlilylib/oll-core/internal/init.ily:79:1: error: unknown escaped string: `\setLogLevel'

\setLogLevel log
ERROR: In procedure %resolve-variable:
Unbound variable: getOption
jeanas commented 1 year ago

It's not the same issue, OLL just didn't support LilyPond 2.23 when you did this. It's done now.