Bug 358499

Summary: Popups like "Problem in Semantic Analysis" doesn't disappear when it should
Product: [Applications] kdevelop Reporter: David Faure <faure>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: mdemolins
Priority: NOR Keywords: release_blocker
Version First Reported In: 4.90.91   
Target Milestone: 5.0.0   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.0.0
Sentry Crash Report:

Description David Faure 2016-01-24 19:34:04 UTC
That popup remains visible when switching to another virtual desktop using a key shortcut
(in my case Alt+PageUp).


Reproducible: Always

Steps to Reproduce:
1. Type QMetaObject::inv
2. Wait until QMetaObject is underlined, click into it
3. The popup "Problem in Semantic Analysis, No type named inv in QMetaObject" appears
4. I press the shortcut to switch desktops (Alt+PageUp), the popup stays up.

With Ctrl+F1 it works, so it seems "release Ctrl" is hardcoded as a way to hide the popup
(although Alt+Tab works too).
I think focus-out should hide it too.
Comment 1 David Faure 2016-01-24 19:36:09 UTC
Also, it doesn't go away on Key_Escape. Shouldn't that hide it too?

And if I type another letter (e.g. Key_End followed by 'o' to start writing the rest of "invokeMethod"), shouldn't that hide the semantic analysis popup? Go away, I'm fixing it. Otherwise I end up with that popup plus the completion popup on top of each other, it's just too much.
Comment 2 Milian Wolff 2016-01-24 20:20:51 UTC
I can't trigger the "it doesn't hide on focus loss" issue, for me opening e.g. yakuake (f12) or alt-tabbing out of the window works. Interestingly, it doesn't hide when I switch to another editor view via ctrl + tab ;-) So there's certainly something broken in that regard.

I also agree that it should get hidden on escape. Hiding it immediately when typing should also happen, this is btw. already the case for "normal" popups we use to show non-problematic code browsing information.
Comment 3 Kevin Funk 2016-03-01 06:57:44 UTC
*** Bug 359718 has been marked as a duplicate of this bug. ***
Comment 4 Aleix Pol 2016-06-14 20:30:20 UTC
Git commit 55d59f3cfeef2639020cdd4dcd1400f916bfef3a by Aleix Pol.
Committed on 14/06/2016 at 13:25.
Pushed by apol into branch '5.0'.

Make sure the context browser is hidden when the window is deactivated

M  +1    -1    plugins/contextbrowser/browsemanager.cpp

http://commits.kde.org/kdevplatform/55d59f3cfeef2639020cdd4dcd1400f916bfef3a