Re[2]: OLL-core and Win10 [was Re: edition-editor usage]

2018-01-09 Thread Trevor

Hi Urs

As I was the first to report this I apologise for not responding sooner 
- I had other commitments these last two days.  However, I have made a 
quick test this morning using example-1.ly in the Usage Examples of 
Edition Engraver and I confirm the changes in the "windows" branch fix 
the problem for me, at least as far as that example goes.  I'm on 
Windows 10, using Frescobaldi 3.0.1.  So that's great!  Many thanks.  I 
can now to get to grips with the Edition Engraver properly, maybe later 
today :)


Trevor


-- Original Message --
From: "Urs Liska" 
To: "Karlin High" ; lilypond-devel@gnu.org
Sent: 08/01/2018 17:14:59
Subject: Re: OLL-core and Win10 [was Re: edition-editor usage]




Am 08.01.2018 um 18:11 schrieb Karlin High:

Urs, was there supposed to be a "Windows" branch?


Oops, obviously I only pushed the master branch again.
Now the windows branch is on Github, sorry.

Urs

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel



___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Re[2]: OLL-core and Win10 [was Re: edition-editor usage]

2017-12-27 Thread Urs Liska


Am 27. Dezember 2017 13:27:09 MEZ schrieb Trevor :
>Hi Urs
>
>>
>>OK, at least now I know where (in the code) the problem is and recall 
>>that I fixed that once. Just to be sure: are you sure you you use the 
>>latest state of oll-core? OTOH, from the type of issue it may well be
>a 
>>Windows question.
>>
>>I can't look into it right now (and don't know if I can for the next 
>>few days).
>There's no particular urgency to this - I appreciate your time whenever
>
>you can spare it.
>
>>For debugging could you please locate the file 
>>oll-core/internal/os-path.ily and insert a ly:message after line 193
>so 
>>that the "this-parent" function looks like this:
>>
>>% Return the parent of (this-dir)
>>#(define-public (this-parent)
>>(let ((file (this-file)))
>>  (ly:message "this file: ~a" file)
>>  (list-head file (- (length file) 2
>>
>>The problem is in the list-head command. The thing is that "file"
>seems 
>>to be a list of length 1 (instead of anything above 2), which leads to
>
>>the value-out-of-range error.
>>
>>Additionally insert a message in line 184 so "this-file" looks like
>>
>>% Return the normalized absolute path and file name of "this" file
>>#(define-public (this-file)
>>(ly:message "location: ~a" (*location*))
>>(ly:message "initial path: ~a" (car
>(ly:input-file-line-char-column 
>>(*location*
>>(location->normalized-path (*location*)))
>>
>>And send me the log output.
>Done; here's the log output:
>
>Starting lilypond-windows.exe 2.19.80 [Untitled]...
>Processing 
>`C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmp4_jxjpvb/document.ly'
>Parsing...
>location: #C:/Users/tdani/openlilylib/oll-core/package.ily:57:2>
>initial path: C:/Users/tdani/openlilylib/oll-core/package.ily
>this file: (C:/Users/tdani/openlilylib/oll-core/package.ily)

OK, here we are. This should be a list with the path elements, but it has the 
whole path in *one* list element. And throws an error when trying to access the 
second-to-last element. 

With this information I can debug the function. 

Best
Urs

>C:/Users/tdani/openlilylib/oll-core/package.ily:57:2: error: GUILE 
>signaled an error for the expression beginning here
>#
>  (if (not (defined? 'openlilylib-root))
>
>Value out of range 0 to 4294967295: -1
>fatal error: failed files: 
>"C:\\Users\\tdani\\AppData\\Local\\Temp\\frescobaldi-u9vnw1qc\\tmp4_jxjpvb\\document.ly"
>Exited with return code 1.
>
>
>Trevor

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re[2]: OLL-core and Win10 [was Re: edition-editor usage]

2017-12-27 Thread Trevor

Hi Urs



OK, at least now I know where (in the code) the problem is and recall 
that I fixed that once. Just to be sure: are you sure you you use the 
latest state of oll-core? OTOH, from the type of issue it may well be a 
Windows question.


I can't look into it right now (and don't know if I can for the next 
few days).
There's no particular urgency to this - I appreciate your time whenever 
you can spare it.


For debugging could you please locate the file 
oll-core/internal/os-path.ily and insert a ly:message after line 193 so 
that the "this-parent" function looks like this:


% Return the parent of (this-dir)
#(define-public (this-parent)
   (let ((file (this-file)))
 (ly:message "this file: ~a" file)
 (list-head file (- (length file) 2

The problem is in the list-head command. The thing is that "file" seems 
to be a list of length 1 (instead of anything above 2), which leads to 
the value-out-of-range error.


Additionally insert a message in line 184 so "this-file" looks like

% Return the normalized absolute path and file name of "this" file
#(define-public (this-file)
   (ly:message "location: ~a" (*location*))
   (ly:message "initial path: ~a" (car (ly:input-file-line-char-column 
(*location*

   (location->normalized-path (*location*)))

And send me the log output.

Done; here's the log output:

Starting lilypond-windows.exe 2.19.80 [Untitled]...
Processing 
`C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmp4_jxjpvb/document.ly'

Parsing...
location: #C:/Users/tdani/openlilylib/oll-core/package.ily:57:2>

initial path: C:/Users/tdani/openlilylib/oll-core/package.ily
this file: (C:/Users/tdani/openlilylib/oll-core/package.ily)
C:/Users/tdani/openlilylib/oll-core/package.ily:57:2: error: GUILE 
signaled an error for the expression beginning here

#
 (if (not (defined? 'openlilylib-root))

Value out of range 0 to 4294967295: -1
fatal error: failed files: 
"C:\\Users\\tdani\\AppData\\Local\\Temp\\frescobaldi-u9vnw1qc\\tmp4_jxjpvb\\document.ly"

Exited with return code 1.


Trevor


___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re: Re[2]: OLL-core and Win10 [was Re: edition-editor usage]

2017-12-26 Thread Urs Liska


Am 26. Dezember 2017 20:17:33 MEZ schrieb Trevor :
>
>Hi Urs
>
>>Could you please post the *full* log and the input file?
>>Then I can look into it. I recall having seen this error before but
>not 
>>what it was about.
>Thanks for looking!  Source and log attached.  The source is 
>example-1.ly from edition-engraver/usage-examples.
>
>Trevor

OK, but I'm not at home right now, so it is somewhat hard to digest. Could you 
please send the log for a document that contains only 
  \include "oll-core/package.ily"
?

Urs

>
>>

___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel


Re[2]: OLL-core and Win10 [was Re: edition-editor usage]

2017-12-26 Thread Trevor


Hi Urs


Could you please post the *full* log and the input file?
Then I can look into it. I recall having seen this error before but not 
what it was about.
Thanks for looking!  Source and log attached.  The source is 
example-1.ly from edition-engraver/usage-examples.


Trevor

Starting lilypond-windows.exe 2.19.80 [example-1.ly]...
Processing 
`C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly'
Parsing...
C:/Users/tdani/openlilylib/oll-core/package.ily:57:2: error: GUILE signaled an 
error for the expression beginning here
#
 (if (not (defined? 'openlilylib-root))

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:35:1:
 error: unknown escaped string: `\loadPackage'

\loadPackage edition-engraver

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:35:14:
 error: syntax error, unexpected SYMBOL, expecting '.' or '=' or ','
\loadPackage 
 edition-engraver

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:37:1:
 error: unknown escaped string: `\addEdition'

\addEdition test

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:39:1:
 error: unknown escaped string: `\editionMod'

\editionMod test 2 0/4 sing.with.bach.along.Voice.B \once \override 
NoteHead.color = #red

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:39:53:
 error: syntax error, unexpected MUSIC_FUNCTION, expecting '='
\editionMod test 2 0/4 sing.with.bach.along.Voice.B 
\once \override 
NoteHead.color = #red

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:41:1:
 error: unknown escaped string: `\editionMod'

\editionMod test 2 2/4 sing.with.bach.along.Voice.B \override NoteHead.color = 
#green

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:41:13:
 error: syntax error, unexpected SYMBOL, expecting '.' or '=' or ','
\editionMod 
test 2 2/4 sing.with.bach.along.Voice.B \override NoteHead.color = 
#green

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:41:53:
 error: syntax error, unexpected \override, expecting '='
\editionMod test 2 2/4 sing.with.bach.along.Voice.B 
\override NoteHead.color = 
#green

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:42:1:
 error: unknown escaped string: `\editionMod'

\editionMod test 2 3/4 sing.with.bach.along.Voice.B \override NoteHead.color = 
#blue

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:42:13:
 error: syntax error, unexpected SYMBOL, expecting '.' or '=' or ','
\editionMod 
test 2 3/4 sing.with.bach.along.Voice.B \override NoteHead.color = 
#blue

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:42:53:
 error: syntax error, unexpected \override, expecting '='
\editionMod test 2 3/4 sing.with.bach.along.Voice.B 
\override NoteHead.color = 
#blue

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:43:1:
 error: unknown escaped string: `\editionMod'

\editionMod test 3 1/4 sing.with.bach.along.Voice.B \revert NoteHead.color

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:43:13:
 error: syntax error, unexpected SYMBOL, expecting '.' or '=' or ','
\editionMod 
test 3 1/4 sing.with.bach.along.Voice.B \revert NoteHead.color

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:43:53:
 error: syntax error, unexpected \revert, expecting '='
\editionMod test 3 1/4 sing.with.bach.along.Voice.B 
\revert NoteHead.color

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:45:1:
 error: unknown escaped string: `\editionMod'

\editionMod test 5 0/4 sing.with.bach.along.Voice.#(string->symbol "1") \revert 
NoteHead.color

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:45:1:
 error: syntax error, unexpected STRING, expecting '='

\editionMod test 5 0/4 sing.with.bach.along.Voice.#(string->symbol "1") \revert 
NoteHead.color

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:45:73:
 error: syntax error, unexpected \revert, expecting '='
\editionMod test 5 0/4 sing.with.bach.along.Voice.#(string->symbol "1") 
\revert 
NoteHead.color

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:47:1:
 error: unknown escaped string: `\editionMod'

\editionMod test 13 3/8 sing.with.bach.along.Voice.C \once \override 
NoteHead.color = #red

C:/Users/tdani/AppData/Local/Temp/frescobaldi-u9vnw1qc/tmpuqjcysah/example-1.ly:47:1:
 error: