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

Fix connection error detection and reconnection #31

Merged
merged 6 commits into from
Jun 1, 2022
Merged

Fix connection error detection and reconnection #31

merged 6 commits into from
Jun 1, 2022

Conversation

SRombautsU
Copy link

  1. wrong error message if you just unplug the cable/disable the Plastic SCM service, it tells something like "no workspace available)
  2. when the server get back online, the Editor didn't ever fully recover, keep showing the "server unavailable" icon

…erver Unavailable" icon

- Implement FPlasticSourceControlProvider::SetLastErrors() similarly than the Perforce plugin
- SetLastErrors() only in case of a connection error (or for the reconnection)
- Use the last error as the message to display in the tooltip
…d correctly to the server

- Detect server connection and repository missing thanks to GetWorkspaceInformation(), no need for "checkconnection"
- Forward GetWorkspaceName() and GetWorkspaceInformation() ErrorMessages up to the Provider so they can be displayed
@SRombautsU SRombautsU self-assigned this May 30, 2022
It is often "count 1" displayed in loop for each retry
Useful if stuck because missing credentials; will now be able to display the question asked by cm shell
The cm process could stay up and they would accumulate on each restart

Use case: clear the user profile for a cloud server and it will keep timeout in 180s and try to restart a new cm shell
…l quickly

Interrupt any running cm command instead of waiting up to the timeout of 180s that was keeping the Editor as a "zombie" locking assets and showing in the task manager
@SRombautsU SRombautsU merged commit a913fd2 into PlasticSCM:master Jun 1, 2022
@SRombautsU SRombautsU added the bug label Jun 1, 2022
@SRombautsU SRombautsU deleted the fix-connection-error-detection-and-reconnection branch June 2, 2022 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants