[Bug] Random tooltips when hovering over code

There are this random popup/tootlips that appear when hovering above some word in code. They more often than not have nothing to do with the actual code that is written, and seem to only check the first letters (up to the mouse cursor?) of the word you are hovering over.

(The red arrows mark where my mouse cursor is, as is doesn't show in the screenshot)

I would expect there to be either useful popups/tooltips which actually relate to the code, or no popup at all.

Seen on Ignition 8.1.18 and Ingition Edge 8.1.32

1 Like

and does the script work or is there an issue with somewhere else?

It works fine, I suppose It's just a visual thing. It's a bit annoying, though


Here is another similar post that I read recently where a work around was offered:

When the designer tooltips get annoying, they can be turned off using the script console, or the delay can be increased to retain the functionality while reducing the frequency of unwanted popups:

from javax.swing import ToolTipManager

# arbitrarilyHighNumber = 10000
# ToolTipManager.sharedInstance().initialDelay = arbitrarilyHighNumber  

# ...or disable the tooltips completely
ToolTipManager.sharedInstance().enabled = False

It's working backwards from the mouse position to the first whitespace character. As you've observed, it's not particularly good :slight_smile: But it's all we can do at the moment, because we don't have any true AST parsing of live code in the designer, so we don't have a true "token" to look for - only simple direct string matching. This works pretty okay, actually, for built-in extension function parameters and the system library - but does fall apart for "builtin" items like bool and False. It's on my list to fix this tooltip system "properly" (in some 8.3.x version, hopefully), but I might also push a smaller fix to exclude simple builtins or low-confidence matches in the meantime.

1 Like