Am 27. Dezember 2017 13:27:09 MEZ schrieb Trevor <t.dani...@treda.co.uk>: >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: #<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