Bug 385840 - LivePreview reports no existance of tex file
Summary: LivePreview reports no existance of tex file
Status: RESOLVED FIXED
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: 2.9.91
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-17 03:03 UTC by Safa Alfulaij
Modified: 2018-01-13 06:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Safa Alfulaij 2017-10-17 03:03:26 UTC
The livepreview feature doesn't work as it reports (for any file):
[LivePreview-PDFLaTeX] main.tex => main.pdf (pdflatex)
[LivePreview-PDFLaTeX] finished with error code 1
Cannot open log file; did you run LaTeX?

The "Output" tab shows this:

*****
*****     LivePreview-PDFLaTeX output: 
*****     cd "C:/Users/Safa Alfulaij/Desktop/latex tests/project"
*****     pdflatex -synctex=1 -interaction=nonstopmode -output-directory=C:/Users/Safa Alfulaij/AppData/Local/Temp/kile-livepreviewDSSn9G main.tex
*****
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/W32TeX) (preloaded format=pdflatex)
 restricted \write18 enabled.

entering extended mode
! I can't find file `main.tex'.
<*> main.tex
            
(Press Enter to retry, or Control-Z to exit)
Please type another input file name
! Emergency stop.
<*> main.tex
            
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on "C:/Users/Safa Alfulaij/AppData/Local/Temp/kile-liveprevi
ewDSSn9G/texput.log".


This doesn't change if I ran Kile as admin user.

Kile Version 2.9.92
KDE Frameworks 5.37.0
Qt 5.9.1 (built against 5.9.1)
The windows windowing system
Comment 1 Michel Ludwig 2017-11-26 06:39:46 UTC
Can you attach a small test case that demonstrates the problem? Thanks.
Comment 2 Safa Alfulaij 2017-11-26 07:01:22 UTC
Anything will trigger this error.

example.tex

\documentclass{article}
\begin{document}
Text
\end{document}
Comment 3 Michel Ludwig 2017-11-26 07:04:22 UTC
Does it work if you compile documents in the traditional way (without using live preview)?
Comment 4 Safa Alfulaij 2017-11-26 07:20:00 UTC
Yes it does. Sorry for not saying that previously! :(
Comment 5 Michel Ludwig 2017-11-26 08:10:34 UTC
Ok, no problem. Then we have to look further.

It seems that you use a folder name that contains spaces "latex tests". Is that right? Can you try another name without spaces?

Which LaTeX distribution are you using on Windows? TeX Live? So far I've only run tests with MiKTeX.
Comment 6 Safa Alfulaij 2017-11-26 08:26:55 UTC
:)
The problem was with spaces, right.
And not only the "latex tests" folder, but my name as well "Safa AlFulaij".
So just escape the path string for pdflatex and everything will be fine! :)

Thanks!
Comment 7 Michel Ludwig 2017-12-22 16:44:58 UTC
Actually, Kile is escaping the strings correctly.

The problem seems to lie within TeXlive on Windows... Running a similar command on the command line also fails.
Comment 8 Michel Ludwig 2018-01-13 06:07:48 UTC
Git commit 306a7322bbbf6413f59ccda3089164575907b6b8 by Michel Ludwig.
Committed on 13/01/2018 at 06:05.
Pushed by mludwig into branch 'master'.

Use the correct path list separator on Windows
Related: bug 388348

M  +2    -2    src/dialogs/texdocumentationdialog.cpp
M  +4    -8    src/kileconstants.h
M  +5    -5    src/kileinfo.cpp
M  +7    -7    src/kilelauncher.cpp
M  +5    -5    src/livepreview.cpp
M  +2    -2    src/quickpreview.cpp

https://commits.kde.org/kile/306a7322bbbf6413f59ccda3089164575907b6b8