<html>#464: create-submit without simulation name gives bad error message
<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>resolved</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'> Version:</td><td></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>SimFactory</td></tr>
</table>
<p>Changes (by Roland Haas):</p>
<p><table>
<tr><td>status:</td><td>resolved (was new)</td></tr>
</table></p>
<p>Calling create-submit without specifying a simulation name does not give a legible error message:</p>
<p>$ ./bin/sim create-submit --debug
Info: Simfactory command: ./bin/../simfactory/lib/sim.py "create-submit" "--debug"
Info: Version 1371M
The Simulation Factory: Manage Cactus simulations</p>
<p>Info: defs: /Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/etc/defs.ini
Info: defs.local: /Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/etc/defs.local.ini
Info: Cactus Directory: /Users/eschnett/EinsteinToolkit-hg-vanilla
Info: simenv.COMMAND: create-submit
Info: Executing command: create_submit
Traceback (most recent call last):
File "./bin/../simfactory/lib/sim.py", line 147, in <module>
main()
File "./bin/../simfactory/lib/sim.py", line 143, in main
CommandDispatch()
File "./bin/../simfactory/lib/sim.py", line 105, in CommandDispatch
module.main()
File "/Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/lib/sim-manage.py", line 345, in main
CommandDispatch()
File "/Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/lib/sim-manage.py", line 324, in CommandDispatch
exec("command_%s()" % command)
File "<string>", line 1, in <module>
File "/Users/eschnett/EinsteinToolkit-hg-vanilla/simfactory/lib/sim-manage.py", line 125, in command_create_submit
simulationName = simenv.OptionsManager.args.pop(0)
IndexError: pop from empty list</p>
<p><strong>Keyword:</strong></p>
<p>Comment (by Roland Haas):</p>
<p>Fixed in git hash <a data-is-external-link="true" href="https://bitbucket.org/simfactory/simfactory2/commits/8b21bcef11c331edcb944631ce984fec7d0a0550" rel="nofollow">8b21bce</a> "sim-manage: provide user friendly error about missing simname in create-submit" of <a data-is-external-link="true" href="https://bitbucket.org/simfactory/simfactory2" rel="nofollow">simfactory2</a></p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/464/create-submit-without-simulation-name'>https://bitbucket.org/einsteintoolkit/tickets/issues/464/create-submit-without-simulation-name</a></p>
</html>