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

Fix missing uri to file path conversion when loading json schema #237275

Merged
merged 2 commits into from
Jan 7, 2025

Conversation

misode
Copy link
Contributor

@misode misode commented Jan 5, 2025

This bug was introduced in #236319. Looking at the diff of that PR, it (most likely by mistake) removed the code to turn the location URI into a valid file path. That was merged 3 weeks ago and is currently affecting insiders, but not stable.

This causes the following error, even though the schema file exists at the mentioned path. fs.readFile just doesn't know how to handle URIs. It expects a valid file path.
image

@misode misode changed the title [json] Fix missing uri parsing in json schema loading Fix missing uri parsing in json schema loading Jan 5, 2025
@misode misode changed the title Fix missing uri parsing in json schema loading Fix missing uri to file path conversion when loading json schema Jan 5, 2025
@jrieken jrieken assigned aeschli and unassigned jrieken Jan 6, 2025
@aeschli aeschli enabled auto-merge January 7, 2025 10:29
@aeschli
Copy link
Contributor

aeschli commented Jan 7, 2025

Thanks, good catch!

@vs-code-engineering vs-code-engineering bot added this to the January 2025 milestone Jan 7, 2025
@aeschli aeschli merged commit 0ae74f8 into microsoft:main Jan 7, 2025
7 checks passed
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.

[json] error loading schemas
4 participants