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

Strip '\r' from the end of each line when parsing the vcpkg database #12416

Merged
merged 9 commits into from
Jun 27, 2024

Conversation

browntarik
Copy link
Contributor

Addresses: #12413

We were incorrectly parsing our vcpkg header database when deciding to present the "Learn how to install a library for this header with vcpkg" code action.

The issue was due to not stripping the "\r" line endings that appear exclusively on Windows machines.

This fix will now strip the "\r\n" line endings on windows properly and if will only strip "\n" for linux/mac machines.

It should now display the following behavior on windows (see below):
Screenshot 2024-06-26 125711

@browntarik browntarik merged commit b5057a1 into main Jun 27, 2024
4 checks passed
@browntarik browntarik deleted the browntarik/fixVcpkgParsing branch June 27, 2024 00:18
@browntarik browntarik changed the title Strip '\r' and '\n' from the end of each line if they exist when parsing the vcpkg database Strip '\r' from the end of each line when parsing the vcpkg database Jun 27, 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.

3 participants