Sign in Join

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

Mailing lists / lazarus / 2015-02

Controlling Lazarus from external application

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

Does Lazarus IDE implement an IPC server or something similar so it can be controlled (or rather commanded) to do something from an external tool or application?

For example:
I mostly run my unit tests via a GUI Test Runner (like FPTest) which reports the test failure or error, but also reports the unit and line number information. I would like to be able to double click on that information, then magically my running Lazarus IDE instance would open that unit and place the edit cursor on the correct line number. Programming is all about convenience and saving time. ;-)

As I'm currently working on a project that uses FPCUnit, I don't mind extending Lazarus's GUI Test Runner to have some of the functionality that FPTest's GUI Runner has too.

But first I need to know if the IDE could be commanded in this way - or if it at least has an IPC server implemented.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Mattias Gaertner
to Graeme Geldenhuys
Show quoted text 5 lines
Hi, Does Lazarus IDE implement an IPC server or something similar so it can be controlled (or rather commanded) to do something from an external tool or application?

No.
But you can write a package for that with a few lines of code using simpleipc.

Show quoted text 14 lines
For example: I mostly run my unit tests via a GUI Test Runner (like FPTest) which reports the test failure or error, but also reports the unit and line number information. I would like to be able to double click on that information, then magically my running Lazarus IDE instance would open that unit and place the edit cursor on the correct line number. Programming is all about convenience and saving time. ;-) As I'm currently working on a project that uses FPCUnit, I don't mind extending Lazarus's GUI Test Runner to have some of the functionality that FPTest's GUI Runner has too. But first I need to know if the IDE could be commanded in this way - or if it at least has an IPC server implemented.

Mattias

Reply by email