On Tuesday, June 05, 2007, at 01:57PM, "Christiaan Hofman" <[EMAIL PROTECTED]> 
wrote:
>
>On 5 Jun 2007, at 10:47 PM, Adam R. Maxwell wrote:
>
>> More fun with file updates.  I'm trying latexmk.pl via TextMate for  
>> typesetting (runs multiple latex/bibtex passes as needed), and I've  
>> discovered a file race condition:  we get a change notification  
>> after the first latex pass, then reload the file when the trailer  
>> is detected.  However, while SKDocument is reverting, the script is  
>> running another latex process that trashes the PDF, and the revert  
>> fails.  Of course, this also depends on CPU speed and load, and  
>> much of the time it seems to work fine.  I don't think there's much  
>> we can do about this, since it could fail with a timer as well, but  
>> it's probably worth noting.
>>
>> -- 
>> Adam
>
>So what happens in that case? Does it crash, or do you just get the  
>warning? We could perhaps get the limited number of re-tries back.

It doesn't crash.  It puts up a generic NSDocument alert that says the file 
could not be loaded, and the console log has messages about invalid 
cross-references.  One problem is that it can display intermediate content 
successfully, but I guess the final notification will cause it to load the 
final content eventually.  Now that I think of it, it may have reloaded at 
least once while PDFView was still doing its delayed layout, since it jumped to 
an odd location and I couldn't figure out what was going on.  Given the present 
state of PDFView, I'm not sure there's any way to work around that.

-- 
Adam

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
skim-app-develop mailing list
skim-app-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-develop

Reply via email to