Scrolling Eclipse Mars in Lubuntu

Eclipse Mars has just been installed on Lubuntu 14. When I scroll up and down in the console or editor, I get a kind of black rectangle covering some text, or the test is visible (the lines become indirect). Does anyone know how to fix this? This was not the case in previous versions of Eclipse on the same computer.

+7
eclipse
source share
3 answers

Likewise, it happened to me by installing Eclipse Mars on the Lubuntu 14 Toshiba Satellite notebook. I really looked forward to the day of the annual release of Eclipse Mars, and I was disappointed that I was so disappointed with 5 minutes of installation.

In any case, I can confirm that setting the environment variable SWT_GTK3 = 0 by export bypasses the problem. If you open a terminal and enter "export SWT_GTK3 = 0" in the shell, you will also need to run Eclipse through the command line, remaining in the same shell. If you start Eclipse using the desktop launcher icon, Eclipse will not see the SWT_GTK3 environment variable, and the problem will persist. This is because environment variables in Linux are a process, and an application launched from the desktop works in another process with a shell process in the terminal.

So, Eclipse always sees the correct environment variable SWT_GTK3 after starting your machine, it is best to export SWT_GTK3 = 0 all over the world. To do this on Lubuntu, follow these steps:

  • Open a terminal window
  • Open the / etc / profile file for editing as sudo (e.g. sudo gedit / etc / profile)
  • Add the export line SWT_GTK3 = 0 at the end of the file.
  • Save the file, close the editor and restart the computer.
  • Launch Eclipse Mars and hopefully your scroll problem is fixed.

It worked for me, but, as always, YMMV.

by the way. You can verify that the SWT-GTK3 environment variable was exported after rebooting by opening a terminal window and typing the env command. You should see SWT_GTK3 = 0 in the list of environment variables and the values ​​that are displayed.

+15
source share

It seems like a new bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=469027

This also happens under Kubuntu. In any case, the workaround, at least for me, is to export the following environment variable:

SWT_GTK3 = 0

+5
source share

I solved the problem in Ubuntu 15.04 with Eclipse Mars by adding the following code to the beginning of the data in the Exec option in eclipse.desktop (/home/.local/share/applications):

Exec=env UBUNTU_MENUPROXY=0 SWT_GTK3=0 /usr/lib/jvm/... 

This way you leave your OS settings intact and only act when you run the Eclipse script.

+2
source share

All Articles