尝试配置GIT时,Eclipse未响应 [英] Eclipse not respond when try to configure GIT

查看:113
本文介绍了尝试配置GIT时,Eclipse未响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Windows 10 Pro 64 Bit

SSD Kingston

i5-4690

Eclipse版本:ALL

工作区:空>
问题:每次我尝试配置TEAM> GIT>配置,或者我尝试导入/创建本地/远程git,eclipse冻结,直到我强制关闭任务。

我已经尝试新鲜安装(juno / mars / neon / oxygen)32/64位,带和不带安装程序,没有好结果

 ! SESSION 2017-06-27 00:39:29.113 --------------------------------------- -------- 
eclipse.buildId = 4.7.0.I20170531-2000
java.version = 1.8.0_91
java.vendor = Oracle Corporation
BootLoader常量:OS = win32,ARCH = x86_64,WS = win32,NL = it_IT
框架参数:-product org.eclipse.epp.package.java.product
命令行参数:-os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2017-06-27 00:39:50.111
!MESSAGE警告:环境变量HO我没有设置。以下目录将用于存储Git
用户全局配置并定义存储存储库的默认位置:'C:\ Users \ Enrico'。如果这是
不正确,请设置HOME环境变量并重新启动Eclipse。否则Git for Windows和
EGit可能会有不同的行为,因为它们会看到不同的配置选项。
此警告可在团队>上关闭Git>确认和警告首选项页面。
!SESSION 2017-06-27 00:41:04.510 ---------------------------------- -------------
eclipse.buildId = 4.7.0.I20170531-2000
java.version = 1.8.0_91
java.vendor = Oracle Corporation
BootLoader常量:OS = win32,ARCH = x86_64,WS = win32,NL = it_IT
框架参数:-product org.eclipse.epp.package.java.product -product org.eclipse.epp.package .java.product
命令行参数:-os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product -data file:/ C:/ Users / Enrico / workspace / - 产品org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2017-06-27 00:41:13.439
!MESSAGE警告:The未设置环境变量HOME。以下目录将用于存储Git
用户全局配置并定义存储存储库的默认位置:'C:\ Users \ Enrico'。如果这是
不正确,请设置HOME环境变量并重新启动Eclipse。否则Git for Windows和
EGit可能会有不同的行为,因为它们会看到不同的配置选项。
此警告可在团队>上关闭Git>确认和警告首选项页面。
!SESSION 2017-06-27 00:42:32.097 ---------------------------------- -------------
eclipse.buildId = 4.7.0.I20170531-2000
java.version = 1.8.0_91
java.vendor = Oracle Corporation
BootLoader常量:OS = win32,ARCH = x86_64,WS = win32,NL = it_IT
框架参数:-product org.eclipse.epp.package.java.product
命令行参数: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2017-06-27 00:42: 42.119
!MESSAGE警告:未设置环境变量HOME。以下目录将用于存储Git
用户全局配置并定义存储存储库的默认位置:'C:\ Users \ Enrico'。如果这是
不正确,请设置HOME环境变量并重新启动Eclipse。否则Git for Windows和
EGit可能会有不同的行为,因为它们会看到不同的配置选项。
此警告可在团队>上关闭Git>确认和警告首选项页面。
!SESSION 2017-06-27 00:45:05.785 ---------------------------------- -------------
eclipse.buildId = 4.7.0.I20170531-2000
java.version = 1.8.0_91
java.vendor = Oracle Corporation
BootLoader常量:OS = win32,ARCH = x86_64,WS = win32,NL = it_IT
框架参数:-product org.eclipse.epp.package.java.product -product org.eclipse.epp.package .java.product
命令行参数:-os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product -data file:/ C:/ Users / Enrico / workspace / - 产品org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2017-06-27 00:45:13.542
!MESSAGE警告:The未设置环境变量HOME。以下目录将用于存储Git
用户全局配置并定义存储存储库的默认位置:'C:\ Users \ Enrico'。如果这是
不正确,请设置HOME环境变量并重新启动Eclipse。否则Git for Windows和
EGit可能会有不同的行为,因为它们会看到不同的配置选项。
此警告可在团队>上关闭Git>确认和警告首选项页面。
!SESSION 2017-06-27 00:47:39.707 ---------------------------------- -------------
eclipse.buildId = 4.7.0.I20170531-2000
java.version = 1.8.0_91
java.vendor = Oracle Corporation
BootLoader常量:OS = win32,ARCH = x86_64,WS = win32,NL = it_IT
框架参数:-product org.eclipse.epp.package.java.product
命令行参数: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2017-06-27 00:47: 49.374
!MESSAGE警告:未设置环境变量HOME。以下目录将用于存储Git
用户全局配置并定义存储存储库的默认位置:'C:\ Users \ Enrico'。如果这是
不正确,请设置HOME环境变量并重新启动Eclipse。否则Git for Windows和
EGit可能会有不同的行为,因为它们会看到不同的配置选项。
此警告可在团队>上关闭Git>确认和警告首选项页面。

