Recent

Author Topic: [SOLVED] Lazarus.exe -version OR -v  (Read 2059 times)

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
[SOLVED] Lazarus.exe -version OR -v
« on: March 24, 2019, 04:56:58 pm »
Isn't typing lazarus.exe -version OR lazarus.exe -v supposed to generate the version info only, then exit?

So says lazarus.exe -?

But, with version 2.0.1 r60726, this is not happening.  It just opens the application.

Same for r60613 (on another system).  Both of these are 64-bit Windows installations.

Can someone else verify that this is occurring for them or not?
« Last Edit: July 25, 2020, 12:04:03 am by ASBzone »
-ASB: https://www.BrainWaveCC.com/

Lazarus v2.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: Lazarus.exe -version OR -v
« Reply #1 on: March 24, 2019, 05:39:49 pm »
Fixed in r60763.
Please test with Lazarus trunk.
I'll put in he the merge list for 2.0.2.

Thanks for reporting.

Bart

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Lazarus.exe -version OR -v
« Reply #2 on: March 24, 2019, 06:35:57 pm »
Seems to be a long-standing bug: 1.8.2 and 1.8.4 do the same. Haven't tested 2.0.0, though ...
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: Lazarus.exe -version OR -v
« Reply #3 on: March 24, 2019, 08:52:13 pm »
Fixed in r60763.

You are very welcome.  I tested it just now, and it worked, so thank you kindly.   (v2.1.0 r60764)

Any chance that we could have an option that also outputs to console?
-ASB: https://www.BrainWaveCC.com/

Lazarus v2.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

Bart

  • Hero Member
  • *****
  • Posts: 5290
    • Bart en Mariska's Webstek
Re: Lazarus.exe -version OR -v
« Reply #4 on: March 24, 2019, 11:25:36 pm »
Any chance that we could have an option that also outputs to console?

Lazarus is build as Windows GUI program.
As such it does not have a console.
Every writeln() would trigger a runtime error (IO Error).

Bart

ASBzone

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: Lazarus.exe -version OR -v
« Reply #5 on: March 24, 2019, 11:28:08 pm »
Lazarus is build as Windows GUI program.
As such it does not have a console.
Every writeln() would trigger a runtime error (IO Error).

Bart

Ah.  Makes sense.   Thank you, sir.  I will settle for what I have now, which works.  :)
-ASB: https://www.BrainWaveCC.com/

Lazarus v2.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

 

TinyPortal © 2005-2018