<div dir="ltr"><div><div><div>I think having a list for run modes (i assume you mean the settings you specify in the Run -> Run Parameters dialog box) that you can select from a popup menu near the "play" button and have different run modes apply, like you can select the build mode from the "gear" button, is a good idea. Being able to switch configuration files and working directories from inside Lazarus for some of the tools i work with would be very nice.<br><br>The only thing i disagree with is to have them per build mode since chances are you'd need them with different build modes (e.g. debug, release, profile, etc would have the same run modes) and even if you could copy them, it would still be an annoyance to make sure all are available.<br><br></div>Instead i'd say to have a table with a column per build mode and a row per run mode, have checkboxes for those that will apply and those checkboxes would be enabled by default.<br><br></div>Alternatively just use a global list that is the same across all build modes, but then you may have run modes that do not apply in all build modes and have them take up space (e.g. if one of your run modes causes a program to load a 32bit DLL and you are in a build mode that explicitly targets a 64bit OS this run mode wouldn't apply - of course one case wouldn't matter much, but the next thing i imagine after such a feature is available is being able to generate run modes automatically though a script :-P).<br><br></div><div>Kostas<br></div><div><div><div><div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 11, 2017 at 1:15 PM, Michael Van Canneyt via Lazarus <span dir="ltr"><<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank">lazarus@lists.lazarus-ide.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On Sat, 11 Feb 2017, Mattias Gaertner via Lazarus wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sat, 11 Feb 2017 11:22:23 +0100 (CET)<br>
Michael Van Canneyt via Lazarus <<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank">lazarus@lists.lazarus-ide.org</a><wbr>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
Currently, the options specified in 'Run - Parameters' are stored in the<br>
project.lpi file.<br>
<br>
I have always found this a strange choice.<br>
What is the rationale for this decision ?<br>
</blockquote>
<br>
Some projects need the same run parameters on all machines.<br>
For example instantfpc projects can't run with the default run<br>
params.<br>
</blockquote>
<br></span>
>From my personal experience, I really think this is a minority...<br>
<br>
For example, testsuites. I keep setting the --suite=TestA.MethodXYZ. My collegue sets it to --suite=TestB.MethodC. It gives me conflicts every time I update from SVN.<br>
<br>
And in this case you almost never use the same command-line twice.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Logically, I would I think these parameters belong in the .lps file ?<br>
</blockquote>
<br>
I agree, there should be an option. Or even better would be a list<br>
of run modes.<br>
</blockquote>
<br></span>
Don't get overenthousiastic. Keep it simple :)<br>
<br>
The trouble with a list is that you must maintain it, just as the build<br>
modes. I don't want that.<br>
<br>
So if you do decide to introduce it, please keep it optional, as the build<br>
modes.<br>
<br>
Not to say there is already a list, namely the history mechanism.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Some developers using build modes suggested to have different run<br>
parameters per build mode. So it would be nice if the list and build<br>
modes can be connected. For example when switching the build mode, the<br>
IDE automatically switches the run mode too.<br>
</blockquote>
<br></span>
Well. If you can give a global option<br>
<br>
Save "run parameter" settings in<br>
[*] .lpi file<br>
[ ] .lps file [ ] run modes<br>
[ ] build mode<br>
<br>
I will be satisfied. You could use the ones in .lpi as a fallback, in case they are not set in<br>
the .lps<span class="HOEnZb"><font color="#888888"><br>
<br>
Michael.</font></span><div class="HOEnZb"><div class="h5"><br>
-- <br>
______________________________<wbr>_________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus-ide.org" target="_blank">Lazarus@lists.lazarus-ide.org</a><br>
<a href="http://lists.lazarus-ide.org/listinfo/lazarus" rel="noreferrer" target="_blank">http://lists.lazarus-ide.org/l<wbr>istinfo/lazarus</a><br>
</div></div></blockquote></div><br></div>