Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toolbar redraw issue. #49

Open
KocourKuba opened this issue Nov 29, 2018 · 18 comments
Open

Toolbar redraw issue. #49

KocourKuba opened this issue Nov 29, 2018 · 18 comments
Assignees
Labels

Comments

@KocourKuba
Copy link

Too often after start VS2017, TGIT toolbar does not draw properly.
http://prntscr.com/lona0i
After 'Reset Toolbar' all icons draw normally.
This problem occurs only with TGIT toolbar. All others drew without a problem.

@sboulema sboulema self-assigned this Dec 4, 2018
@sboulema
Copy link
Owner

sboulema commented Dec 4, 2018

Unable to reproduce for now...

Looks like it fails/hangs on checking if there is an open vs solution under git revision and it it should enable or disable the buttons.
The 'Apply Stash' button is the only button not doing that check and that one is correctly shown.

How does the TGit menu look like when this happens?

@KocourKuba
Copy link
Author

Yes, looks like. Only 'Apply Stash' is visible. When I start VS and quick load solution, the toolbar does not redraw except one button 'Apply Stash'. Also, until VS not load all plugins and do own initialization (without load any project) the toolbar also not draws.

http://prntscr.com/lqr7vx
http://prntscr.com/lqr8ca
http://prntscr.com/lqr9k7

Possible this effect can be caused by long load plugins installed in my VS.

@sboulema
Copy link
Owner

sboulema commented Dec 5, 2018

I can reproduce it when opening a folder instead of a solution using Visual Studio 2019 Preview 1

But that is quite ok, since it clearly shows that it still needs to fully load the TGit extension:
image

And when done loading all menu icons do appear automatically

@KocourKuba
Copy link
Author

KocourKuba commented Dec 12, 2018

If I start VS and wait until all plugins loaded - toolbar redraws.
If I start VS and load solution immediately - toolbar not redrawn (redraw only after 'Reset Toolbar' or closing solution)
The same if I open a solution from the explorer window.
http://prntscr.com/lu52a1

@sboulema
Copy link
Owner

Please try this new build: https://github.com/sboulema/TGit/releases/tag/v4.10.50

@KocourKuba
Copy link
Author

Unfortunately, the issue still exists. And little worse as before.
I try to disable all extensions except TGIT, but it not help.
If I disable some extension, after restart VS, toolbar draws correctly.
If after this exit VS and start again, toolbar not redraw. Disabling/enabling menu item in 'Add/remove button' menu redraw only selected item. All others still not drawn.
Looks like VS 'cache' the state of the toolbars and not send 'update' command.
I can create a video if you want to look at this

In VS2013 all works fine. Except for one thing, I create a new issue about this.

@sboulema
Copy link
Owner

sboulema commented Dec 14, 2018

Argh this one seems to be quite difficult, too many differences between all the different VS versions, too many async/timing issues.

Last try before the weekend:
https://github.com/sboulema/TGit/releases/tag/v4.10.52

Please let me know if the Rebase button icon bug is also fixed :)

@KocourKuba
Copy link
Author

@sboulema
Copy link
Owner

Please try this release: https://github.com/sboulema/TGit/releases/tag/v4.10.54

@KocourKuba
Copy link
Author

@sboulema
Copy link
Owner

Time to throw away this feature branch and start looking for a new solution to the redraw issue :(

@Ordisoftware
Copy link

I have the same problem: icons are not drawn (sometime one or two are drawn) if I start directly a .sln file, while starting VS2017 alone works. Reseting the bar draws the icons if not drawn.

@animha
Copy link

animha commented Oct 31, 2019

Same problem on VS2019

@animha
Copy link

animha commented Nov 6, 2019

Bug is fixed after latest VS2019 update v. 16.3.8

UPDATE: after rebooting, the issue still exists. Sorry, I was too optimist.

@KocourKuba
Copy link
Author

KocourKuba commented Nov 6, 2019

I did not confirm. The issue still exists in VS2019.
image

@jogibear9988
Copy link

I've also this problem most of the time...

@jogibear9988
Copy link

VS2022

@Ordisoftware
Copy link

I found a trick that works every time because resetting the toolbar that worked in VS2017 doesn't work in VS2022: disable TGit, close VS, enable TGit, icons are there again for a while but eventually disappear again at after a few days to a few weeks I don't know yet and it seems to be linked either to swapping between solutions or to the installation of other plugins which could explain the trick that brings up the extension in the loading pile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants