-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
fix scheme name resolution, and schema load on WSL #5327
fix scheme name resolution, and schema load on WSL #5327
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm good with this. Sorry for the delay and thanks for the contribution!
Holy shit, I left a community member out to dry for three months. I'm so sorry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've even fixed the line endings, something git add --renormalize
STILL refuses to do (i do not understand the point of this tool)
Hello @DHowett! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Thanks so much for fixing this. |
You are so welcome :) No worries on it taking a while to get included - these are crazy times :) Thank you for making me feel welcome :) |
This PR fixes the scheme resolution bug outlined in #5326
The approach is as follows:
successfully parses the scheme, as opposed to the existing code, which
finds the first scheme parser which says it can parse the scheme, as
that logic spuriously returns
true
currently.of the file are read and the contents passed to XmlDocument.LoadXXX,
as this fails with an UriException on WSL otherwise.
CanParse
as it is superfluous. The check for a valid schemeparser should not just check an extension but also if the file exists
ParseScheme
function as it alreadyreturns null on failure.
FileExtension
to the interface because we need it lifted now.Closes #5326