MY SOLUTION:
从USER_FOLDER(.p2 .eclipse)和PROGRAMFILES中删除所有文件夹。记住要重新启动!!!!现在所有的Eclipse都可以正常工作,并且可以使用git项目。Eclipse插件Eclipse插件检测是否使用OS的GIT可执行文件或内置GIT。因此,它使用 bash 命令。



在Windows Creators更新之前, bash 命令不存在(除非你安装了CygWin或类似的程序)。通过Windows Creators Update,添加了一个新功能 Linux Linux子系统。当首先调用 bash 命令时,它会询问是否安装此功能。



在Eclipse中修复GIT,您只需手动运行 bash 一次并安装它。您可能必须在Windows中激活开发人员模式。


Windows 10 Pro 64 Bit
SSD Kingston
i5-4690
Eclipse version: ALL
Workspace: empty
Problem: everytime i try to configure TEAM > GIT > configuration or i try to import/create local/remote git, eclipse freeze until i force to close it with task.
I have already tryed a fresh install ( juno/mars/neon/oxygen ) 32/64 bit with and without installer with no good results

!SESSION 2017-06-27 00:39:29.113 -----------------------------------------------
eclipse.buildId=4.7.0.I20170531-2000
java.version=1.8.0_91
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2017-06-27 00:39:50.111
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Enrico'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!SESSION 2017-06-27 00:41:04.510 -----------------------------------------------
eclipse.buildId=4.7.0.I20170531-2000
java.version=1.8.0_91
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT
Framework arguments:  -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product -data file:/C:/Users/Enrico/workspace/ -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2017-06-27 00:41:13.439
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Enrico'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!SESSION 2017-06-27 00:42:32.097 -----------------------------------------------
eclipse.buildId=4.7.0.I20170531-2000
java.version=1.8.0_91
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2017-06-27 00:42:42.119
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Enrico'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!SESSION 2017-06-27 00:45:05.785 -----------------------------------------------
eclipse.buildId=4.7.0.I20170531-2000
java.version=1.8.0_91
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT
Framework arguments:  -product org.eclipse.epp.package.java.product -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product -data file:/C:/Users/Enrico/workspace/ -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2017-06-27 00:45:13.542
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Enrico'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.
!SESSION 2017-06-27 00:47:39.707 -----------------------------------------------
eclipse.buildId=4.7.0.I20170531-2000
java.version=1.8.0_91
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=it_IT
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.egit.ui 2 0 2017-06-27 00:47:49.374
!MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
user global configuration and to define the default location to store repositories: 'C:\Users\Enrico'. If this is
not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
EGit might behave differently since they see different configuration options.
This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.

MY SOLUTION: "Delete all folders from USER_FOLDER ( .p2 .eclipse ) and PROGRAMFILES. Remember to reboot!!!! Now all works fine with eclipse oxygen and git project"

解决方案

The GIT plugin of Eclipse tries to detect whether to use the GIT executable of the OS, or the build-in GIT. Therefor it uses a bash command.

Before the Windows Creators Update, the bash command did not exist (unless you've installed CygWin or a similar program). With the Windows Creators Update, a new feature Windows Subsystem for Linux is added. When the bash command is first called, it asks whether to install this feature or not.

So in order to fix GIT in Eclipse, you just have to manually run bash once and install it. You may have to activate Developer Mode in Windows.

这篇关于尝试配置GIT时,Eclipse未响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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