Turn off GUI warnings after GUI has been enabled?

The gui tracer and the gui profiler are great! But when I use it, when I load a file with syntax errors, I now get a UI popup. This pulls focus out of my editor and disorients me.

Is there a way to stop this from happening or re-disable the gui after using it?

noguitracer/0.

Unfortunately, that doesn’t do it. It does prevent tracing from happening in the gui, but error warning dialogs still show up in the gui.

The normal solution is of course to get rid of the errors. But yes, sometimes this popup is annoying. The thing is implemented by library(emacs/swi_prolog). One option would be to add a button to the GUI to disable it for the remainder of the session and possibly some way to disable it completely by adding something to init.pl

edit I see the behaviour is controlled by the Prolog flag message_ide. The bad luck is that that worked quite well before multi-threading was a standard feature of the IDE. Currently, the IDE is threaded while Prolog flags are thread local :frowning:

This probably still works to kill the message popup if you use this before loading the gui.

 ?- set_prolog_flag(message_ide, false).

Pushed a patch that adds a button Close and disable to the popup. Clicking that disables the popup for the remainder of the Prolog session.

2 Likes