<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 26 Jun 2018, at 23:32, Graham Heath wrote:</p>
</div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">I've been using a tooltip based linter for a while, and recently<br>
occationally the tooltips seem to be sticking around. Has anything changed<br>
with that API, intentionally or otherwise?<br>
<br>
Is there a way to clear these tips without relaunching the app?</p>
</blockquote></div>
<div style="white-space:normal">
<p dir="auto">They should normally disappear on one of these conditions:</p>
<ul>
<li>The user press a mouse button</li>
<li>The user press a key</li>
<li>The user uses the scroll wheel</li>
<li>TextMate’s active window changes</li>
<li>TextMate becomes inactive (i.e. focus switch to another application)</li>
</ul>
<p dir="auto">Nothing has changed with this code, but maybe you upgraded to 10.13 beta and there is an issue?</p>
<p dir="auto">Can you check if they also persist even if you open a new window in TextMate and/or switch to another application?</p>
<p dir="auto">If they do, the most likely reason I can think of is that an internal exception is thrown that breaks the event loop responsible for dismissing the tool tip.</p>
<p dir="auto">To monitor if an exception is thrown, try run this in a terminal (it should show log output from TextMate):</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">% sudo log config --mode "private_data:on"
% log stream --level info --predicate 'senderImagePath ENDSWITH "TextMate" OR (processImagePath ENDSWITH "TextMate" AND messageType == 16)'
</code></pre>
</div>
</div>
</body>
</html>