Lazarus

Using the Lazarus IDE => Options => Topic started by: lucamar on June 19, 2019, 09:03:30 pm

Title: [SOLVED] Configuring External Tools on Windows
Post by: lucamar on June 19, 2019, 09:03:30 pm
On Windows (XP) I added an "External Tool" to the IDE with these settings:

  Title: Open &Terminal
  Program filename: cmd
  Parameters:
       /k
      cd "$ProjPath()"


When it didn't work I tried changing "Program filename" to
* cmd.exe
* c:\windows|\system32\cmd.exe

It kept not working, so I changed "Parameters" to a single line:
  /k cd "$ProjPath()",
tested with all three of the previous "Program filename" and still doesn't work. All it does (in any incarnation) is take the focus away of Lazarus.

Thinking it was something about cmd, I tried next adding "Open project folder" which calls
  explorer.exe "$ProjPath()"
but it didn't work either.

Please, kind folks: what am I doing wrong?

BTW, environment is Lazarus 2.0.2 under Windows XP-SP3.
Title: Re: Configuring External Tools on Windows
Post by: engkin on June 19, 2019, 11:59:21 pm
Check "Show Console"
Title: Re: Configuring External Tools on Windows
Post by: lucamar on June 20, 2019, 10:44:03 am
Thanks, engkin, that was it! Had it been a tiger I'd be eaten by now :D

About the second problem, with "explore"? Ahhhh ... I had the "Hide window" box ticked. Dunno if it's a "default" or just a "fault" (a "touchpad fault", I mean...) :-[

Anyway, lotsa thanks!
Title: Re: [SOLVED] Configuring External Tools on Windows
Post by: engkin on June 20, 2019, 06:09:48 pm
I am glad that was not a tiger. I had fallen for that "mistake" before, twice!!
Title: Re: [SOLVED] Configuring External Tools on Windows
Post by: dbannon on June 21, 2019, 07:08:16 am
Hi engkin and lucamar, assuming you don't mind, I'll add that 'trick' to -

 https://wiki.freepascal.org/IDE_tricks#Opening_a_Terminal_Windows_from_the_IDE

Being able to pop open a terminal is so useful but I left the Windows section blank last time it came up as I don't do windows ....

Davo
Title: Re: [SOLVED] Configuring External Tools on Windows
Post by: engkin on June 21, 2019, 12:24:05 pm
Please do, and thank you!
Title: Re: [SOLVED] Configuring External Tools on Windows
Post by: lucamar on June 21, 2019, 02:01:13 pm
Hi engkin and lucamar, assuming you don't mind, I'll add that 'trick' to - [...]

Sure, the more the merrier :)

But make sure to add a note about the potential "Show console" pitfall :D
Title: Re: [SOLVED] Configuring External Tools on Windows
Post by: dbannon on June 21, 2019, 11:43:23 pm
Yep, have done. I used engkin's image.

I should also make sure its valid advice even on Win10 too......

Davo
Title: Re: [SOLVED] Configuring External Tools on Windows
Post by: lucamar on June 22, 2019, 02:02:00 am
I should also make sure its valid advice even on Win10 too......

Someone with Windows 10 could try to see what is needed to launch PowerShell ... and bash! if the Linux thing is installed.

Just saying :-[  :D
TinyPortal © 2005-2018