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

Throw an error when creating a DocumentURI from a URL with no scheme instead of hitting an assertion #1290

Open
ahoppen opened this issue May 14, 2024 · 1 comment
Labels
bug Something isn't working good first issue Good for newcomers refactoring An internal refactoring of the codebase

Comments

@ahoppen
Copy link
Collaborator

ahoppen commented May 14, 2024

We should throw an error from here instead of crashing sourcekit-lsp by hitting an assertion failure.

assert(self.storage.scheme != nil, "Received invalid URI without a scheme '\(self.storage.absoluteString)'")

@ahoppen ahoppen added bug Something isn't working refactoring An internal refactoring of the codebase labels May 14, 2024
@ahoppen
Copy link
Collaborator Author

ahoppen commented May 14, 2024

Synced to Apple’s issue tracker as rdar://128036062

@ahoppen ahoppen added the good first issue Good for newcomers label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers refactoring An internal refactoring of the codebase
Projects
None yet
Development

No branches or pull requests

1 participant