texstudio-org / texstudio

TeXstudio is a fully featured LaTeX editor. Our goal is to make writing LaTeX documents as easy and comfortable as possible.
http://www.texstudio.org/
GNU General Public License v3.0
2.85k stars 346 forks source link

Maximum compile repetition for latexmk should always be 1. #987

Open axkibe opened 4 years ago

axkibe commented 4 years ago

Environment

Expected behavior

latexmk should always only be called once, since it manages repetitions by itself

Actual behavior

when adding "-g" as parameter, to force recompilation (because sometimes latexmk overlooks some dependencies) TexStudio will call latexmk 5 times (default max repetitions).

Even if without -g the additional calls are quickly done in background, they are unnecessary.

How to reproduce

Add -g to latexmk, set latexmk as default compiler. Compile and watch it being called over and over.

Shall I work a patch for that?

sunderme commented 4 years ago

Being able to turn off the behavior (button in front of "default compiler" in advanced mode) is not enough ? But you can make a suggestion if it is simple enough.

axkibe commented 4 years ago

Hmm.. I didn't realize how that setting worked... okay.

How about this, if you change it in non-advanced mode, (where this option is not visible) it overrides it to disabled as long latexmk is selected in case it was enabled?

sunderme commented 4 years ago

in principle I agree.

axkibe commented 4 years ago

When I get to it, I'll make a patch that auto sets/unsets the repetition setting in the simple view depending on the choice.