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

[marketplace] Update CommunityUIWidgetAddonHandler.java to give a more helpful error #4052

Merged
merged 3 commits into from
Jan 21, 2024

Conversation

Skinah
Copy link
Contributor

@Skinah Skinah commented Jan 20, 2024

Installing from marketplace gives an Error that is not very helpful.

Couldn’t find the widget in the add-on entry

The cause was missing ```yaml code fence when a normal code fence was used. This used to work in the past so a number of widgets are done this way and will not install. Suggest a more useful message to help guide widget devs.

Installing from marketplace gives an Error that is not very helpful.

Couldn’t find the widget in the add-on entry

The cause was missing ```yaml code fence when a normal code fence was used. This used to work in the past so a number of widgets are done this way and will not install. Suggest a more useful message to help guide widget devs.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
@Skinah Skinah requested a review from a team as a code owner January 20, 2024 02:51
…penhab/core/addon/marketplace/internal/community/CommunityUIWidgetAddonHandler.java

Co-authored-by: Wouter Born <github@maindrain.net>
Signed-off-by: Matthew Skinner <matt@pcmus.com>
@Skinah
Copy link
Contributor Author

Skinah commented Jan 20, 2024

Sorry @wborn missed your suggestion on my. Mobile phone screen. Accepted your suggestion Thanks.

Copy link
Member

@wborn wborn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spotless also has an opinion about this:

-················throw·new·IllegalArgumentException("Couldn't·find·the·widget·in·the·add-on·entry.·The·starting·code·fence·may·not·be·marked·as·```yaml");
+················throw·new·IllegalArgumentException(
+························"Couldn't·find·the·widget·in·the·add-on·entry.·The·starting·code·fence·may·not·be·marked·as·```yaml");

Signed-off-by: Matthew Skinner <matt@pcmus.com>
Copy link
Member

@wborn wborn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@wborn wborn merged commit 4905805 into openhab:main Jan 21, 2024
3 checks passed
@wborn wborn added this to the 4.2 milestone Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants