Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2017-12

issue with %RunCommand

7 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Matias Vara

Hello, in Lazarus 1.6.2 I was using the following line to run qemu when I trigger "Run":

{%RunCommand qemu-system-x86_64.exe -m 512 -smp 2 -drive format=raw,file=ToroHello.img}

However, I am not getting the same behavior in Lazarus 1.8, instead, qemu is opened in background so I am not able to see the windows. Am I doing something wrong?

Matias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171211/58122b8c/attachment.html>

Reply by email

Mattias Gaertner
to Matias Vara
Show quoted text 9 lines
Hello, in Lazarus 1.6.2 I was using the following line to run qemu when I trigger "Run": {%RunCommand qemu-system-x86_64.exe -m 512 -smp 2 -drive format=raw,file=ToroHello.img} However, I am not getting the same behavior in Lazarus 1.8, instead, qemu is opened in background so I am not able to see the windows. Am I doing something wrong?

Add {%RunFlags messages+}. See here:

http://wiki.lazarus.freepascal.org/IDE_directives#Run.2FBuild_file

I will add a checkbox to the IDE dialog.

Mattias

Reply by email

Matias Vara
to Mattias Gaertner

Thanks for the answer Mattias, I have one more question, why is this behavior different in lazarus 1.6.2?

Matias

2017-12-12 11:17 GMT+01:00 Mattias Gaertner via Lazarus <

Show quoted text 28 lines
: On Mon, 11 Dec 2017 12:14:49 +0100 Matias Vara via Lazarus wrote: > Hello, in Lazarus 1.6.2 I was using the following line to run qemu when I > trigger "Run": > > {%RunCommand qemu-system-x86_64.exe -m 512 -smp 2 -drive > format=raw,file=ToroHello.img} > > However, I am not getting the same behavior in Lazarus 1.8, instead, qemu > is opened in background so I am not able to see the windows. > Am I doing something wrong? Add {%RunFlags messages+}. See here: http://wiki.lazarus.freepascal.org/IDE_directives#Run.2FBuild_file I will add a checkbox to the IDE dialog. Mattias -- _______________________________________________ Lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171212/f522a71d/attachment.html>

Reply by email

Mattias Gaertner
to Matias Vara
Thanks for the answer Mattias, I have one more question, why is this behavior different in lazarus 1.6.2?

As far as I remember 1.6 always opened the Console under Windows, which was unpleasant for starting GUIs and inconsistent with the other platforms.

Mattias

Reply by email

Matias Vara
to Mattias Gaertner

Hello Mattias,

I added:

{%RunFlags BUILD- Messages+}

However, the process is still in background so I cannot see the window.

Matias

2017-12-12 13:06 GMT+01:00 Mattias Gaertner via Lazarus <

Show quoted text 20 lines
: On Tue, 12 Dec 2017 12:29:59 +0100 Matias Vara via Lazarus wrote: > Thanks for the answer Mattias, I have one more question, why is this > behavior different in lazarus 1.6.2? As far as I remember 1.6 always opened the Console under Windows, which was unpleasant for starting GUIs and inconsistent with the other platforms. Mattias -- _______________________________________________ Lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171212/7af2b777/attachment.html>

Reply by email

Matias Vara
to Mattias Gaertner

Hello Mattias and thanks for your help. I have still to report the bug. In the meantime, I fixed the issue by adding:

ToolOptions.HideWindow := false;

in the function TExternalTools.OnRunExternalTool(). It is however, a work-around.
It would help if there were a checkbox to set HideWindow.

Regards, Matias.

2017-12-12 21:21 GMT+01:00 Mattias Gaertner via Lazarus <

Show quoted text 23 lines
: On Tue, 12 Dec 2017 21:06:31 +0100 Matias Vara via Lazarus wrote: > Hello Mattias, > > I added: > > {%RunFlags BUILD- Messages+} > > However, the process is still in background so I cannot see the window. Please create a bug report. Mattias -- _______________________________________________ Lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171227/9e6e717d/attachment-0001.html>

Reply by email