<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Dear Dick,<div class="">   Thanks for compiling and pointing us to TeXShop-4.23. I've been using it on my home MacPro for the past 4 hours, and have recompiled my large book 25 times or so.  Only once did something trigger a reset/recompile during a compile.  I can't say what caused it.  In any case, the situation is much improved.  I haven't used the hidden preference. </div><div class="">   I'm sorry I don't have anything more useful to tell you. If I notice anything when I work from the office machine, I'll let you know.  But this version is much more useable, at least on my set-up, than 4.22.</div><div class="">Thanks again. I'm very appreciative.</div><div class="">   Yours,</div><div class="">Ed</div><div class=""><div class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;"><br class=""></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On Jan 21, 2019, at 8:26 AM, Richard Koch <<a href="mailto:koch@uoregon.edu" class="">koch@uoregon.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Edward and others,<br class=""><br class="">As promised, I am making available an experimental version of TeXShop:<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">      </span><a href="http://pages.uoregon.edu/koch/texshop423.zip" class="">http://pages.uoregon.edu/koch/texshop423.zip</a><br class=""><br class="">Read the Changes document for the changes, but to summarize:<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">    </span>a) makeIndex is fixed<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">     </span>b) a hidden preference allows you to turn off the terminationHandler and return to the original method of telling TeXShop that tasks have concluded<br class=""><br class="">Dick Koch<br class="">koch@uoregon.edu<br class=""><br class=""><blockquote type="cite" class="">On Jan 19, 2019, at 10:11 PM, Edward N. Zalta <zalta@stanford.edu> wrote:<br class=""><br class="">Dear Dick,<br class="">  Thanks for your efforts on this. On all of my machines (2 Mac Pros, 1 MacBook Pro) running Mojave, I've now set /Applications/TeX/TeXShop.app to be a link to /Applications/TeX/TeXShop-4.01.app.  I also have TeXShop-4.22.app in that directory. So by just toggling the link to one of the other versions of TeXShop, I can test those other versions. If there is something you want me to test, please let me know, or just send me the app build.<br class="">  To see the book I'm writing that's causing the problem, I have a Draft/Excerpt online:<br class=""><br class=""> http://mally.stanford.edu/principia.pdf<br class=""><br class="">But I usually compile it with /includeonly calls to about 6-10 chapters. <br class=""><br class="">All the best,<br class="">Yours,<br class="">Ed<br class=""><br class=""><br class=""><blockquote type="cite" class="">On Jan 19, 2019, at 6:01 PM, Richard Koch <koch@uoregon.edu> wrote:<br class=""><br class=""><br class=""><br class=""><blockquote type="cite" class="">On Jan 19, 2019, at 5:45 PM, Edward N. Zalta <zalta@stanford.edu> wrote:<br class=""><br class="">Dear Bruno,<br class="">Thanks for the follow-up. I've been working on my laptop all day (away from home), but using TeXShop 4.01 with MacTeX-2018.  Recompiled my book numerous time and never a freeze. Not sure why.  In general, the freezing behavior seems to occur much more rarely with TeXShop 4.01. Not sure why.<br class="">Yours,<br class="">Ed<br class=""><br class=""></blockquote><br class="">I may be able to explain this; tomorrow I'll try to produce an experimental version of 4.22 which could help.<br class=""><br class="">Here's the explanation. Apple revised the NSTask procedure calls in Mojave and deprecated the old calls. When looking at the new calls, I also noticed that Apple provides a "terminationHandler" routine which is called when the task ends. This is an alternative to a "notification" which NSTask can send when routines end. This terminationHandler is not new in Mojave; it has existed for some time.<br class=""><br class="">In 4.22, I made three changes:<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">    </span>1) I adopted the new NSTask calls<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>2) I switched to the terminationHandler from the older notification<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre">       </span>3) within the terminationHandler, I tried to detect instances of the "bug" and work around them by trashing the aux file and then typesetting again.<br class=""><br class="">About four days ago, a user complained that makeIndex broke in version 4.22. This user was very helpful and agreed to send me his complete source code after stripping out the illustrations. He also modified the source so it did not expect the illustrations, so it typeset immediately for me. This allowed me to easily determine that makeIndex ALWAYS failed for him on 4.22, but worked on 4.21. Indeed, on 4.22, it got all the index items, and then said "sorting" in the log, but instead called the terminationHandler at that point.<br class=""><br class="">Since the changes between 4.21 and 4.22 were minor, I could then test them one by one to determine exactly what caused the problem. The new NSTask calls DID NOT cause the problem. The problem, instead, was caused by switching from the old notification to the newer terminationHandler.<br class=""><br class="">I promptly fixed 4.22 for that user, who is happy. But I didn't release the newer version.<br class=""><br class="">---------------<br class=""><br class="">It is possible that Zaita's problem is also related to the terminationHandler, rather than to the new NSTask calls. It will be very easy to add a hidden preference which switches all typesetting back to the notification and away from the terminationHandler. When this preference item is selected,<br class="">then the "fix" for the problem can no longer be implemented. <br class=""><br class="">But that's OK, since at least in your case, and perhaps in others, the terminationHandler MIGHT be causing more problems than it fixed.<br class=""><br class="">I'll try to find time tomorrow for this experiment, and then write again.<br class=""><br class="">Dick Koch<br class=""></blockquote><br class=""><br class=""><br class=""></blockquote></div></div></blockquote></div><br class=""></div></body></html>