-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Global git commands don't show errors #41519
Comments
An unsuccessful push or pull should report an error message for sure. How do you run the actions themselves? |
Thats is a great idea |
Hi @joaomoreno, please are there any news about this issue? I see that even after the changes in notifications it still ignores Git actions. |
I've added a couple tags, let's see if someone picks it up. |
@joaomoreno I'd like to pick this up as a first issue if possible. @ronaldruzicka Is there a simple way to reproduce the issue of a push/pull failing without notification? It seems very simple to add a notification (in git/src/commands.ts) if the push did not throw any errors. But I'm not very experienced with git, so I haven't found a way to make push/pull fail silently -- for the "common" cases I've tried, I get an error message dialog. |
@joaomoreno Do you know where the cause of the silent errors might be? I don't know if there are cases where git.push/pull doesn't throw an error even though it should. It seems like the calling code is already set up to catch errors thrown by git.push/pull, and show a dialog displaying the error. |
@chenhowa Well the most common case is, when you try to It would be nice to be notified that the |
Sorry it took a while to get back to you. What I've found is that from Command Palette, Git: Push and Git: Pull always warn me when they fail according to your scenario. However, Git: Push To and Git: Pull From do not always warn me when there is a conflict. Are "Pull from" and "Push to" the commands that are giving you trouble? |
@ronaldruzicka ping |
Okay, thanks. But actually, let me know if Pull (Rebase) still fails to report Failure to you. I've fixed the issue for Push To and Pull From (at least on my machine), and based on my understanding of the fix, Pull (Rebase) should report errors to the user. If it isn't doing that for you, then I haven't found the actual source(s) of the problem. Also, I don't know if you still want this, but I don't think it would be a net positive to add a notification for when the push/pull is successful. In the long term, it would be more distracting than informative. |
Hi @chenhowa , sorry for late reply. So I have VS Code Version |
@ronaldruzicka Unfortunately, the commit hasn't been merged yet: it's in the Backlog. Hopefully it will make it to a future version of VS Code, but the timeline for that isn't clear. |
Hi 👋,
Would it be possible to have notifications of successful/unsuccessful
git push
,git pull
, etc?It happens sometimes that
git push
orgit pull
is unsuccessful and I don't even know about it and don't even know what went wrong. There is just the small arrow in the bottom left of the screen that indicate pendingpush
, but it's really easy to miss.Thanks!
The text was updated successfully, but these errors were encountered: