Eclipse git plugin egit issues and fixes when submitting on Linux

Source: Internet
Author: User

Note: The issue that is described in this article only appears in specific versions of Eclipse on Linux.

I used eclipse on windows7 all the time, and it was very enjoyable. Recently, for some reason, I need to switch to Linux, and I chose Fedora for the Redhat department (this article should have nothing to do with a specific release, because the official Eclipse Pack Linux only distinguishes between 32-bit and 64-bit), compared to Windows, The interface is a little bit ugly, the reaction speed is a bit slow, but not bad ... I found a big problem when I was making a egit submission.

For this problem, began to endure a period of time (this time with eclipse time is not much), and then really feel that this is not the way, so the internet finally found a "solution" approach, the search for this method is more tortuous, here to record, I hope to have the same problem to help people.

0, problem description

The use of egit know that in the submission of the time will be a modified list of files for you to choose to submit, but I at the time of submission only showed the number of files and the selection box, and did not see the file name! At first I thought I was using a theme or some other setting (I used a third-party color scheme), and then I tried and even downloaded the official version of the test (I'm using a spring-customized STS) to finalize ———— It really is the cause of Eclipse's own.

And at the same time, I found out that Eclipse's dark theme menu bar couldn't even be seen.

1. Find a solution

Confirm is not my own problem, I will search the Internet to find, see if there are people have encountered this problem, if there is a solution is better, but the result is in Baidu (not Google, you understand) on the No solution: (.

Then I went to the StackOverflow to find, sure enough finally found, some people have encountered this problem, and described quite clearly, I also know that only in a specific version of the problem will occur, but also someone gave a solution to the link.

Eclipse Luna file names not shown in GIT Commit changes dialogue

There is a link to the Eclipse community, which is where people talk about the problem:

https://www.eclipse.org/forums/index.php/t/796457/

In the end, someone gave a solution.

2. Solve the problem

The solution given is

Swt_gtk3=0 Eclipse

I didn't understand it at first, and then I knew it, and what he said more clearly was: Add Eclipse's Start command to path and start with that command.

Accordingly, corresponding to the STS I am using (the startup command is named STS), then it should be started like this:

Swt_gtk3=0 STS

Really good, the interface is a little different after the start:

The menu bar can see clearly there is no, but there is still a little bad place, to compare:

is the effect before, the thing after the effect, a little ugly feeling.

The most critical question is when git commits the file name will not be displayed, these ugly problems are secondary, the test of a, sure enough to show out:

But at the same time also found another problem, that is the button on the problem is not clear, to point up after only reluctantly see what is it,

3. Long-term approach

In the previous blog, I said the way to add the program to the menu, for example, Eclipse, the command now started changed, it seems necessary to update the file, but to modify the start command in the file to find the problem: The original configuration file is "xxx=xxx" form, Our new string also has this form, there will be formatting problems, after the configuration menu items are gone.

It seems to be a different way, I think, write a script, start eclipse with a script, and then configure the menu item configuration file for this script, experiment with a, feasible, script content is:

#!/usr/bin/bashswt_gtk3=0./sts

Put the script (start_sts.sh) in the STS installation directory, modify the corresponding menu item configuration,

exec=/opt/sts-3.7.0.release/start_sts.sh%u

In this way, although the interface is more ugly, but also can be used AH.

4, the new version has solved this problem

Recently, Eclipse released a new version (Mars.1, Mars sr1,4.5.1), Immediately after the STS also released corresponding 3.7.1, download down, test a bit, the front of the problem is gone, the direct egit submit will show the filename, while the button is Windows7 style, the button on the text can also be seen very clearly.

But still a little bit, that is, the text of the menu bar is still not clear, but also hope to continue to improve AH.

Attached to STS-3.7.1:

Download Selection page

Windows-32 bit windows-64 bit

Linux-32 bit linux-64 bit

Mac

5. Finally, say a few words

Although many people in Linux use the command line for git operation, I also use, really good, but sometimes the graphical interface is good, especially used to the Windows Eclipse Egit plug-in, the consistency of operation is still very much needed.

For the said problem, if you can use the latest version of the best use of the latest version, after all, the interface a little more beautiful, perhaps there are other performance improvements, who knows.

I hope you will make more comments.

enjoy!!!

Eclipse git plugin egit issues and fixes when submitting on Linux

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.