Using GPS as external editor for AdaMULTI

222 Views Asked by At

I'm trying to use GPS (version 19.1) as an external editor for Greenhills AdaMULTI.

I entered -P<myproject.gpr> +%LINE %FILE0 %FILES into the "command line arguments" and also the correct path to GPS for "AdaMULTI Other Editor Configuration".

So far this works as expected, i.e. when pressing CTRL+E in the AdaMULTI Project Manager GPS opens with the file to be edited. Also, when a bug is encountered while compiling GPS opens at the proper line and file.

But ... when configured this way, always a new instance of GPS is opened, which is some kind of annoying because you'll have several instances running all with a single file opened after a while. Is there a way (option, environment variable or whatever) to tell GPS to use an already running instance?

I have read both the AdaMULTI documentation and GPS User'S Guide to find anything relevant, but to no avail.

2

There are 2 best solutions below

1
On

I wonder whether you could treat the GPS system as "running on a remote server", see GPS documentation chapter 14, Using GPS for Remote Development, where the "remote" server is in fact the local machine.

1
On

you can write some Python plugin for GPS to watch some file for changes, then read a "command" from it to open a file at a given position. Or some other kind of IPC.

What OS do you use? Windows?