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

It turns out that somehow "link with editor and selection" toggle got turned off. In some ways I should have figured it out, but I toggled that button a long time ago and forgot that it existed.

As a usability enhancement, I recommend adding a combo box for repository selection to the staging view. Perhaps in place of repository name text in the header. This would make it easier to operate the view with link mode off either intentionally or on accident.

Thanks,

- Konstantin


-----Original Message-----
From: Robin Stocker [mailto:robin@xxxxxxxxx] 
Sent: Wednesday, September 25, 2013 2:51 PM
To: Konstantin Komissarchik
Cc: EGit developer discussion
Subject: 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