Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Git Staging view not connecting

Konstantin Komissarchik wrote:
> I have started seeing a problem recently. Not sure if it started
> after upgrading EGit or if that’s just a coincidence. In any case, I
> am running EGit 3.0.3 on Eclipse 4.4 M2. The Git Staging view will
> not connect to a repository no matter what I try. I just see “No
> Repository Selected”. I have one repository defined and there is
> nothing in the error log. This workspace worked fine with Git
> Staging view in the past.
> 
> Is anyone else seeing this issue?

It sounds familiar from a problem a colleague was having, but I had no
chance to debug it and I've never had it myself. Some questions:

Was this workspace copied from another workspace?

Do you see the repository in the Git Repositories view?

If you use Team > Disconnect and then Team > Share, does the problem
go away?

> As a side comment… It would be great if instead of going into “No
> Repository Selected” mode, the Git Staging view just linked up with
> the first repository in the list. In the common case of there being
> only one repository in the workspace that’s 100% right. If N
> repositories are defined, you still have 1/N chance of avoiding
> forcing the user to do extra clicks to connect the view. If you want
> to increase the odds of doing the right thing even further, the last
> used repository can be persisted in preferences.

One of the things forcing an extra click was this bug, fixed for 3.1:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=417310

With that, it's kind of hard to get into the "No Repository Selected"
state, unless linking is disabled. (And in case of bugs, like the one
you are currently experiencing :)).

Regards,
  Nibor


Back to the top