syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.7k stars 4.9k forks source link

Compilation errors when building latex are not shown #12627

Closed fran-penedo closed 4 years ago

fran-penedo commented 5 years ago

Description :octocat:

Compilation errors when building latex are not shown.

It seems the log is not being parsed or it is malformed somehow. -file-line-error option does not seem to make a difference. Bug is reproducible on a clean spacemacs installation in develop branch with a clean .spacemacs file with latex layer added. I am a new user, so it is likely a misconfiguration on my part. I will appreciate any help with this.

Reproduction guide :beetle:

main.tex
-----------
\documentclass{article}

\title{Foobar}

\begin{document}

\section{foobar}
\label{sec:foobar}

Foobar \phi + 5

\end{document}

Observed behaviour: :eyes: :broken_heart : No errors reported, going to next or previous error (SPC m n/N) shows "No more errors", executing TeX-error-overview shows "No error or warning to show". Showing compilation results with C-c C-l shows the following log:

Running `LatexMk' on `main' with ``latexmk -pdf --synctex=1 -interaction=nonstopmode  -file-line-error --shell-escape -verbose main.tex''
Latexmk: This is Latexmk, John Collins, 17 March 2019, version: 4.63b.
Latexmk: applying rule 'pdflatex'...
Rule 'pdflatex': File changes, etc:
   Changed files, or newly in use since previous run(s):
      'main.tex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
Running 'pdflatex  --synctex=1 -interaction=nonstopmode -file-line-error --shell-escape -recorder  "main.tex"'
------------
This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Arch Linux) (preloaded format=pdflatex)
 \write18 enabled.
entering extended mode
(./main.tex
LaTeX2e <2018-12-01>
(/usr/share/texmf-dist/tex/latex/base/article.cls
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
(/usr/share/texmf-dist/tex/latex/base/size10.clo)) (./main.aux)
./main.tex:10: Missing $ inserted.
<inserted text> 
                $
l.10 Foobar \phi
                 + 5
./main.tex:11: Missing $ inserted.
<inserted text> 
                $
l.11 

[1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./main.aux) )
(see the transcript file for additional information)</usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/share/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on main.pdf (1 page, 26656 bytes).
SyncTeX written on main.synctex.gz.
Transcript written on main.log.
=== TeX engine is 'pdfTeX'
Latexmk: Log file says output to 'main.pdf'
Latexmk: Errors, so I did not complete making targets
Latexmk: Use the -f option to force complete processing,
 unless error was exceeding maximum runs, or warnings treated as errors.

TeX Output exited abnormally with code 12 at Fri Aug 16 18:32:00

Expected behaviour: :heart: :smile: Errors are shown somehow.

System Info :computer:

Backtrace :paw_prints:

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!