Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Newbie: EGit hangs eclipse IDE(The whole eclipse IDE hangs when I try to create a new Git repository)
Newbie: EGit hangs eclipse IDE [message #661671] Fri, 25 March 2011 23:25 Go to next message
Andrea Mazzario is currently offline Andrea Mazzario
Messages: 10
Registered: July 2009
Junior Member
I am trying to start using EGit.
I have Windows 7 32 bits with Java SDK 1.6.0_24.
I have freshly installed eclipse-java-helios-SR2-win32, and I have installed EGit from the http://download.eclipse.org/egit/updates-nightly site. I have installed:
Eclipse EGit 0.12.0.201103251413
EGit Mylyn 0.12.0.201103251413
Eclipse JGit 0.12.0.201103251413
I then try to follow the tutorial to Create a Repository for the HelloWorld project, but when I click on the "Create Repository" button the whole IDE hangs(displays Not Responding in the windows title bars) until I manually kill it.
I tried also with EGit version 0.11.3, same result.
Actually, the eclipse IDE hangs also if I try to open the Preferences | Team | Git | Configuration page, or if I try to clone a remote EGit repository (git://git.eclipse.org/gitroot/ecf/org.eclipse.ecf.git).

Has anybody encountered a similar problem? Am I doing anything wrong in the way I install EGit???
Thanks in advance for any suggestion.

UPDATE:
I found the cause of the problem: I have cygwin\bin in the path, but I only installed the eclipse version of Git, and this situation breaks org.eclipse.jgit.util.FS_Win32.discoverGitPrefix() quite badly. The funny thing is that the developer suspected this to happen, as indicated by the comment he/she wrote:
// This isn't likely to work, if bash is in $PATH, git should
// also be in $PATH. But its worth trying.

[Updated on: Sat, 26 March 2011 02:42]

Report message to a moderator

Re: Newbie: EGit hangs eclipse IDE [message #661776 is a reply to message #661671] Sun, 27 March 2011 18:28 Go to previous messageGo to next message
Simon Staeheli is currently offline Simon Staeheli
Messages: 6
Registered: March 2011
Junior Member
Wuoh great. I'm looking for about 3h after a solution for this problem. After removing the cygwin paths from PATH everything works. But how can I use Cygwin parallel?
Re: Newbie: EGit hangs eclipse IDE [message #661813 is a reply to message #661776] Mon, 28 March 2011 05:47 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin Rosenberg
Messages: 324
Registered: July 2009
Senior Member
On 2011-03-27 20.28, Simon Staeheli wrote:
> Wuoh great. I'm looking for about 3h after a solution for this problem.
> After removing the cygwin paths from PATH everything works. But how can
> I use Cygwin parallel?

Cygwin.bat sets PATH for you. That is how most people use it, I guess.

I have tested this code with cygwin in PATH and don't see the problem,
however a patch has been posted that allows you to set the git prefix
manually, thus avoiding the process that hangs.

http://egit.eclipse.org/r/#change,2939

-- robin
Re: Newbie: EGit hangs eclipse IDE [message #661863 is a reply to message #661813] Mon, 28 March 2011 10:47 Go to previous messageGo to next message
Simon Staeheli is currently offline Simon Staeheli
Messages: 6
Registered: March 2011
Junior Member
Hi Robin

Thanks for answering, but I can't follow you. How can I avoid the crash? By starting Eclipse with "-Djgit.gitprefix=PATH"?! Path to where?

When will this patch being released?


Btw. it's "c:\cygwin\bin\" in %PATH% that makes eGit crash.

simon

[Updated on: Mon, 28 March 2011 10:48]

Report message to a moderator

Re: Newbie: EGit hangs eclipse IDE [message #662012 is a reply to message #661863] Mon, 28 March 2011 21:05 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin Rosenberg
Messages: 324
Registered: July 2009
Senior Member
On 2011-03-28 12.47, Simon Staeheli wrote:
> Hi Robin
>
> Thanks for answering, but I can't follow you. How can I avoid the crash?
> By starting Eclipse with "-Djgit.gitprefix=PATH"?! Path to where?
> When will this patch being released?

The path to where the directory obove the one that contains git.exe (if
any). If C Git is not installed you can point it to basically any
directory. JGit is looking for ${jgit.prefix}/etc/gitconfig, which may
or may not be present. Unix users rarely use it, but Git for Windows
puts some values there at installation time, which is the reason we
want to know where the system-wide configuration file is.

I guess it will be merged soon. Look at Gerrit. When it's been merged
the next nightly build will contain the fix.
http://egit.eclipse.org/r/#change,2939

>
>
> Btw. it's "c:\cygwin\bin\" in %PATH% that makes eGit crash.
>
> simon

Can you try this command from a cmd window:

bash --login -c "which git"

That might help us figuring why EGit hangs for you.

-- robin
Re: Newbie: EGit hangs eclipse IDE [message #662054 is a reply to message #662012] Tue, 29 March 2011 06:43 Go to previous messageGo to next message
Simon Staeheli is currently offline Simon Staeheli
Messages: 6
Registered: March 2011
Junior Member
ah cool thx. that makes it more clear..

C:\Users\xyz>bash --login -c "which git" which: no git in (/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Windows/system32:/ cyg drive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/ c/Windows/System32/W indowsPowerShell/v1.0/:/cygdrive/c/Program Files/Intel/WiFi/bin/:/cygdrive/c/Pro gram Files/Common Files/Intel/WirelessCommon/:/cygdrive/c/Program Files/ATI Tech nologies/ATI.ACE/Core-Static:/usr/local/bin/:/usr/bin:/cygdr ive/c/Program Files/ QuickTime/QTSystem/:/cygdrive/c/Program Files/OpenVPN/bin)
Re: Newbie: EGit hangs eclipse IDE [message #662194 is a reply to message #662012] Tue, 29 March 2011 16:07 Go to previous messageGo to next message
John McCabe is currently offline John McCabe
Messages: 179
Registered: July 2009
Senior Member
On Mon, 28 Mar 2011 23:05:37 +0200, Robin Rosenberg
<robin.rosenberg@dewire.com> wrote:

>On 2011-03-28 12.47, Simon Staeheli wrote:
>> Hi Robin
>>
>> Thanks for answering, but I can't follow you. How can I avoid the crash?
>> By starting Eclipse with "-Djgit.gitprefix=PATH"?! Path to where?
>> When will this patch being released?
>
>The path to where the directory obove the one that contains git.exe (if
>any). If C Git is not installed you can point it to basically any
>directory. JGit is looking for ${jgit.prefix}/etc/gitconfig, which may
>or may not be present. Unix users rarely use it, but Git for Windows
>puts some values there at installation time, which is the reason we
>want to know where the system-wide configuration file is.
>
>I guess it will be merged soon. Look at Gerrit. When it's been merged
>the next nightly build will contain the fix.
>http://egit.eclipse.org/r/#change,2939

Sorry - I'm new to egit too and have exactly the same problem. I've
got round it for the moment by removing cygwin from the path when I
launch Eclipse (I uses a modified version of start.bat from the Qt
Eclipse Integration package to do that).

I guess I was wondering when the next 'proper' release in the P2
repository will be; I'm not a huge fan of using nightly builds :-)
Re: Newbie: EGit hangs eclipse IDE [message #662256 is a reply to message #662194] Tue, 29 March 2011 21:49 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin Rosenberg
Messages: 324
Registered: July 2009
Senior Member
On 2011-03-29 18.07, John McCabe wrote:
> On Mon, 28 Mar 2011 23:05:37 +0200, Robin Rosenberg
> <robin.rosenberg@dewire.com> wrote:
>
>> On 2011-03-28 12.47, Simon Staeheli wrote:
>>> Hi Robin
>>>
>>> Thanks for answering, but I can't follow you. How can I avoid the crash?
>>> By starting Eclipse with "-Djgit.gitprefix=PATH"?! Path to where?
>>> When will this patch being released?
>>
>> The path to where the directory obove the one that contains git.exe (if
>> any). If C Git is not installed you can point it to basically any
>> directory. JGit is looking for ${jgit.prefix}/etc/gitconfig, which may
>> or may not be present. Unix users rarely use it, but Git for Windows
>> puts some values there at installation time, which is the reason we
>> want to know where the system-wide configuration file is.
>>
>> I guess it will be merged soon. Look at Gerrit. When it's been merged
>> the next nightly build will contain the fix.
>> http://egit.eclipse.org/r/#change,2939
>
> Sorry - I'm new to egit too and have exactly the same problem. I've
> got round it for the moment by removing cygwin from the path when I
> launch Eclipse (I uses a modified version of start.bat from the Qt
> Eclipse Integration package to do that).
>
> I guess I was wondering when the next 'proper' release in the P2
> repository will be; I'm not a huge fan of using nightly builds :-)

For cutting edge features you may have to. The EGit plugin is still
in incubation mode, which means it lacks features and has bugs. In
order to ship working releases someone needs to test stuff, or
bugs *will* ship. If you don't test it, who will?

So I think you should verify a nightly build and say "yes works" and
then perhaps go back to using a release. Usually the latest release
has more bugs than the nightly build, but on rare occasions they don't
work at all.

I do not think you should use all nigtly builds for your Eclipse,
because then some plugin will most certainly be broken. Pick the
ones you care about, do regular updates and report bugs. Have a
spare Eclipse with the latest working release so you can continue
working until the nigly works again. You can use the same workspace for
both Eclipse instances (but not simulatenously).

-- robin
Re: Newbie: EGit hangs eclipse IDE [message #662329 is a reply to message #662256] Wed, 30 March 2011 09:23 Go to previous messageGo to next message
John McCabe is currently offline John McCabe
Messages: 179
Registered: July 2009
Senior Member
On Tue, 29 Mar 2011 23:49:41 +0200, Robin Rosenberg
<robin.rosenberg@dewire.com> wrote:

>> Sorry - I'm new to egit too and have exactly the same problem. I've
>> got round it for the moment by removing cygwin from the path when I
>> launch Eclipse (I uses a modified version of start.bat from the Qt
>> Eclipse Integration package to do that).

>> I guess I was wondering when the next 'proper' release in the P2
>> repository will be; I'm not a huge fan of using nightly builds :-)

>For cutting edge features you may have to. The EGit plugin is still
>in incubation mode, which means it lacks features and has bugs. In
>order to ship working releases someone needs to test stuff, or
>bugs *will* ship. If you don't test it, who will?

Fair point :-)

>So I think you should verify a nightly build and say "yes works" and
>then perhaps go back to using a release. Usually the latest release
>has more bugs than the nightly build, but on rare occasions they don't
>work at all.

>I do not think you should use all nigtly builds for your Eclipse,
>because then some plugin will most certainly be broken. Pick the
>ones you care about, do regular updates and report bugs. Have a
>spare Eclipse with the latest working release so you can continue
>working until the nigly works again. You can use the same workspace for
>both Eclipse instances (but not simulatenously).

Thanks for that. I'll think about doing that; it's the sort of thing
I've done in the past but not for a while. In the meantime I'll see
how things go with my current workaround - I seldom use cygwin while
using Eclipse as our main development build system is external to
Eclipse so I might be able to manage that way for a while.
Re: Newbie: EGit hangs eclipse IDE [message #663073 is a reply to message #662012] Sun, 03 April 2011 08:49 Go to previous messageGo to next message
Simon Staeheli is currently offline Simon Staeheli
Messages: 6
Registered: March 2011
Junior Member
Robin Rosenberg wrote on Mon, 28 March 2011 17:05
I guess it will be merged soon. Look at Gerrit. When it's been merged
the next nightly build will contain the fix.
http://egit.eclipse.org/r/#change,2939

Probably a stupid question, but "Change has been successfully merged into the git repository." means that the patch is available in a nigthly build?

[Updated on: Sun, 03 April 2011 08:50]

Report message to a moderator

Re: Newbie: EGit hangs eclipse IDE [message #663081 is a reply to message #661671] Sun, 03 April 2011 11:05 Go to previous messageGo to next message
Manuel Doninger is currently offline Manuel Doninger
Messages: 119
Registered: October 2010
Senior Member
Yes.
Re: Newbie: EGit hangs eclipse IDE [message #668167 is a reply to message #661671] Wed, 04 May 2011 09:47 Go to previous messageGo to next message
Simon Staeheli is currently offline Simon Staeheli
Messages: 6
Registered: March 2011
Junior Member
I've installed the nightly build now (v 0.12.1) and I've still the same problem. As soon as I put 'c:\cygwin\bin\' in my PATH Eclipse crashes during the start because of my git projects. If I choose another workspace without git projects it works without any problems..

[Updated on: Wed, 04 May 2011 09:48]

Report message to a moderator

Re: Newbie: EGit hangs eclipse IDE [message #669471 is a reply to message #668167] Tue, 10 May 2011 13:11 Go to previous messageGo to next message
Simon Staeheli is currently offline Simon Staeheli
Messages: 6
Registered: March 2011
Junior Member
any ideas?
Re: Newbie: EGit hangs eclipse IDE [message #673226 is a reply to message #668167] Sun, 22 May 2011 23:17 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias Sohn
Messages: 578
Registered: July 2009
Senior Member
0.12.1 is not a nightly build but the latest EGit release. Install the nightly from [1].

[1] http://download.eclipse.org/egit/updates-nightly
Re: Newbie: EGit hangs eclipse IDE [message #674548 is a reply to message #662256] Fri, 27 May 2011 10:24 Go to previous messageGo to next message
John McCabe is currently offline John McCabe
Messages: 179
Registered: July 2009
Senior Member
On Tue, 29 Mar 2011 23:49:41 +0200, Robin Rosenberg
<robin.rosenberg@dewire.com> wrote:

Hi Robin

Just following up on this as it's been a little while. Are you able to
confirm that this fix went in to the 0.12.1 release of EGit?

If it did, does the fix allow us to have c:\cygwin\bin in our windows
PATH _without_ adding the -Djgit.jgitprefix=<path> or is it essential
that we add that if we have cygwin in the PATH.

Thanks
John


>On 2011-03-29 18.07, John McCabe wrote:
>> On Mon, 28 Mar 2011 23:05:37 +0200, Robin Rosenberg
>> <robin.rosenberg@dewire.com> wrote:
>>
>>> On 2011-03-28 12.47, Simon Staeheli wrote:
>>>> Hi Robin
>>>>
>>>> Thanks for answering, but I can't follow you. How can I avoid the crash?
>>>> By starting Eclipse with "-Djgit.gitprefix=PATH"?! Path to where?
>>>> When will this patch being released?
>>>
>>> The path to where the directory obove the one that contains git.exe (if
>>> any). If C Git is not installed you can point it to basically any
>>> directory. JGit is looking for ${jgit.prefix}/etc/gitconfig, which may
>>> or may not be present. Unix users rarely use it, but Git for Windows
>>> puts some values there at installation time, which is the reason we
>>> want to know where the system-wide configuration file is.
>>>
>>> I guess it will be merged soon. Look at Gerrit. When it's been merged
>>> the next nightly build will contain the fix.
>>> http://egit.eclipse.org/r/#change,2939
>>
>> Sorry - I'm new to egit too and have exactly the same problem. I've
>> got round it for the moment by removing cygwin from the path when I
>> launch Eclipse (I uses a modified version of start.bat from the Qt
>> Eclipse Integration package to do that).
>>
>> I guess I was wondering when the next 'proper' release in the P2
>> repository will be; I'm not a huge fan of using nightly builds :-)
>
>For cutting edge features you may have to. The EGit plugin is still
>in incubation mode, which means it lacks features and has bugs. In
>order to ship working releases someone needs to test stuff, or
>bugs *will* ship. If you don't test it, who will?
>
>So I think you should verify a nightly build and say "yes works" and
>then perhaps go back to using a release. Usually the latest release
>has more bugs than the nightly build, but on rare occasions they don't
>work at all.
>
>I do not think you should use all nigtly builds for your Eclipse,
>because then some plugin will most certainly be broken. Pick the
>ones you care about, do regular updates and report bugs. Have a
>spare Eclipse with the latest working release so you can continue
>working until the nigly works again. You can use the same workspace for
>both Eclipse instances (but not simulatenously).
>
>-- robin
Re: Newbie: EGit hangs eclipse IDE [message #674699 is a reply to message #674548] Fri, 27 May 2011 22:50 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin Rosenberg
Messages: 324
Registered: July 2009
Senior Member
On 2011-05-27 12.24, John McCabe wrote:
> On Tue, 29 Mar 2011 23:49:41 +0200, Robin Rosenberg
> <robin.rosenberg@dewire.com> wrote:
>
> Hi Robin
>
> Just following up on this as it's been a little while. Are you able to
> confirm that this fix went in to the 0.12.1 release of EGit?
>
> If it did, does the fix allow us to have c:\cygwin\bin in our windows
> PATH _without_ adding the -Djgit.jgitprefix=<path> or is it essential
> that we add that if we have cygwin in the PATH.
>
> Thanks
> John

That path is merged, as can be seen in Gerrit. I cannot reproduce the
issue, but it you can place add -Djgit.fs.debug=1 to the eclipse.ini and
start Eclipe from the command line or by runniung eclipsec to see a
stdin/stdout window. That debug option is there exclusively in order
to resolve this issue. As soon as Eclipse hangs copy the text from the
console window and update the relevant bug report.

Other than that the workaround is the one you mention until the issue
can be diagnosed, or a better way to determine the cause has been found.

-- robin
Re: Newbie: EGit hangs eclipse IDE [message #675402 is a reply to message #674699] Tue, 31 May 2011 11:50 Go to previous messageGo to next message
John McCabe is currently offline John McCabe
Messages: 179
Registered: July 2009
Senior Member
On Sat, 28 May 2011 00:50:28 +0200, Robin Rosenberg
<robin.rosenberg@dewire.com> wrote:

>On 2011-05-27 12.24, John McCabe wrote:
>> On Tue, 29 Mar 2011 23:49:41 +0200, Robin Rosenberg
>> <robin.rosenberg@dewire.com> wrote:
>>
>> Hi Robin
>>
>> Just following up on this as it's been a little while. Are you able to
>> confirm that this fix went in to the 0.12.1 release of EGit?
>>
>> If it did, does the fix allow us to have c:\cygwin\bin in our windows
>> PATH _without_ adding the -Djgit.jgitprefix=<path> or is it essential
>> that we add that if we have cygwin in the PATH.
>>
>> Thanks
>> John
>
>That path is merged, as can be seen in Gerrit. I cannot reproduce the
>issue, but it you can place add -Djgit.fs.debug=1 to the eclipse.ini and
>start Eclipe from the command line or by runniung eclipsec to see a
>stdin/stdout window. That debug option is there exclusively in order
>to resolve this issue. As soon as Eclipse hangs copy the text from the
>console window and update the relevant bug report.
>
>Other than that the workaround is the one you mention until the issue
>can be diagnosed, or a better way to determine the cause has been found.

Thanks for that. I'll try it out. The main reason I asked rather than
tried it was that it's rare I use EGit, especially in the way that
causes this issue so...

Thanks again.
John
Re: Newbie: EGit hangs eclipse IDE [message #895125 is a reply to message #661671] Wed, 11 July 2012 18:22 Go to previous message
Rifas Yoo is currently offline Rifas Yoo
Messages: 1
Registered: July 2012
Junior Member
It's a quick fix and please follow the following steps:
1. Eclipse Help Menu
2. Eclipse Marketplace
3. Find "Egit - Git Team Provider"
4. Install it

Now you are done Smile

Enjoy
Previous Topic:How can i get the list of commited Files
Next Topic:Getting the changed text / old version of a file
Goto Forum:
  


Current Time: Tue Sep 16 15:28:11 GMT 2014

Powered by FUDForum. Page generated in 0.14517 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software