Bug 328701

Summary: pdflatex build tool options order causes bad command with option after file argument
Product: [Applications] kile Reporter: krichter
Component: generalAssignee: Michel Ludwig <michel.ludwig>
Status: RESOLVED WORKSFORME    
Severity: normal CC: krichter
Priority: NOR    
Version First Reported In: 2.1.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description krichter 2013-12-12 07:52:57 UTC
specifying options for the pdflatex build tool (and possibly other build tools) causes certain options to be placed after the file argument of the pdflatex command which causes the QuickBuild tool to fail without any feedback if the processing of the source code requires any tools to be executed . 

Reproducible: Always

Steps to Reproduce:
1. under kile settings dialog -> build tools panel change the text in the options text area of the pdflatex build tool from <tt>-interaction=nonstopmode '%source'</tt> (default setting) to <tt>-interaction=nonstopmode '%source' --shell-escape</tt>
2. enter latex code into the editor and save it under /tmp/test4.tex, e.g.
<code>
\documentclass[a4paper,10 pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[pdftex]{graphicx}
\usepackage{graphviz}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{dot2texi}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\title{}
\author{The author}

\begin{document}

\maketitle

\begin{abstract}

\end{abstract}

\section{abc}

    \begin{tikzpicture}[>=latex',scale=0.8]
        \tikzstyle{n} = [draw,shape=circle,minimum size=2em,
                            inner sep=0pt,fill=red!20]
        \begin{dot2tex}[dot, tikz,codeonly,styleonly,options=-s -tmath]
	  digraph G {
	  node [shape="circle"];
	  a_1 -> a_2 -> a_3 -> a_4 -> a_1;
	  }
        \end{dot2tex}
    \end{tikzpicture}

\end{document}
</code>
3. Execute the QuickBuild Command and check the output, notice that the executed command is <tt>pdflatex --shell-escape -interaction=nonstopmode test4.tex</tt>
4. in the settings dialog (-> 1.) change the options text to <tt>--shell-escape -interaction=nonstopmode '%source'</tt> and repeat 3., notice that the executed command is <tt>pdflatex -interaction=nonstopmode test4.tex --shell-escape</tt>
Actual Results:  
see steps to reproduce

Expected Results:  
the second command should be <tt>pdflatex -interaction=nonstopmode --shell-escape test4.tex</tt>
Comment 1 krichter 2013-12-12 07:54:35 UTC
I know that the creation of dot2texi output fails regardless of the issue described, but the example shows that the placement of options is wrong nevertheless.
Comment 2 Andrew Crouthamel 2018-11-11 04:30:22 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Andrew Crouthamel 2018-11-21 04:48:44 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Justin Zobel 2023-01-13 01:36:33 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 5 Bug Janitor Service 2023-01-28 05:08:36 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2023-02-12 03:50:30 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!