鲁本图的Eclipse火星滚动 [英] Eclipse Mars Scrolling in Lubuntu

查看:93
本文介绍了鲁本图的Eclipse火星滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只需在Lubuntu 14上安装Eclipse Mars。
在控制台或编辑器中上下滚动时-我得到了一个黑色的矩形,覆盖了一些文本,或者该测试在视觉上有点扭曲(线条变得不直行)。
有人知道如何解决此问题吗?
在同一个comp的早期版本的Eclipse中没有这个功能。

Just installed Eclipse Mars on Lubuntu 14. While scrolling up and down in the console or editor - I get a kind of black rectangle covering some text, or the test is kind of twisted visually (lines become non-straight). Anyone know how to fix this? Haven't had this in previous versions of Eclipse on the same comp.

推荐答案

完全一样的事情发生了我在Lubuntu 14 Toshiba Satellite笔记本上安装Eclipse Mars。我真的很期待Eclipse年度发布火星的那天,我很失望,因为安装了5分钟而感到失望。

Exactly the same thing happened to me installing Eclipse Mars on Lubuntu 14 Toshiba Satellite notebook. I was really looking forward to the day of the Eclipse annual release of Mars and I was disappointed to be so disappointed with 5 minutes on installing.

无论如何,我可以确认一下通过导出设置环境变量SWT_GTK3 = 0确实可以解决该问题。如果打开终端并在外壳程序中键入 export SWT_GTK3 = 0,则还需要通过命令行启动Eclipse,同时保留在同一外壳程序中。如果通过桌面启动图标启动Eclipse,则Eclipse将看不到SWT_GTK3环境变量,并且问题将继续存在。这是因为Linux中的环境变量是按进程的,并且从桌面启动的应用程序在运行中的程序与终端中的shell程序在不同的程序中运行。

Anyway, I can confirm that setting environment variable SWT_GTK3=0 by way of export does circumvent the problem. If you open a terminal and type "export SWT_GTK3=0" in the shell, you will also need to start Eclipse via the command line while remaining in the same shell. If you start Eclipse via a desktop launch icon, Eclipse will not see the SWT_GTK3 environment variable and the problem will persist. This is because environment variables in Linux are per-process and an application launched from the desktop is running in a different process to a shell process in a terminal.

因此,Eclipse始终在启动计算机后看到正确的SWT_GTK3环境变量,最好是全局导出SWT_GTK3 = 0。为此,请在Lubuntu上执行以下操作:

So that Eclipse always sees the correct SWT_GTK3 environment variable after starting your machine, best you export SWT_GTK3=0 globally. To do this on Lubuntu, follow these steps:


  1. 打开终端窗口

  2. 打开文件/ etc / profile,用于以sudo进行编辑(例如sudo gedit / etc / profile)

  3. 在文件末尾添加
    export SWT_GTK3 = 0
    行。

  4. 保存文件,退出编辑器并重新启动计算机。

  5. 启动Eclipse Mars,希望您的滚动问题已解决。

  1. Open a terminal window
  2. Open the file /etc/profile for editing as sudo (e.g. sudo gedit /etc/profile)
  3. Add the line export SWT_GTK3=0 at the end of the file.
  4. Save file, quit editor and reboot your machine.
  5. Launch Eclipse Mars and hopefully your scrolling problem is fixed.

这对我有用,但与往常一样,YMMV。

This worked for me but, as always, YMMV.

btw。重新启动后,您可以打开终端窗口并输入 env命令来检查SWT-GTK3环境变量是否已导出。您应该在显示的环境变量和值列表中看到
SWT_GTK3 = 0。

btw. You can check 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 values that are displayed.

这篇关于鲁本图的Eclipse火星滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