Skip to content

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
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Feb 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[json] error loading schemas

4 participants