blumu / latexdaemon

LaTeXDaemon speeds-up compilation of LaTeX documents through background monitoring of source files and automatic preamble precompilation.
http://william.famille-blum.org/software/latexdaemon/
Other
8 stars 1 forks source link

Support for Miktex > 2019: ! Extra \endgroup. \error in #37

Closed 4db83 closed 2 years ago

4db83 commented 3 years ago

Hi William, I have been using LatexDaemon since 2007 and, first of all, should thank you for creating it. :).

With updates to Miktex, however, it seems to throw this error how that I cannot resolve (On a 2019 version of miktex it does not)

! Extra \endgroup. \document ->\endgroup \immediate \closeout \preambledepfile \let \input \DAE... l.5 \begin{document}

The latex file is a simple "hello world": ie.

\documentclass[12pt]{article} \begin{document} \title{LatexDaemon Error Message} \author{Me} \maketitle \section{Test} Hello world \end{document}

Full error log output is in the "Output Snapshot.png" file for you to see, also showing the miktex version MiKTeX-TeX 4.3 (MiKTeX 21.8).

Could you, may be, help me find out what the problem is to fix it?

Thank you so much. Output Snapshot

blumu commented 2 years ago

@4db83 You are very welcome, glad that LaTeXDaemon has been working fine for you all these years! It's unfortunate that it stopped working recently. Thanks for reporting the issue. This does look like a breaking change in MikTeX. I wonder if it would make sense to report it at https://github.com/MiKTeX/miktex/issues

Have you tried the latest version 21.12 to see if the problem got fixed by any chance?

4db83 commented 2 years ago

Hi William, wow that is a fast reply. I did not expect that.

I will try the latest version tomorrow (it’s late in Stockholm now).

If that still throws the same errors, I will do as you suggest to report to miktex. I have been trying to find the something like “\immediate \closeout \preambledepfile \let” in LatexDaemon source code, but I could not. I will try to do a search in the Miktex source code also, but I am not a programmer by training, so could be a very clumsy attempt.

Thanks again, it has been working fantastic.

Best wishes

Daniel

From: William Blum @.> Sent: Monday, December 20, 2021 23:16 To: blumu/latexdaemon @.> Cc: 4db83 @.>; Mention @.> Subject: Re: [blumu/latexdaemon] ! Extra \endgroup. \error (#37)

@4db83 https://github.com/4db83 You are very welcome, glad that LaTeXDaemon has been working fine for you all these years! It's unfortunate that it stopped working recently. Thanks for reporting the issue. This does look like a breaking change in MikTeX. I wonder if it would make sense to report it at https://github.com/MiKTeX/miktex/issues

Have you tried the latest version 21.12 https://github.com/MiKTeX/miktex/releases?after=2.9.7445 to see if the problem got fixed by any chance?

— Reply to this email directly, https://github.com/blumu/latexdaemon/issues/37#issuecomment-998311049 view it on GitHub, or https://github.com/notifications/unsubscribe-auth/AUGJQHUAKMLB6HKMDLL5KFTUR6TJ3ANCNFSM5EVVEJCQ unsubscribe. Triage notifications on the go with GitHub Mobile for https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 iOS or https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub Android. You are receiving this because you were mentioned.Message ID: @.***>

blumu commented 2 years ago

There is a workaround by just removing the `\endgroup`` command at:

https://github.com/blumu/latexdaemon/blob/5dc099e2af172548d75d26758bf9c6d6eaa18248/latexdaemon/main.cpp#L2309

I verified that it works on MikTeX 21.12 though I assume it would break previous version of MikTex.

blumu commented 2 years ago

@4db83 There were a fix recently checked-in in the mylatex package, I cherry-picked the change into latexdaemon and it seems to fix the problem. You can try a private build at https://github.com/blumu/latexdaemon/suites/4720667365/artifacts/129796366

4db83 commented 2 years ago

Thank you William! It works perfectly now. I am not sure if you want to make this the main build, but I can confirm that it runs on my current “old” version of miktext basic-miktex-2.9.7442-x64.

Thank you again. Daniel

From: William Blum @.> Sent: Tuesday, December 21, 2021 06:08 To: blumu/latexdaemon @.> Cc: 4db83 @.>; Mention @.> Subject: Re: [blumu/latexdaemon] ! Extra \endgroup. \error (#37)

@4db83 https://github.com/4db83 There were a fix recently checked-in in the mylatex package, I cherry-picked the change into latexdaemon and it seems to fix the problem. You can try a private build at https://github.com/blumu/latexdaemon/suites/4720667365/artifacts/129796366

— Reply to this email directly, view it on GitHub https://github.com/blumu/latexdaemon/issues/37#issuecomment-998476028 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AUGJQHQXROWB4UA26JENIODUSADSZANCNFSM5EVVEJCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . You are receiving this because you were mentioned.Message ID: @.***>

blumu commented 2 years ago

Fixed in #39