vmware-archive / scripted

The Scripted code editor
Eclipse Public License 1.0
1.56k stars 166 forks source link

TypeInference hint hover blink bug #185

Closed Phoscur closed 11 years ago

Phoscur commented 11 years ago

Splitting from #170

Windows 7 x64
Chrome 24
Chrome Canary

npm install -g scripted

try to get type info from hover: hover blinks in and out of sight -> unreadable leaving the mouse somewhere in the editor also produces this annoying blinking hover Seems to be chrome specific.

Testing this on another machine: bug is gone Can it really be that second Canary install interferes with this?

Phoscur commented 11 years ago

I see I should be able to fix this by moving away from chrome canary. But I'd rather have you fix it for me, at least I have an idea how: Instead of removing the hint overlay after some time(out), keep it there as long as the mouse stays on the element.

aeisenberg commented 11 years ago

I have been working on hovers over the last week. Primarily, I have been focused on the formatting of JavaScript hovers. One of the other things I have done is exactly what you said. The hovers are no longer disappearing on a timeout. Rather, they remain active as long as the mouse pointer remains on the annotation.

You can try cloning the latest from master and see if this fixes your problem. If you do, don't forget to also run npm install to get all the dependencies.

Phoscur commented 11 years ago

Now its a bigger hover with more information, but it's still blinking in an out of view. :( I don't want to uninstall chrome canary...

aeisenberg commented 11 years ago

I'll take a look at this for the 0.4 release.

aeisenberg commented 11 years ago

Just installed Chrome canary on my windows vm. I can't reproduce.

aeisenberg commented 11 years ago

Noticed that somehow this is version 23.0.1271.97. Updating now.

aeisenberg commented 11 years ago

Unfortunately, even after upgrading to 27.0.1417.2 canary still no flashing hovers bug.

aeisenberg commented 11 years ago

Maybe there is something specific about a particular file you are working in. Can you attach a file or text of a file where you are seeing this happen? Also, explain exactly where to hover.

Just to be sure we are working on the same scripted, update to the latest from master.

Phoscur commented 11 years ago

Windows 7 x64 Version 27.0.1417.2 canary Version 24.0.1312.57 m I just pulled origin master again.

It is not file specific, I tried this with multiple projects, including scripted itself. It's also not specific on the target objects for the hover, it's on every type inference hint there is. Flashing in and out of sight.

Phoscur commented 11 years ago

Well I guess you can't fix it if you can't reproduce it..

Phoscur commented 11 years ago

I'm even getting that in Iron Version 23.0.1300.0 (170000). Not in Firefox thought, nice and steady there.

aclement commented 11 years ago

I just tried on Win 7 64 bit too, canary 27.0.1418.2 - no flickering. That is running master from just now.

Phoscur commented 11 years ago

Lol now I lost Skype somehow and can't reinstall. Feels like I have to reinstall Windows... maybe I'll give Win8 a try..

Closed, as this can't be reproduced on other machines.