Here's a second attempt that falls back to copying the file contents in case the PDF file is opened like Frescobaldi does: https://cloud.hahnjo.de/index.php/s/9XBmyp9rKMRfYJM It works in my tests, but please double-check on your systems.
Jonas Am Donnerstag, den 30.07.2020, 15:49 +0200 schrieb Pierre Perol- Schneider: > Thank you Jonas. > Unfortunately, it fails every second attempt, as v.2.21.4: > test: \version "2.21.5" { c'} > > Starting lilypond-windows.exe 2.21.5 [Untitled]... > Processing > `C:/Users/Pierre/AppData/Local/Temp/frescobaldi-g1lth8gp/tmpmt7elx5h/document.ly' > Parsing... > Interpreting music... > Preprocessing graphical objects... > Finding the ideal number of pages... > Fitting music on 1 page... > Drawing systems... > Converting to `document.pdf'... > fatal error: cannot rename `document-tmp-2708837.283386.pdf' to `document.pdf' > Exited with return code 1. > > Cheers, > Pierr > > Le jeu. 30 juil. 2020 à 15:22, Jonas Hahnfeld <hah...@hahnjo.de> a écrit : > > Am Dienstag, den 28.07.2020, 20:57 +0200 schrieb Jonas Hahnfeld: > > > Am Dienstag, den 28.07.2020, 17:28 +0200 schrieb Pierre Perol- > > > Schneider: > > > > Hi All, > > > > Under W10, the compilation fails after the second attempt: > > > > > > > > Starting lilypond-windows.exe 2.21.4 [Untitled]... > > > > Processing > > > > `C:/Users/Pierre/AppData/Local/Temp/frescobaldi-8tj7w61h/tmp0qsn12pu/ > > > > document.ly' > > > > Parsing... > > > > Interpreting music... > > > > Preprocessing graphical objects... > > > > Finding the ideal number of pages... > > > > Fitting music on 1 page... > > > > Drawing systems... > > > > Converting to `document.pdf'... > > > > C:/Program Files (x86)/LilyPond > > > > 2-21-4/usr/share/lilypond/current/scm/lily.scm:567:7: In procedure > > > > delete-file in expression (delete-file dst): > > > > C:/Program Files (x86)/LilyPond > > > > 2-21-4/usr/share/lilypond/current/scm/lily.scm:567:7: Permission denied > > > > Exited with return code 1. > > > > > > > > But works at the third attempt (but fails at the 4th etc.) > > > > > > I can reproduce this behavior for every compilation when the PDF file > > > is opened with Edge. I guess Frescobaldi opens the PDF by default, but > > > releases the file after an aborted compilation? > > > Tracked in https://gitlab.com/lilypond/lilypond/-/issues/6016 > > > > Pierre, and all others using Windows: Could you give the following > > version a try? https://cloud.hahnjo.de/index.php/s/wKx3Wb822CKQsq6 > > (Note: While the installer says 2.21.5, this is not at all what the > > final 2.21.5 will looks like. It's just current master with the fix > > below, so use with care!) > > > > This has a potential fix for the described problem by using some other > > functionality to move files: > > https://gitlab.com/lilypond/lilypond/-/merge_requests/291 This works > > for me with files opened by Edge. > > Testing with Frescobaldi would be appreciated, and also with special > > characters in file names. I tried to model this after the code > > Masamichi-san wrote in March, but I'm not sure I understand what it's > > really needed for? > > > > Jonas > >
signature.asc
Description: This is a digitally signed message part