Home » Eclipse Projects » EGit / JGit » 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 |
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 #662256 is a reply to message #662194] |
Tue, 29 March 2011 21:49 |
Robin Rosenberg Messages: 332 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 #674548 is a reply to message #662256] |
Fri, 27 May 2011 10:24 |
John McCabe Messages: 228 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 #675402 is a reply to message #674699] |
Tue, 31 May 2011 11:50 |
John McCabe Messages: 228 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
|
|
| |
Goto Forum:
Current Time: Sun Sep 22 20:49:20 GMT 2024
Powered by FUDForum. Page generated in 0.05228 seconds
|