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

Instead of "Something went wrong..." display ssh error #5101

Open
koppor opened this issue Oct 11, 2024 · 4 comments
Open

Instead of "Something went wrong..." display ssh error #5101

koppor opened this issue Oct 11, 2024 · 4 comments
Labels
bug Something isn't working os:windows The Windows platform UI Any broken visuals like layouts, colors etc.

Comments

@koppor
Copy link

koppor commented Oct 11, 2024

Version

0.13.0

Operating System

Windows

Distribution Method

msi (Windows)

Describe the issue

When there are issues with git after quitting a conflict edit "Something went wrong..." is displayed.

How to reproduce

  1. I used GitButler
  2. GitButler asked for resolving merge conflicts
  3. I did not
  4. I closed git butler
  5. I closed my SSH key server
  6. I restarted GitButler.
  7. GitButler said, I was in editing mode
  8. I pressed "Cancel"
  9. GitButler displayS: "Something went wrong..."

I checked the logs:

image

It seems that something is wrong with SSH

Expected behavior

GitButler should output issues with git.

Relevant log output

image

@koppor koppor added the bug Something isn't working label Oct 11, 2024
@Byron Byron added the os:windows The Windows platform label Oct 11, 2024
@Byron
Copy link
Collaborator

Byron commented Oct 11, 2024

Thanks a lot for reporting!

A lot happened in the steps to reproduce, and some of that may very well be the reason for the failure.
However, the only idea I have relates to the SSH and keyserver parts. Now I wonder if SSH wanted to obtain a password, but couldn't do it as it needed a terminal? But then again it's unclear how it did ever work if restarting the keyserver is now a problem.

On MacOS with authentication and missing popups or environment variables can typically be resolved by launching GitButler from a terminal, but I don't know if that makes any difference on Windows.

@koppor
Copy link
Author

koppor commented Oct 11, 2024

A lot happened in the steps to reproduce,

😇

and some of that may very well be the reason for the failure. However, the only idea I have relates to the SSH and keyserver parts. Now I wonder if SSH wanted to obtain a password, but couldn't do it as it needed a terminal?

It could not do it, because there was no server available. (The terminal itself worked IMHO)

But then again it's unclear how it did ever work if restarting the keyserver is now a problem.

I was not clear: It is super simple: The server did not run. (Expanded: If users use KeeAgent, the database for KeePass needs to run. And I did not run KeePass 😅)

On MacOS with authentication and missing popups or environment variables can typically be resolved by launching GitButler from a terminal, but I don't know if that makes any difference on Windows.

Similar things here. (Long text on that at https://github.com/javakeyring/java-keyring?tab=readme-ov-file#security-concerns).

@Byron Byron added the UI Any broken visuals like layouts, colors etc. label Oct 11, 2024
@Byron
Copy link
Collaborator

Byron commented Oct 11, 2024

Thanks for the clarification :)! I think the real issue here is that while in this particular state, the UI ends up in Something went wrong mode, which is somewhat equivalent to a hard crash. It can be provoked by making Git fetches fail.

Ideally, the UI will gracefully handle this.

@koppor
Copy link
Author

koppor commented Oct 11, 2024

Thanks for the clarification :)! I think the real issue here is that while in this particular state, the UI ends up in Something went wrong mode, which is somewhat equivalent to a hard crash. It can be provoked by making Git fetches fail.

Ideally, the UI will gracefully handle this.

Yeah - and it does at other places; it least shows up the error as notification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working os:windows The Windows platform UI Any broken visuals like layouts, colors etc.
Projects
None yet
Development

No branches or pull requests

2 participants