Skip to content

Improve user troubleshooting message#957

Merged
BillyONeal merged 6 commits intomicrosoft:mainfrom
autoantwort:feature/better-user-troubleshooting-message
Mar 20, 2023
Merged

Improve user troubleshooting message#957
BillyONeal merged 6 commits intomicrosoft:mainfrom
autoantwort:feature/better-user-troubleshooting-message

Conversation

@autoantwort
Copy link
Copy Markdown
Contributor

@autoantwort autoantwort commented Mar 16, 2023

Incomplete issues are still often created. The generated issue body now gets more promotion.
Before:
image
After:
image

Incomplete issues are still created. The generated issue body gets now more promotion.
{
auto path = issue_body.get()->generic_u8string();
result.append_indent().append_fmt_raw("https://github.com/microsoft/vcpkg/issues/"
"new?title=[{}]+Build+error&body=Copy+issue+body+from+{}\n",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In this URI why are the spaces in the title turned into +s but not spaces in the Strings::percent_encode(path) ?

Copy link
Copy Markdown
Contributor Author

@autoantwort autoantwort Mar 17, 2023

Choose a reason for hiding this comment

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

Because percent encoding does not allow to decode spaces as +, in general the URI RFC does not know the + encoding for spaces, but in the HTML spec they say the body of a form is application/x-www-form-urlencoded and can be submitted via "get".

Because + is shorter than %20 I used it here for the spaces.

# Conflicts:
#	include/vcpkg/base/messages.h
#	src/vcpkg/base/messages.cpp
@BillyONeal BillyONeal merged commit 8fa258e into microsoft:main Mar 20, 2023
@BillyONeal
Copy link
Copy Markdown
Member

Thanks!

@autoantwort autoantwort deleted the feature/better-user-troubleshooting-message branch March 20, 2023 23:04
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