* Pandoc unable to access remote shares on Windows? @ 2020-08-11 15:14 Anton Shepelev [not found] ` <20200811181415.89ccef3a90a15783ceb1c261-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Anton Shepelev @ 2020-08-11 15:14 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Hello, all Being loth to store non-source files in version con- trol, I have decided to keep my reference document in a Windows share. But Pandoc seems unable to ac- cess the remote path. When I invoke it with --reference-doc=\\SRV3\\BinRes\Pandoc\style.docx it terminates with the error: pandoc: \\SRV3\\BinRes\Pandoc\style.docx: openBinaryFile: does not exist (No such file or directory) So I am forced to copy the style.docx locally in the build batch file: copy \\SRV3\\BinRes\Pandoc\style.docx . pandoc -f markdown -t docx ^ --reference-doc=style.docx -N ^ intdb.md -o intdb.docx del style.docx It works, but copying all remote resources locally just to make them accessible to Pandoc is ugly. Is there a better solution? Why is it that `copy' can access the remote path and Pandoc cannot? -- Please, do not forward replies to the list to my e-mail. ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20200811181415.89ccef3a90a15783ceb1c261-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: Pandoc unable to access remote shares on Windows? [not found] ` <20200811181415.89ccef3a90a15783ceb1c261-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2020-08-11 19:28 ` John MacFarlane 2020-08-11 21:15 ` Anton Shepelev 0 siblings, 1 reply; 4+ messages in thread From: John MacFarlane @ 2020-08-11 19:28 UTC (permalink / raw) To: Anton Shepelev, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Possibly relevant issue https://github.com/jgm/pandoc/issues/5127 Try with forward slashes! Anton Shepelev <anton.txt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > Hello, all > > Being loth to store non-source files in version con- > trol, I have decided to keep my reference document > in a Windows share. But Pandoc seems unable to ac- > cess the remote path. When I invoke it with > > --reference-doc=\\SRV3\\BinRes\Pandoc\style.docx > > it terminates with the error: > > pandoc: \\SRV3\\BinRes\Pandoc\style.docx: > openBinaryFile: does not exist (No such file or directory) > > So I am forced to copy the style.docx locally in the > build batch file: > > copy \\SRV3\\BinRes\Pandoc\style.docx . > > pandoc -f markdown -t docx ^ > --reference-doc=style.docx -N ^ > intdb.md -o intdb.docx > > del style.docx > > It works, but copying all remote resources locally > just to make them accessible to Pandoc is ugly. Is > there a better solution? Why is it that `copy' can > access the remote path and Pandoc cannot? > > -- > Please, do not forward replies to the list to my e-mail. > > -- > You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/20200811181415.89ccef3a90a15783ceb1c261%40gmail.com. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Pandoc unable to access remote shares on Windows? 2020-08-11 19:28 ` John MacFarlane @ 2020-08-11 21:15 ` Anton Shepelev [not found] ` <20200812001505.bb45f82028c02553a07dec0a-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 0 siblings, 1 reply; 4+ messages in thread From: Anton Shepelev @ 2020-08-11 21:15 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw John MacFarlane to Anton Shepelev: > > But Pandoc seems unable to access the remote > > path. When I invoke it with > > > > --reference-doc=\\SRV3\BinRes\Pandoc\style.docx > > > > it terminates with the error: > > > > pandoc: \\SRV3\BinRes\Pandoc\style.docx: > > openBinaryFile: does not exist (No such file or directory) > > Possibly relevant issue > https://github.com/jgm/pandoc/issues/5127 > Try with forward slashes! No, it not a relevant issue -- it is the self-same issue. Thanks for the reference. I failed to make it work with forward slashes, but the "long" UNC format has helped: --reference-doc=\\?\UNC\SRV3\BinRes\Pandoc\style.docx Whereas it is very non-standard syntax for Windows, it is worth documenting in the platform-specific section of the manual. But supporting native Windows syntax would be even better :-) ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20200812001505.bb45f82028c02553a07dec0a-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>]
* Re: Pandoc unable to access remote shares on Windows? [not found] ` <20200812001505.bb45f82028c02553a07dec0a-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> @ 2020-08-11 23:09 ` John MacFarlane 0 siblings, 0 replies; 4+ messages in thread From: John MacFarlane @ 2020-08-11 23:09 UTC (permalink / raw) To: Anton Shepelev, pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Anton Shepelev <anton.txt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: >> > pandoc: \\SRV3\BinRes\Pandoc\style.docx: >> > openBinaryFile: does not exist (No such file or directory) >> >> Possibly relevant issue >> https://github.com/jgm/pandoc/issues/5127 >> Try with forward slashes! > > No, it not a relevant issue -- it is the self-same > issue. Thanks for the reference. I failed to make > it work with forward slashes, but the "long" UNC > format has helped: > > --reference-doc=\\?\UNC\SRV3\BinRes\Pandoc\style.docx > > Whereas it is very non-standard syntax for Windows, > it is worth documenting in the platform-specific > section of the manual. But supporting native Windows > syntax would be even better :-) I had thought we had resolved it in the linked issue. Glancing at the discussion there, it looks like code was added that normalizes \\SRV3... to \\?\UNC\SRV3... In T.P.App.CommandLineOptions. But I see that it isn't applied everywhere it should be. In particular, not to --reference-doc. I'll re-open the issue with a note. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-08-11 23:09 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2020-08-11 15:14 Pandoc unable to access remote shares on Windows? Anton Shepelev [not found] ` <20200811181415.89ccef3a90a15783ceb1c261-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2020-08-11 19:28 ` John MacFarlane 2020-08-11 21:15 ` Anton Shepelev [not found] ` <20200812001505.bb45f82028c02553a07dec0a-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 2020-08-11 23:09 ` John MacFarlane
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).