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

Use embed JSON parser instead of Regex while parsing Deps file #14287

Merged
merged 4 commits into from
Jan 21, 2024

Conversation

maxkatz6
Copy link
Member

What does the pull request do?

Who would have guessed that Regex is bad for JSON parsing. Not me apparently.

Specifically, the problem was with nuget dependencies that have more than one dll library inside. Pretty rare situation, and nobody would notice, except Avalonia itself is such rare package with 10 libraries in one package.
image

Fixed issues

Fixes #14033
Fixes AvaloniaUI/AvaloniaVS#431

@maxkatz6 maxkatz6 added the backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch label Jan 20, 2024
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0043775-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0043779-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0043801-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 merged commit ef9004f into master Jan 21, 2024
5 of 7 checks passed
@maxkatz6 maxkatz6 deleted the fix-previewer-host-missing-some-deps branch January 21, 2024 09:15
maxkatz6 added a commit that referenced this pull request Jan 24, 2024
* Use embed JSON parser instead of Regex while parsing Deps file

* Make RuntimeXamlDiagnostic.Document settable at any time

* Make JSONParser internal
# Conflicts:
#	src/Markup/Avalonia.Markup.Xaml/RuntimeXamlLoaderConfiguration.cs
@maxkatz6 maxkatz6 added backported-11.0.x and removed backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants