Bug 388348 - livePreview can not find tex file
Summary: livePreview can not find 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-12-30 08:32 UTC by balabi
Modified: 2018-01-15 00:40 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 balabi 2017-12-30 08:32:13 UTC
The error message is below

*****
*****     LivePreview-PDFLaTeX output: 
*****     cd "D:/__tmp"
*****     pdflatex -synctex=1 -interaction=nonstopmode -output-directory=C:/Users/qq/AppData/Local/Temp/kile-livepreviewn6xaRv wewewe.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 `wewewe.tex'.
<*> wewewe.tex
              
(Press Enter to retry, or Control-Z to exit)
Please type another input file name
! Emergency stop.
<*> wewewe.tex
              
!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on C:/Users/qq/AppData/Local/Temp/kile-livepreviewn6xaRv/tex
put.log.

The tex file content is 

\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\begin{document}
sdfsdf
\end{document}

I don't understand what is going on. In this post https://bugs.kde.org/show_bug.cgi?id=385840. You said it is due to spaces in path. However, my path has no spaces.
Comment 1 Christoph Feck 2018-01-10 15:18:38 UTC
The space is there:

> directory=C:/Users/qq/AppData/Local/Temp/kile-livepreviewn6xaRv wewewe.tex
Comment 2 balabi 2018-01-11 00:18:01 UTC
(In reply to Christoph Feck from comment #1)
> The space is there:
> 
> > directory=C:/Users/qq/AppData/Local/Temp/kile-livepreviewn6xaRv wewewe.tex

OK, Thank you for reply. But this doesn't solve anything.

My tex file name is wewewe.tex, my path is "D:/__tmp". The temporary folder "C:/Users/qq/AppData/Local/Temp/kile-livepreviewn6xaRv wewewe.tex" has a space is not my fault!
Comment 3 Christoph Feck 2018-01-11 00:53:15 UTC
Sorry, comment #1 is nonsense. The space there is to separate the arguments.
Comment 4 balabi 2018-01-11 02:01:45 UTC
(In reply to Christoph Feck from comment #3)
> Sorry, comment #1 is nonsense. The space there is to separate the arguments.

Then, How to solve the issue? :)
Comment 5 Michel Ludwig 2018-01-11 19:17:36 UTC
Can you try to run a command like "pdflatex -synctex=1 -interaction=nonstopmode -output-directory=C:/Users/qq/AppData/Local/Temp/kile-livepreviewn6xaRv wewewe.tex" on the command prompt (with existing directories)?

The important bit should be the option "-output-directory <dir>".

You can also try out MikTeX, which should work fine.
Comment 6 balabi 2018-01-12 01:37:14 UTC
(In reply to Michel Ludwig from comment #5)
> Can you try to run a command like "pdflatex -synctex=1
> -interaction=nonstopmode
> -output-directory=C:/Users/qq/AppData/Local/Temp/kile-livepreviewn6xaRv
> wewewe.tex" on the command prompt (with existing directories)?
> 
> The important bit should be the option "-output-directory <dir>".
> 
> You can also try out MikTeX, which should work fine.

Ok, directly run command in CMD indeed works.

But I don't want to use MikTex, though I don't know if it really work. 

Anyway, this is not a proper way to solve the problem. Any working latex editor should support texlive. I just want to know how long it takes to fix this bug? The reason that I want to try kile is because it support live view. However, it is now broken.
Comment 7 Michel Ludwig 2018-01-13 05:58:21 UTC
(In reply to balabi from comment #6)
> Anyway, this is not a proper way to solve the problem. Any working latex
> editor should support texlive. I just want to know how long it takes to fix
> this bug? The reason that I want to try kile is because it support live
> view. However, it is now broken.

Of course, it's not a proper solution, but at least you will be able to use Kile.
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 385840

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
Comment 9 balabi 2018-01-15 00:40:01 UTC
(In reply to Michel Ludwig from comment #8)
> 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 385840
> 
> 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

Thank you so much! Is the binary for windows updated?