-
-
Notifications
You must be signed in to change notification settings - Fork 301
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
Workspace Templates: show error when fetching templates from Github #6440
Workspace Templates: show error when fetching templates from Github #6440
Conversation
This shows "some" error in the UI when there are problems fetching from Github. The error message also includes a hint to https://bnd.bndtools.org/instructions/connection-settings.html because sometimes you have a ~/.m2/settings.xml with some credentials which can lead to "Bad Credentials" http errors from the Github API, but before this fix you had no idea what was going on, because the UI was blank and the existance of ~/.m2/settings.xml is easily forgotton Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
@peterkir could you have a look and see what the output is in your error case with the incorrect credentials in |
instead of abusing the description field. this seems better suited to display information about an exception. Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
Build error seems to be because of a http error e.g. when accessing stuff from https://download.eclipse.org/ they seem to have maintanance https://www.eclipsestatus.io/ I will retry later |
I noticed it does not used in the final display of the ErrorDialog. Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
since the same http errors can happen there too, so the user should notice that with info whats going wrong Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
@peterkir I believe you are not using the code of this PR. The line I actually tried to handle the null inputstream in line 32 and line 50 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx. Error message is highly appreciated |
In this PR
This PR is about error handling the following two wizards:
This shows an ErrorDialog the UI when there are problems fetching from Github. The error message also includes a hint to https://bnd.bndtools.org/instructions/connection-settings.html because sometimes you have a ~/.m2/settings.xml with some credentials which can lead to "Bad Credentials" http errors from the Github API, but before this fix you had no idea what was going on, because the UI was blank and the existance of ~/.m2/settings.xml is easily forgotten
The message reads (wording improvements welcome):
Eclipse Error Log tab:
At least now you see that something is wrong and also get some information.
Before this it was completely unknown, since the list of templates just appeared empty.
Last but not least, I added the same ErrorDialog also to the (new) Template Fragment Wizard... which can suffer from the same HTTP connection problems. Now the user sees an error dialog too and knows what's going on