Skip to content

Localize binary caching.#919

Merged
BillyONeal merged 4 commits intomicrosoft:mainfrom
BillyONeal:localize-binarycaching
Feb 23, 2023
Merged

Localize binary caching.#919
BillyONeal merged 4 commits intomicrosoft:mainfrom
BillyONeal:localize-binarycaching

Conversation

@BillyONeal
Copy link
Copy Markdown
Member

No description provided.

if (auto err = parser.get_error())
{
return Strings::concat(err->to_string(), "\nFor more information, see ", docs::assetcaching_url, "\n");
return msg::format(msg::msgErrorMessage)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I believe the parser errors are a preformatted "document" including newlines, source information, etc.

If we want to include an additional "Error:", I think it should be on its own line (possibly with more explanation).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Unfortunately parser errors don't obey the convention IDEs and such respect, because they don't start with the word error. This makes output now like:

PS C:\Dev\vcpkg-tool\out\build\x64-Debug-NoArtifacts> .\vcpkg.exe install zlib
error: $X_VCPKG_ASSET_SOURCES:1:13: error: unexpected arguments: 'clear' does not accept arguments
    on expression: clear;clear,bad,bad,bad
                               ^
note: See https://github.com/Microsoft/vcpkg/tree/master/docs/users/assetcaching.md for more information.

so this error prefix is correct but some of the other ones I put "inside" need to be removed.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sorry wait I think I have that backwards. Will remove the one here...

# Conflicts:
#	include/vcpkg/base/messages.h
#	locales/messages.json
#	src/vcpkg/base/messages.cpp
#	src/vcpkg/binarycaching.cpp
@BillyONeal BillyONeal merged commit 06a3d4f into microsoft:main Feb 23, 2023
@BillyONeal BillyONeal deleted the localize-binarycaching branch February 23, 2023 00:24
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.

3 participants