question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrong File Name When Parsing The LaTeX Log File

See original GitHub issue

Describe the bug

The extension reports the problem with a wrong file name.

Condition

Input a file which needs >=2 pages and has a warning.

Desktop

  • OS: Windows 10
  • VS Code version: 1.36.1
  • Extension version: 7.3.0

Example

% This is main file
\documentclass{article}

\newcommand{\reportwarning}{\noindent \\} % Just a trick to report info

\usepackage{lipsum}

\begin{document}

\input{1.tex}

\end{document}
% This is 1.tex
\lipsum % Print many pages

\reportwarning

And then compile it.

It will report a problem.

Here is some related log info in log file

(./1.tex [1

] [2]
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <7> on input line 6.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <5> on input line 6.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <8> on input line 6.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <6> on input line 6.

Underfull \hbox (badness 10000) in paragraph at lines 6--7

 []

)

And the bug:

The file name is 1.tex [1] [2].


P.S. It is quite annoying when debugging a huge document because I cannot directly goto that line in the file.

Thanks a lot.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
uninyhartcommented, Aug 2, 2019

OK, here is the log:

[01:00:15] Initializing LaTeX Workshop.
[01:00:15] Creating LaTeX Workshop http and websocket server.
[01:00:15] LaTeX Workshop initialized.
[01:00:15] Found root file from active editor: f:\test\main.tex
[01:00:17] Root file changed from: undefined. Find all dependencies.
[01:00:17] Instantiating a new file watcher for f:\test\main.tex
[01:00:17] Parsing f:\test\main.tex
[01:00:17] Adding f:\test\1.tex to file watcher.
[01:00:17] Parsing f:\test\1.tex
[01:00:17] Cannot find file f:\test\main.fls
[01:00:17] Server created on 127.0.0.1:50647
[01:00:17] BUILD command invoked.
[01:00:17] Found root file from active editor: f:\test\main.tex
[01:00:17] Root file remains unchanged from: f:\test\main.tex.
[01:00:17] Building root file: f:\test\main.tex
[01:00:17] Build root file f:\test\main.tex
[01:00:17] Recipe step 1: latexmk, -synctex=1,-interaction=nonstopmode,-file-line-error,-xelatex,f:/test/main
[01:00:17] LaTeX build process spawned. PID: 10836.
[01:00:17] Snippet data loaded.
[01:00:17] LaTeX Workshop version: 7.3.0
[01:00:21] LaTeX log parsed with 1 messages.
[01:00:21] Recipe of length 1 finished. PID: 10836.
[01:00:21] Successfully built f:\test\main.tex.
[01:00:21] No PDF viewer connected for f:\test\main.pdf
[01:00:21] Parsing f:\test\main.fls to compute dependencies
[01:00:21] Auto Clean invoked.
[01:00:21] File cleaned: f:\test\main.aux
[01:00:21] File cleaned: f:\test\main.fls
[01:00:21] File cleaned: f:\test\main.xdv
[01:00:21] File cleaned: f:\test\main.log
[01:00:21] File cleaned: f:\test\main.fdb_latexmk
1reaction
gtklockercommented, Aug 2, 2019

I’m facing this issue too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parsing file name into document - TeX - LaTeX Stack Exchange
I would like to use the components (xxx, yyy, zzz) of the file name as inputs in the document, n particular when creating...
Read more >
TeXstudio : user manual
To change a command, just click on the button at the end of the corresponding line and select the command in the file...
Read more >
Set Main Document - Overleaf, Online LaTeX Editor
E.g. , if version1/main.tex is set as the main file but main.tex is also in the project, main.tex will be compiled. This ...
Read more >
Texmaker : user manual - MIT
Texmaker can't compile yours documents if the paths to the LaTeX related commands are wrong. The default settings should work with the recent...
Read more >
Pandoc User's Guide
Thus, to convert hello.txt from Markdown to LaTeX, you could type: ... To produce a PDF, specify an output file with a .pdf...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found