Community
Participate
Working Groups
AS IS: On RHEL 5.8 64 bit Eclipse 3.8.0 has no tooltips on the main toolbar. Most likely they are not available at all (I have no access to my RHEL desktop now). Last time we saw tooltips were 3.7.2 release :-( TO BE: There are tooltips on newer Linux distributions which were using newer GTK libraries (for example Ubuntu 12.04 is just fine). It would be nice however if the tooltips would be also shown on such ancient releases as RHEL 5.8. Not sure what caused this regression. For the Tooltip class, there were few commits: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/log/bundles/org.eclipse.swt/Eclipse%20SWT/gtk/org/eclipse/swt/widgets/ToolTip.java and root causes could be those changes: bug 369149, bug 369150 and bug 364760. Of course it could be also caused by the shift to the GTK3 stack (see work in the bug 340067).
(In reply to comment #0) > AS IS: > On RHEL 5.8 64 bit Eclipse 3.8.0 has no tooltips on the main toolbar. What is the GTK version on it?
(In reply to comment #1) > What is the GTK version on it? $ rpm -q gtk2 gtk2-2.10.4-21.el5_7.7
$rpm -q cairo cairo-1.2.4-5.el5
Correction: there are no tooltips for toolbar buttons only (both editor/view). There ARE tooltips for the minimize/maximize/close view/editor buttons and also for the CTabFolder (e.e. mouse hover over Package Explorer view title shows "Workspace" tooltip). Also ther is tooltip over the problems view description area ("x problems").
Just confirmed that the tooltips are *working* on RHEL 6.2: rpm -q glibc pango cairo gtk2 glibc-2.12-1.47.el6.x86_64 pango-1.28.1-3.el6_0.5.x86_64 cairo-1.8.8-3.1.el6.x86_64 gtk2-2.18.9-6.el6.x86_64 Here are our 5.8 versions where tooltips are *not* working: rpm -q glibc pango cairo gtk2 glibc-2.5-81 pango-1.14.9-8.el5_7.3 cairo-1.2.4-5.el5 gtk2-2.10.4-21.el5_7.7 I've also played a bit with Tooltip/Shell classes and tried to revert related commits / changes on 3.8 branch but with no luck. I guess I needed also to revert native bits in the OS class/native code.
Created attachment 219182 [details] Example project I've attached a small example project derived from http://git.eclipse.org/c/platform/eclipse.platform.swt.git/plain/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet18.java (I've just set the extra tooltips on toolItem's). On Centos 5.8 (should match our RHEL 5.8) if you hover with the mouse over the text items, no tooltips are shown. On Ubuntu 12.04 they are working fine.
@Anatoly: please see the attached Eclipse project. Thank you.
Ok, thanks. I'll take a look and let you know. Regards, Anatoly
To: Andrey Loskutov I have installed Red Hat 5.8 (as virtual machine). You can take a look at system stats: http://oi49.tinypic.com/34ybfvl.jpg When I am running the Snippet you gave me I have this output: http://oi47.tinypic.com/2vsj1it.jpg (When I hover on any button, Tooltip appear) If the problem you are having is connected with the Tooltip is not being visible when you hover on button, as you might see, unfortunately I am not able to reproduce the issue you are having. Thus, I could say that probably the problem is not in SWT code. If I misunderstood the issue, please let me know, I'll take a look again. Regards, Anatoly
(In reply to comment #9) > If the problem you are having is connected with the Tooltip is not being > visible when you hover on button, as you might see, unfortunately I am not able > to reproduce the issue you are having. Thanks Anatoly, this is *very* interesting. Which SWT version/Eclipse version have you tried? I've tried stock 3.8 classic 64 bit GTK2 package (eclipse-SDK-3.8-linux-gtk-x86_64.tar.gz) from [1] on both our office 5.8 RHEL and stock CentOS 5.8, and in both I was not able to see tooltips. > Thus, I could say that probably the > problem is not in SWT code. We first saw the problem with SWT on Eclipse 3.8.0, Eclipse 3.7.2 has no problems on same system. [1] http://download.eclipse.org/eclipse/downloads/drops/R-3.8-201206081200/
Hey Andrey, Thank you for reminding me, I totally forgot to include this image: http://oi49.tinypic.com/9aa8vq.jpg As you might see I am using Eclipse 3.8 classic and it works fine for me. Regards, Anatoly
In addition: I am on 64-bit RHEL. eclipse-SDK-3.8-linux-gtk-x86_64.tar.gz -> is the exact file that I used.
(In reply to comment #12) > I am on 64-bit RHEL. > eclipse-SDK-3.8-linux-gtk-x86_64.tar.gz -> is the exact file that I used. I'm stumped now. It is not that I'm alone - none of our devs tried 3.8.0 Eclipse can see tooltips, so it can't be just my local issue. Also "stock" CentOs in the VM has no tooltips, so I can't dream. @Anatoly - just paranoia - do you use KDE as desktop, or Gnome? We are using KDE. Do you have something special settings/extra packages on your RHEL? Any idea?
@Andrey - this is not a paranoia, this is actually very reasonable question, because KDE and Gnome has some differences. For example you cannot draw on KDE's root window, but you can draw on Gnome's (even considering that it is bad practice). I was testing on Gnome, as I don't usually use KDE. If it is Gnome-KDE related issue it will be hard for me to say what the problem is, as there could be something very "dekstop" specific. Anyways, tomorrow I'll set up KDE on my Virtual Machine, and I'll try running Snippet again. I will let you know how it goes. Regards, Anatoly
(In reply to comment #14) > I was testing on Gnome, as I don't usually use KDE. If it is Gnome-KDE related > issue it will be hard for me to say what the problem is, as there could be > something very "dekstop" specific. I've just installed Gnome inside my CentOS VM and ... nothing changed. I still can't see tooltips for editor/view buttons, only for view/editor titles etc. What is specific for the Toolbar's items? Why only those can't show tooltips, while other widgets seem to work just fine? > Anyways, tomorrow I'll set up KDE on my Virtual Machine, and I'll try running > Snippet again. > > I will let you know how it goes. Thank you very much.
To: Andrey Loskutov I have tested Tooltip issue in KDE. Take a look here: http://oi46.tinypic.com/2i9qi9z.jpg (sorry for quality of photo, it is hard to take snapshot of Tooltip :) ) As you might see, there are Tooltips for me in KDE too. Thus, I am totally out of ideas why this particular feature does not work for you. I don't have any plugins in my Eclipse, I just installed fresh version specially for this case. Also, I can't say what exactly is so specific for Toolbar. Toolbar belongs to widget group the same as Tooltip and Shell. Of course implementation is different,but again, considering that this works for my Virtual Machine, I am not 100% sure that problem is in SWT code. First I thought maybe there is some wrong GTK_VERSION guard, but its not. I have asked one of my co-workers what else to try regarding this issue, and he suggested that maybe you should try this: Plan A: a. Open terminal run 'export GDK_NATIVE_WINDOWS=1' b. Try running eclipse from the same Terminal Plan B: Open terminal, go to eclispe folder run: ./eclipse -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false -Dorg.eclipse.swt.internal.gtk.useCairo=false This is probably the only thing I can advice you in this situation, if it does not work, I don't know what else to add. Regards, Anatoly
To: Andrey Loskutov You could also try enabling/disabling accessibility, maybe that could help.
(In reply to comment #16) > I don't have any plugins in my Eclipse, I just installed fresh version > specially for this case. Same. I even installed CentOS in the VM from scratch - no changes - no tooltips on toolbars. > Also, I can't say what exactly is so specific for Toolbar. Toolbar belongs to > widget group the same as Tooltip and Shell. Of course implementation is > different,but again, considering that this works for my Virtual Machine, I am > not 100% sure that problem is in SWT code. First I thought maybe there is some > wrong GTK_VERSION guard, but its not. Obviously the problem starts to appear for us with the new Eclipse/SWT version (3.8). 3.7.2 works in same environment, so it must be SWT related. > Plan A: > > a. Open terminal run 'export GDK_NATIVE_WINDOWS=1' > b. Try running eclipse from the same Terminal No changes. > Plan B: > > Open terminal, go to eclispe folder run: > > ./eclipse -Dorg.eclipse.swt.internal.gtk.cairoGraphics=false > -Dorg.eclipse.swt.internal.gtk.useCairo=false No changes. > This is probably the only thing I can advice you in this situation, if it > does not work, I don't know what else to add. I see. Just out of curiosity: which VM are you using to run RHEL 5.8, and which graphic card driver is used for it? I'm using Virtual Box 4.1.18 with guest additions on 64 bit Ubuntu. I've tried both with/without 3D acceleration, no changes. > You could also try enabling/disabling accessibility, maybe that could help. It was disabled, I've enabled it but didn't show any changes.
I see this on CentOS 5.8 and some other developers on RHEL 5.6 and RHEL 5.8 see it too. I'm running within VMWare Fusion 4.03 on MacOS X. The other developers are running on a native installation.
This bug has already been fixed in 4.2.1/3.8.1 and 4.3. The changes for bug#384725 fixed it. Anatoly, are you testing with the latest code from master? That is probably why we cannot reproduce it. *** This bug has been marked as a duplicate of bug 384725 ***
Silenio, yeah I downloaded it after the bug you pointed out was fixed, so probably this explains everything. Thanks for your response. Regards, Anatoly
(In reply to comment #21) > Silenio, yeah I downloaded it after the bug you pointed out was fixed, so > probably this explains everything. > > Thanks for your response. > > Regards, > > Anatoly @Anatoly: so you were NOT testing 3.8.0, but some of maintenance builds of 3.8.1?
Just verified that the latest available 3.8.1 maintenance build for Linux gtk2-64 (http://download.eclipse.org/eclipse/downloads/drops/M20120726-1000/download.php?dropFile=eclipse-SDK-M20120726-1000-linux-gtk-x86_64.tar.gz) still has no tooltips on stock CentOS 5.8. Also please notice, that bug 384725 was open for Ubuntu 12.04, while I personally never ever seen ANY tooltip problems on exactly same Ubuntu version with any of 3.7/3.8 builds. So as the issue still remains, I think this is most likely NOT a duplicate of the bug 384725.
*** Bug 386494 has been marked as a duplicate of this bug. ***
Sorry, there is no maintenance build yet which contains this fix. Even M20120802-1000 will not have it. Only 3.8 maintenance builds with SWT version>=3834 will have it. Please try a 4.3 build or wait until next week (Thursday) for a new maintenance build. *** This bug has been marked as a duplicate of bug 384725 ***
Andrey I was using 3.8.0 Last revised June 5 2012. For some reason I thought that patch was pushed earlier than that. But you are actually right, I should have the same issue.
(In reply to comment #25) > Sorry, there is no maintenance build yet which contains this fix. Even > M20120802-1000 will not have it. Only 3.8 maintenance builds with SWT > version>=3834 will have it. > > Please try a 4.3 build or wait until next week (Thursday) for a new > maintenance build. > > *** This bug has been marked as a duplicate of bug 384725 *** Tested with latest available 4.3 build - it works, at lest on CentOS 5.8 (and I hope on RHEL too). Thanks. BTW, why is there such a delay between commits and deployment as a build? Fix was committed on 2012-07-17, and will NOT be even in 2012-08-02?
The truth is: we have not been able to do a build submission for 4.2.1 and 3.8.1 because there has not been many committers around due to summer vacations and other constraints.