Skip to content

Commit 132ffe9

Browse files
committed
Tell latexmk to be verbose in debug mode
1 parent 1905599 commit 132ffe9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

plugins/builder/traditional_builder.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ def commands(self) -> CommandGenerator:
9494

9595
if latexmk:
9696
# no need to output messages, if they are not consumed
97-
if logger.getEffectiveLevel() != DEBUG and not self.display_log:
97+
if logger.getEffectiveLevel() == DEBUG or self.display_log:
98+
cmd.append("-verbose")
99+
else:
98100
cmd.append("-silent")
99101

100102
if sublime.platform() == "windows":
@@ -105,7 +107,7 @@ def commands(self) -> CommandGenerator:
105107
# final documents to a possibly defined --output-directory
106108
# prevents files reloading in SumatraPDF or even fails
107109
# if documents are opened and locked by viewer on Windows.
108-
cmd.append(f"-output-directory={self.aux_directory}")
110+
cmd.append(f"-output-directory={self.aux_directory_full}")
109111

110112
if self.job_name != self.base_name:
111113
cmd.append(f'-jobname="{self.job_name}"')
@@ -114,7 +116,9 @@ def commands(self) -> CommandGenerator:
114116

115117
elif texify:
116118
# no need to output messages, if they are not consumed
117-
if logger.getEffectiveLevel() != DEBUG and not self.display_log:
119+
if logger.getEffectiveLevel() == DEBUG or self.display_log:
120+
cmd.append("--verbose")
121+
else:
118122
cmd.append("--quiet")
119123

120124
if self.job_name != self.base_name:

0 commit comments

Comments
 (0)