bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UNC file names


From: James Lowe
Subject: Re: UNC file names
Date: Thu, 9 Aug 2018 16:41:42 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Hello Knute,


On 24/04/18 16:50, Knute Snortum wrote:

    > My tests on Windows 10 indicate that lilypond.exe can't handle UNC
    > notation.  This is true even of a local file.
    >
    > First I "type" the file and it works fine with UNC.  Then I try
    to launch
    > LilyPond with the same file name and it can't find the file.
    >
    > Bug or future feature?
    >

    We had a few Windows-related issue - I think they are still
    needing some documentation in the 'running' doc - where some
    commands needed double quotes around the 'path to file name' and
    some single quotes.

    Could you try that and see if that helps?


No combination of slash or quote types worked for me.

C:\Users\Knute\Desktop
>lilypond "//KNUTE-HP/Users/Knute/Desktop/test.ly <http://test.ly>"
GNU LilyPond 2.19.81
warning: cannot find file: `//KNUTE-HP/Users/Knute/Desktop/test.ly <http://test.ly>' fatal error: failed files: "//KNUTE-HP/Users/Knute/Desktop/test.ly <http://test.ly>"

C:\Users\Knute\Desktop
>lilypond '//KNUTE-HP/Users/Knute/Desktop/test.ly <http://test.ly>'
GNU LilyPond 2.19.81
warning: cannot find file: `'//KNUTE-HP/Users/Knute/Desktop/test.ly <http://test.ly>'' fatal error: failed files: "'//KNUTE-HP/Users/Knute/Desktop/test.ly <http://test.ly>'"

C:\Users\Knute\Desktop
>lilypond '\\KNUTE-HP\Users\Knute\Desktop\test.ly <http://test.ly>'
GNU LilyPond 2.19.81
warning: cannot find file: `'\\KNUTE-HP\Users\Knute\Desktop\test.ly <http://test.ly>'' fatal error: failed files: "'\\\\KNUTE-HP\\Users\\Knute\\Desktop\\test.ly <http://test.ly>'"

C:\Users\Knute\Desktop
>lilypond "\\KNUTE-HP\Users\Knute\Desktop\test.ly <http://test.ly>"
GNU LilyPond 2.19.81
warning: cannot find file: `\\KNUTE-HP\Users\Knute\Desktop\test.ly <http://test.ly>' fatal error: failed files: "\\\\KNUTE-HP\\Users\\Knute\\Desktop\\test.ly <http://test.ly>"

---
Knute Snortum
(via Gmail)


Sorry this took so long for me to get back to you.

More research tells me that it is not lilypond that is at fault here but Windows.

Windows cmd does not support UNC paths.

Also see:

https://web.archive.org/web/20150312195558/https://support.microsoft.com/en-us/kb/156276

I tried the registry edit mentioned here too but on my 8.1 OS it didn't seem to change anything.

You can use the pushd/popd commands - example:

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\jlowe>lilypond x:\test.ly
GNU LilyPond 2.19.82
warning: cannot find file: `x:\test.ly'
fatal error: failed files: "x:\\test.ly"

C:\Users\jlowe>pushd x:\

x:\>lilypond test.ly
GNU LilyPond 2.19.82
Processing `test.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `./tmp-lilypond-sOMY4M'...
Converting to `test.pdf'...
Deleting `./tmp-lilypond-sOMY4M'...
Success: compilation successfully completed

x:\>popd

C:\Users\jlowe>

I hope this helps.

James



reply via email to

[Prev in Thread] Current Thread [Next in Thread]