IDE Communicator Question

I’m currently working on an app that allows Xojo developers to pair program with a local LLM. It’s specifically for Xojo developers and will/does integrate with the Xojo IDE.

I’m currently experimenting with IDE Communication over IPC.

What happens if a user has multiple workspaces open in an IDE (i.e. two projects)? Is there a way to “target” which workspace commands over IPC apply to?

1 Like

not that I know of. analyze only the front project.
IDE communicator commands are still very limited.
can’t get json data back if you hit “run” in the ide, only “analyze” works…

Most IDE Communicator commands will be applied to the active window.

You can search the project you want to target using commands like WindowCount, WindowTitle and SelectWindow. And then you can send commands to the selected window.

Just in case, you can double check if you’re targeting the correct project with the ProjectShellPath command.

You can also open projects using OpenFile and close them with CloseProject.

Have fun!

2 Likes

You can if you control the launching of the IDE as well. There is an environment variable that you can set that controls the IPC path that the IDE will use when it launches.

NOTE: Since I’ve also been playing with this in APT as well, I suggest connecting to the IDE, doing what you need and then closing the connection so if the user has other tools that use the IDE communicator they won’t get weird responses or have the socket tied up by your app.

Also, keep in mind that if the user presses the Build button, your app will get data sent to it while the build process progresses. This is probably a bug, but I don’t care enough to file a report.

3 Likes