Discussions related to Visual Prolog
noahross
Posts: 3
Joined: 3 Apr 2023 17:49

How to connect external tool to message window

Unread post by noahross »

I have an external tool and I would like to feed errors into the message window so they could be resolved by point and click. Does anyone know how to do that?
User avatar
Thomas Linder Puls
VIP Member
Posts: 1401
Joined: 28 Feb 2000 0:01

Re: How to connect external tool to message window

Unread post by Thomas Linder Puls »

A few questions about the external tool:
  • Is the external tool a "command line" program?
  • Do you intend to run the it from your vip program?
  • Should all its output be written in the message window?
And about the "point and click":
  • Should the user be able to double click a line in the message window and then your program should do something based on the line that is clicked?
Regards Thomas Linder Puls
PDC
noahross
Posts: 3
Joined: 3 Apr 2023 17:49

Re: How to connect external tool to message window

Unread post by noahross »

Thanks, Thomas.
The tool is a command line tool. It produces prolog code that is part of a project and was designed to be part of a make file. The log information goes to sysout which displays in the message window. I would also like to feed the Error Window so that errors can be corrected with a point and click as they are in a .pro file. Right now I use the Tools menu to run it because I don't see makefile support in V10. I tried writing to syserr but the message window doesn't seem to look there. I would appreciate any guidance on the makefile as well.
-Noah
User avatar
Thomas Linder Puls
VIP Member
Posts: 1401
Joined: 28 Feb 2000 0:01

Re: How to connect external tool to message window

Unread post by Thomas Linder Puls »

If I understand you correctly you will like to run your tool from the IDE.

To do this you should register it under Tools -> Configure Tools ...:
Tools dialog
Tools dialog
tools.png (24.86 KiB) Viewed 51129 times
The output from the tool will come in the message window. But unfortunately we have never implemented the error jump facility you like.

I use the the following (somewhat annoying) method: I copy the lines with errors from the message window to the clipboard and then I press Shift+F2 (Go to Position on clipboard). If the error messages are in a suitable format you will be able to jump between them.
Regards Thomas Linder Puls
PDC
noahross
Posts: 3
Joined: 3 Apr 2023 17:49

Re: How to connect external tool to message window

Unread post by noahross »

Thanks. That's what I'm doing. Any way to use the make facility in the VDE?
User avatar
Thomas Linder Puls
VIP Member
Posts: 1401
Joined: 28 Feb 2000 0:01

Re: How to connect external tool to message window

Unread post by Thomas Linder Puls »

I forgot you had a follow-up question. In vip10 the only way you can use the make facility, is through the tools facility discussed above. Which means that you will have to press some tool-key before you press the build key.

Not helping you now; I can reveal that next version (10 + 1 -> vip11), will have the ability to attach pre-build pre-link and post-build scripts to the build process.
Attachments
Pre-Build.png
Pre-Build.png (54.62 KiB) Viewed 51033 times
Regards Thomas Linder Puls
PDC
Post Reply