-
Notifications
You must be signed in to change notification settings - Fork 128
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
Diagnose invalid characters in bundle identifiers #290
Comments
this is also true for other unicode code points, for instance I have a function decl which looks like public func 𝄞(@PitchBuilder _ makeAbsolutePitches: () -> [Pitch]) -> Track {
Track(makeAbsolutePitches())
} it doesn't work if you use ``𝄞(_:)`` docc will complain
which is a bit hand wavy, cause it can resolve that name to TD;DR |
Thanks for pointing this out @sevki! I believe this is an unrelated issue. @d-ronnqvist I believe you investigated something like this in the past? |
Yes, the (unrelated) issue with unicode code points in symbol links is resolved on the 5.9 branch (which is included in the Xcode 15 betas). |
@franklinsch @d-ronnqvist I would love to work on this. Can you please give me some first pointers on where to look so I can try and fix the bug? |
@franklinsch @d-ronnqvist Actually I decided to give it a go! Please let me know what you think: #1012 |
@agisilaos I'm happy to hear that you want to work on this. I didn't have time to provide any first pointers beforehand, but I tried to give some suggestions about where to start in #1012 (review). Don't hesitate to reach out if you have any questions. |
@d-ronnqvist Thank you so much. I will take a look and fix all the issues you mentioned. Appreciate the thorough review. |
This is fixed by #1069 |
DocC should emit a diagnostic for bundle identifiers that contain characters that aren't valid in URL host (e.g., spaces).
Steps to Reproduce
Create a DocC catalog with a space in its bundle identifier. DocC doesn't produce a diagnostic, even though spaces aren't allowed in bundle identifiers because they're URL hosts.
Swift-DocC Version Information
Swift-DocC version: All
The text was updated successfully, but these errors were encountered: