-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
[Feature Request]: Hide error messages if the user is offline #211
Comments
Interesting idea, but I wouldn't call it a bug. It's much more a feature to go into "offline mode". Could you share the error, when you're offline? |
This is still a problem for me and it means I have to disable the plugin when working without access to my Git server. I get an intrusive purple popup box every minute as it tries to push. It may be a factor that I'm using a VPN to connect to my own Git server rather than using Github. But the problem persists both when I'm offline and when I'm online but my server is unavailable. Rather than trying to detect when I'm offline, a simpler and more general solution might be an option to disable the pop-up notifications on errors to |
@timmb What is the exact error message? |
NB, local IP as I connect via VPN. Right now the VPN is disabled so it cannot connect. (IP/port redacted) |
@timmb Thanks, I'm currently searching for 'Could not resolve host', but this is not included in your error. The problem is your error is more like when you try to push to an GitHub repo, where you don't have the rights for. Like it can connect to the server, but can't read the repo. I think hiding the error in general is not at good idea, because many need it to debug there config. |
Another option is to only show the first error message as a popup and then show the error state in the status bar but no more popup errors until after we've left the error state. A single error is fine and it will linger until it's acknowledged. |
Unfortunately I still have this issue in version 2.8.0. When I'm offline I have to manually disable the plugin. The error I see now is:
This is probably because I rely on a VPN to connect. Simplest is to also add in |
The network error message is always a bit different, isn't it? Should be fixed now, again. |
One of the benefits of using git is the possibility to work offline. Unfortunately this plugin assumes that we are always online, and shows error messages if the git command failed, which is very distracting especially if the intervall is set to a short amount of time.
Relevant errors (if available)
No response
Steps to reproduce
Expected Behavior
There should not be a message every time obsidian-git tries to connect. A message the first time is fine, but even better just show "Offline" in the status bar.
Addition context
No response
Operating system
Windows
Plugin version
1.24.1
The text was updated successfully, but these errors were encountered: