<html>#1881: Unclear error message for parameter file error
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Erik Schnetter</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>open</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td>development version</td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td>Cactus</td></tr>
</table>

<p>Comment (by Roland Haas):</p>
<p>The error message is still not optimal since it eg points to the wrong line (though at least it now shows the incorrect line). Since the parfile attachment seems to have vanished I tried with a simpler reproducer:  </p>
<div class="codehilite language-perl"><pre><span></span><span class="nn">Cactus::</span><span class="n">cctk_itlast</span> <span class="o">=</span> <span class="mi">10</span>

<span class="c1"># this line is wrong</span>
<span class="nn">Cactus::</span><span class="n">cctk_full_warnings</span>

<span class="c1"># this line is ok</span>
<span class="nn">Cactus::</span><span class="n">cctk_run_title</span> <span class="o">=</span> <span class="s">&quot;lineno test&quot;</span>
</pre></div>


<p>which fails with:</p>
<div class="codehilite language-text"><pre><span></span>Activating thorn Cactus...Success -&gt; active implementation Cactus
WARNING level 0 from host ekohaes8 process 0
  in thorn cactus, file lineno.par:7:
  -&gt; ERROR IN PARAMETER FILE:Parse Error
Expected one of the following characters: &#39;[&#39;, &#39;=&#39;
Cactus::cctk_full_warnings

# this line is ok
Cactus::cctk_run_title = &quot;lineno test&quot;
^

WARNING level 0 from host ekohaes8 process 0
  in thorn cactus, file lineno.par:7:
  -&gt; ERROR IN PARAMETER FILE:Parse Error
Expected one of the following characters: &#39;[&#39;, &#39;=&#39;
Cactus::cctk_full_warnings

# this line is ok
Cactus::cctk_run_title = &quot;lineno test&quot;
^

--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 1.
</pre></div>


<p>maybe instead of pointing to the first wrong character, point to the last good one (not counting whitespace and comments) would be better in this case? Though it obviously comes with its own issues such as this file:</p>
<div class="codehilite"><pre><span></span><span class="c">Cactus::cctk_itlast = 12</span>
<span># now an incorrect line</span>
<span>::this_does_not_work = 42</span>
</pre></div>


<p>which should poin
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/1881/unclear-error-message-for-parameter-file'>https://bitbucket.org/einsteintoolkit/tickets/issues/1881/unclear-error-message-for-parameter-file</a></p>
</html>