openlilylib / oll-core

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

oll-core is incompatible with Guile 2 #62

Closed sincere-music closed 2 years ago

sincere-music commented 2 years ago

I have started using the experimental 2.23.5 build with Guile 2.2 and it turns out to be incompatible with the core of openLilyLib.

Here are the error messages I got—it may be that only the first is relevant:

/home/simon/openlilylib/oll-core/internal/init.ily:46:2: error: GUILE signaled an error for the expression beginning here
#
 (use-modules
Omitting the destination on a call to format is deprecated.
Pass #f as the destination, before the format string.
Unbound variable: use-syntax
/home/simon/openlilylib/oll-core/internal/init.ily:59:1: error: unknown escaped string: `\registerOption'

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

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

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

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

\registerOption loaded-modules.oll-core #'()
/home/simon/openlilylib/oll-core/internal/init.ily:67:41: error: syntax error, unexpected SCM_TOKEN, expecting '='
\registerOption loaded-modules.oll-core
                                        #'()
/home/simon/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 2 years ago

For the record, patches solving at least part of this have been submitted in https://lists.gnu.org/archive/html/lilypond-user/2022-01/msg00258.html.