zielu / GitToolBox

GitToolBox IntelliJ plugin
GNU General Public License v3.0
604 stars 73 forks source link

[Question] Missing: Status in Project View EAP2022.2 and 212.9.0 #405

Open mrbscreen opened 2 years ago

mrbscreen commented 2 years ago

I am missing the numbers of commit on top of base and the Arrows in the project view: image

As you can see, it is configured. Is there any way to get them back.

I am using:

zielu commented 2 years ago

Check out Settings under GitToolBox > Project View - numbers are named Status. You could also be on a local branch (without remove branch) then you also won't see any numbers

mrbscreen commented 2 years ago

I am using the following setting:

image

The branch exists local and remote.

zielu commented 2 years ago

Hmm, I'm assuming that you do have changes that should be shown, right ? What happens if you re-open the project ? I've noticed that sometimes IDE fails to update the state so plugin does not get notification about new commits. You should be able to notice this in Git tool window too - no expected commits visible in history.

jessel-invenco commented 2 years ago

Could it be OS related? Mine hasn't been working in Windows but works in macOS and Linux. Local changes are picked up but not the remote.

zielu commented 2 years ago

There is OS dependant component to it - I'm reading repo state from built-in Git Integration APIs and afaik they are hooked into OS-dependant FS notifications. In latest version I added diagnostics mode to be able to inspect what plugin is seeing. I'll add instructions how to enable it later today.

zielu commented 2 years ago

@mrbscreen @jesselhk could you enable diagnostic mode and check local branch hash vs parent branch hash. This information is taken from what built-in Git Integration is reporting and is not persisted by my plugin between restarts.

abvm659 commented 1 year ago

Hi, I am experiencing the same issue. Any news about it? I am not sure when it started (most probably after upgrade to 2022.2.2). Having macOS Monterey. I don't see any error, anywhere in IDE. It says

image

But refresh, fetches, updates etc. all works fine. Using https git backends

abvm659 commented 1 year ago

Ok got it .. needed to change status parent branch mode from Auto to Tracked remote - now it works fine (if someone will be dealing with the same issue)

image
zielu commented 1 year ago

Hi, I'll see what might be wrong - auto should be a good default.

zielu commented 1 year ago

@abvm659 do you use IDE Task Management by any chance ? Difference between Auto and Tracked remote is that first one searches for branch of active task and uses it's remote branch, if not found it should just use remote of current branch. Tracked remote just uses remote branch of current branch

abvm659 commented 1 year ago

Hi, no I am not using youtrack task server, just plain default task management plugin if it is what you are asking for? The only thing that might be related I am using is the settings repository (local directory with auto sync)

also the project directory contains multiple repositories:

image
zielu commented 1 year ago

Yes, I meant default task management. I'll try to reproduce this.