diff --git a/src/makepdf.rs b/src/makepdf.rs index c92f20a..5be971b 100644 --- a/src/makepdf.rs +++ b/src/makepdf.rs @@ -88,10 +88,10 @@ async fn launch_subprocess(args: &MakeConfig) -> Result { let mut built = 0; let to_build = last_run.lines_parsed; - cmd.arg(&args.target); if args.non_interactive { - cmd.arg("--interaction=batchmode"); + cmd.arg("--interaction=nonstopmode"); } + cmd.arg(&args.target); cmd.env("max_print_line", "3000"); // Specify that we want the command's standard output piped back to us. cmd.stdout(Stdio::piped()); diff --git a/src/makepdf_structs.rs b/src/makepdf_structs.rs index ab90597..8d206b5 100644 --- a/src/makepdf_structs.rs +++ b/src/makepdf_structs.rs @@ -220,7 +220,8 @@ pub(crate) enum LineType { MissingReference(String), /// Generic Latex Warning - #[regex(r"(LaTex |Warning:){2}[^\n]+", |lex| lex.slice()[14..].to_string())] + // TODO: Just use a Prs like the others + #[regex(r"(LaTex |Warning:)+[^\n]+", |lex| lex.slice()[14..].to_string())] Warning(String), // /// Runaway argument @@ -232,6 +233,7 @@ pub(crate) enum LineType { /// Context, mosty for boxes // TODO: False positives / Reparsing Context("10") )) [107] (./Ecoles/Protecteur.tex + // TODO: uncaught: [UKNW] [3] [4] (./Chapters/Intro.tex (/usr/share/texmf/tex/latex/lm/ot1lmr.fd) (/usr/share/texmf/tex/latex/lm/omllmm.fd) (/usr/share/texmf/tex/latex/lm/omslmsy.fd) (/usr/share/texmf/tex/latex/lm/omxlmex.fd) (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd) (/usr/share/texlive/texmf-dist/tex/latex/microtype/mt-msa.cfg) (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd) (/usr/share/texlive/texmf-dist/tex/latex/microtype/mt-msb.cfg) (/usr/share/texmf/tex/latex/lm/ts1lmr.fd)) [5 <./Images//Ico/LogoNoush.jpg>] [6] #[regex(r"\[\d[^\]]+", |lex| lex.slice()[1..lex.slice().len()-1].to_string())] Context(String), @@ -388,8 +390,9 @@ pub(crate) struct Status { impl Status { /// Add a recoverable error to the list of errors + // TODO: Print this at the end of the parse pub(crate) fn add_error(&mut self, error_msg: String) { - self.errors += 1; + // self.errors += 1; self.v_errors.push(error_msg); } }