Page 1 of 1

How to connect external tool to message window

Posted: 5 Jul 2023 20:09
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?

Re: How to connect external tool to message window

Posted: 6 Jul 2023 13:09
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?

Re: How to connect external tool to message window

Posted: 7 Jul 2023 20:12
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

Re: How to connect external tool to message window

Posted: 10 Jul 2023 9:09
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 57350 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.

Re: How to connect external tool to message window

Posted: 15 Jul 2023 15:53
by noahross
Thanks. That's what I'm doing. Any way to use the make facility in the VDE?

Re: How to connect external tool to message window

Posted: 31 Jul 2023 8:39
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.