Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Code hints popup dismisses prematurely #9363

Closed
adammatthewsmith opened this issue Sep 29, 2014 · 13 comments
Closed

Code hints popup dismisses prematurely #9363

adammatthewsmith opened this issue Sep 29, 2014 · 13 comments

Comments

@adammatthewsmith
Copy link

After coding in Brackets for most of the day the popups for code hints started to dismiss themselves after about 1 second. I would type, see the popup, use the arrow keys to move to the appropriate hint, and then the popup would close. I wasn't scrolling, or doing anything else (intentionally) that would send an event and close the popup.

Restarting Brackets fixed it for me.

@JeffryBooher
Copy link
Contributor

I've actually run into this a few times before as well. It would be nice to find a fix for 1.0

@peterflynn
Copy link
Member

@adammatthewsmith @JeffryBooher Does it happen with all extensions disabled (Debug > Reload Without Extensions)? Are there any errors in the console (Debug > Developer Tools, then select Console tab)? Did you see this in the 0.43 build or only on the unstable tip of the tree?

@JeffryBooher
Copy link
Contributor

This happened to me last week on Windows release 0.44 master. IIRC there were no errors in the console nor any meaningful data in the console. The problem went away after restarting brackets so I don't know if restarting without extensions will yield meaningful results. If I run into it again I'll try to debug the problem but this has happened in the past.

@adammatthewsmith
Copy link
Author

sprint 43 experimental build 0.43.0-14375 (release 2878687)
build timestamp: Tue Sep 02 2014 14:41:39 GMT-0700

I was running "Beautify", "JavaScript Globals", and "Lines of Code Counter for Javascript". Since it took quite some time for the issue to manifest, I'm not sure what was causing it, and I'd like to continue working with my extensions today I won't be able to try without the extensions. If I see it again I will check the console.

@dangoor
Copy link
Contributor

dangoor commented Oct 13, 2014

@adammatthewsmith Have you seen this again? Was there anything in the console? Any other ideas on how we could reproduce this?

@peterflynn
Copy link
Member

@adammatthewsmith (or @JeffryBooher) Another thing you can try to help us gather more info is this:

  1. Once you start seeing the problem, open _Debug > Show Developer Tools)
  2. In dev tools, open CodeHintManager.js (you can press Ctrl-O to jump to a file quickly)
  3. Find the function _endSession() and put a breakpoint in it
  4. Back in Brackets, reproduce the bug -- when the code hints list disappears, Brackets should pause at the breakpoint
  5. Go back to dev tools and take a screenshot of the Call Stack pane, then post that screenshot here

@jasonsanjose
Copy link
Member

I just hit this now and narrowed it down (using DOM breakpoints) to the find in files results panel here

$(this).trigger("click");
.

  1. When find results are open, open code hints
  2. Observe hints appear briefly, then disappear

IMHO I would call this high priority bug.

@RaymondLim
Copy link
Contributor

@jasonsanjose Nice work! I can reproduce it after collapsing one file in the Search Result panel.

@TomMalbran
Copy link
Contributor

I've been seen this issue a lot, but I never had a way to reproduce it. I just posted a PR that removes that toggle, which should fix this issue.

@dangoor
Copy link
Contributor

dangoor commented Oct 14, 2014

Tagging for 1.0 (especially given that Tom has given us a fix).

@JeffryBooher
Copy link
Contributor

Adding Fix In Progress since @TomMalbran has a solution. @jasonsanjose do you want to test this?

@redmunds
Copy link
Contributor

FYI, I only see problem with a slightly stricter version of @jasonsanjose's recipe.

@redmunds
Copy link
Contributor

Confirmed. Closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants