On 01/14/2018 04:12 AM, Pavel Sanda wrote:
> Andrew Parsloe wrote:
>> On 14/01/2018 7:59 a.m., Pavel Sanda wrote:
>>> Here we go:
>>> put beamer_test.lyx & beamer_test.tex.orig to our git tree.
>>> then outline & beamer test should be smt like:
>>>
>>> rm beamer_test.tex
>>> lyx -x 'command-sequence file-open beamer_test.lyx ; buffer-begin ; repeat 
>>> 150 outline-down; repeat 150 outline-up ; buffer-export pdflatex ; repeat 
>>> 150 outline-down; buffer-reload dump ; lyx-quit '
>>> diff -u beamer_test.tex beamer_test.tex.orig
>>> ... if diff is noneempty fail the test ...
>>>
>>>
>>> Doable?
>>> Pavel
>> I notice buffer-export in a command-sequence. Is this going to be 
>> compatible with threaded export (#8346)? (When I've tried doing this in the 
>> past, the commands following the buffer-export are initiated before the 
>> export is complete, resulting in a mess.)
> Do you have reproducible recipy? We clone the buffer before we start
> export, and we do this cloning synchronously. Only after cloning
> asynchronous call is done on the cloned document, thus I have problem
> to see why you should experience any problem...

I've certainly heard of this: As Andrew said, buffer-export basically
returns immediately, even if the export process itself takes an hour.
That's because the export happens in a separate thread.

There was another bug recently that made me think we shouldn't use
clones when exporting from the command line, but I can't remember which
one. I can't think it would be that hard to check use_gui or whatever
before cloning.

Richard

Reply via email to