-
Notifications
You must be signed in to change notification settings - Fork 7.6k
JS Code Hint UI stops inserting hints on enter key #5412
Comments
I'll note also that I've seen this a few times over the past couple of days, but originally chalked it up to things I had been doing in the code hinting code. I'll bisect. |
Ditto--I ran into this once but was unable to reproduce. |
I ran into this problem a few times, too (once I got it 3 times in a row). I haven't really changed anything in the core code. |
@RaymondLim pointed out that it might be related to #5228. If so, we might just want to back that out for now. /cc @redmunds |
bisects to: 4d8924c |
For the record, the PR for that commit is #3406: "Fix for Issue 1617: Removed all references to CodeHintManager from Editor" |
Ah, interesting. It could be that there's some bad interaction between that old PR (which was recently merged) and @redmunds' changes. |
I tried to reproduce this, and found out, that it reproduced every time i was typing a little faster, and then pressed Enter. |
Not only, I got it when the dropdown showed about 2 seconds, too. But I can't really repro it... |
me too. |
Inspecting #3406, it looks like it changed Editor to dispatch an |
@njx that seems to be it. Must have been missed while merging^ totally my fault :( |
I'm going to give @WebsiteDeveloper's fix a try and see if it works for me. |
Oh, I missed the IRC chat about this--sounds like that wasn't the problem. |
Nope, just changing the event being listened to does not fix the problem for me. |
Sounds like rolling back #3406 is the right thing to do for now then given that we're at the end of the sprint. @RaymondLim could you review @dangoor's rollback PR (#5415)? |
Alright, i agree. I will try to integrate the changes cleanly at the beginning of the next sprint. |
@WebsiteDeveloper since it appears that I'm the only one that can consistently reproduce the issue, I'll be happy to test out the next iteration of the change. |
Hi guys! I was also hitting this and able to reproduce by switching editors. Actually, and in case you're still on time, the issue is the var declarations in https://github.com/adobe/brackets/pull/3406/files#diff-170376f6658e67e879f2acf1e2e2209bR622 Since everytime we enter on Moving the var declarations outside |
@jbalsas Good catch! It seems like one could even just rewrite the signatures of |
Welcome back @jbalsas, we missed you! |
Thanks! Feels good to be back! 😉 |
@RaymondLim confirmed that reverting this change fixed it. @jbalsas thanks for spotting the fix! |
I'm not entirely sure, but I have the feeling that I'm still occasionally hitting this, so maybe there's some other condition that's also leaking some listener... I'll try to see if I can pin it down more precisely. |
This appears to be a new problem in sprint 32. I see this behavior consistently if I follow the steps in #4991 using the current master b83eeee, but not using Sprint 31.
What I'm seeing is that after I've switched back and forth between the files (I use ctrl-tab on Mac to do it) while following along with the 4991 instructions, at the end pressing
enter
inserts a newline rather than the code hint.The text was updated successfully, but these errors were encountered: