Recent

Author Topic: Command-line args are not passed now?  (Read 577 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2574
    • UVviewsoft
Command-line args are not passed now?
« on: May 14, 2025, 07:44:02 pm »
Original bug report for macOS Monterrey:
https://github.com/Alexey-T/CudaText/issues/5958
I ask someone who has Mac to check it, on simple-primitive app. App can show cmd-line args in the listbox. On recent Cocoa WS version, app don't get cmd-line args!

If noone can check it here, I will ask the topic-starter of CudaText page.

Nimbus

  • Jr. Member
  • **
  • Posts: 57
Re: Command-line args are not passed now?
« Reply #1 on: May 14, 2025, 08:15:22 pm »
Hi Alex,

This works for me.
macOS Sequoia 15.4.1 / aarch64, FPC 3.3.1, Lazarus 4.1.

AlexTP

  • Hero Member
  • *****
  • Posts: 2574
    • UVviewsoft
Re: Command-line args are not passed now?
« Reply #2 on: May 14, 2025, 09:33:01 pm »
Nimbus, you have older Lazarus 4.1, I have Lazarus from Git 'main' from week-two ago.

Nimbus

  • Jr. Member
  • **
  • Posts: 57
Re: Command-line args are not passed now?
« Reply #3 on: May 14, 2025, 09:36:35 pm »
I can build from main and check again if that helps?

Upd - built both FPC and Lazarus from trunk, still works the same for me.

Upd 2 - Seems like it works if invoked from the terminal, but not if "Open With" (no params besides the executable path in this case).

Lazarus 4.99 (rev main_4_99-1935-g4156a98ab6) FPC 3.3.1 aarch64-darwin-cocoa
Free Pascal Compiler version 3.3.1-17895-g3c5b049f6b [2025/05/14] for aarch64
« Last Edit: May 14, 2025, 10:46:35 pm by Nimbus »

AlexTP

  • Hero Member
  • *****
  • Posts: 2574
    • UVviewsoft
Re: Command-line args are not passed now?
« Reply #4 on: May 14, 2025, 11:10:52 pm »
Yes, it don't work with 'Open with'. I posted the bugreport
https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/41641

 

TinyPortal © 2005-2018