-
Notifications
You must be signed in to change notification settings - Fork 132
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
Can't document - -= / /= operators #808
Comments
This issue has previously been reported in #714 and fixed in #717 and #739. Both those PRs have also been cherry-picked into the 5.10 release in #750 and #772. Please check with the latest |
I'm afraid I can't figure out how to download and install release 5.10. I guess it will be in the next Xcode release, so I'll have to wait for that. |
You can download a 5.10 toolchain for Xcode from swift.org/download/. After you run the installer you can change toolchains from the Xcode > Toolchains menu. ![]() This menu group is only visible when you have one or more custom toolchains installed. |
I tried, and now it all seems to work. Thank you |
Just one more question. When I use toolchain 5.10 in Xcode everything works,
to build the documentation, the problem is still there, How can I force toolchain 5.10 to be used in this situation? |
Yes, the toolchain setting in Xcode only applies to Xcode. You can pass a
|
It works, thank you. |
Sorry to bother you again, but although everything looks fine when generating documentation in Xcode I made a small test package DocCTest with the operators
and tried to preview the documentation with the command swift package --toolchain /Library/Developer/Toolchains/swift-5.10-DEVELOPMENT-SNAPSHOT-2024-01-25-a.xctoolchain and it gave me the following warnings /Users/leifibsen/Documents/SwiftXcode/DocCTest/Sources/DocCTest/DocCTest.docc/Extensions/BIntExt.md:19:5: warning: Can't resolve '(::)-3woeb' but it was still possible to see all operators in the preview. I then published to GitHub Pages with the command swift package --toolchain /Library/Developer/Toolchains/swift-5.10-DEVELOPMENT-SNAPSHOT-2024-01-25-a.xctoolchain You can see the result at https://leif-ibsen.github.io/DocCTest/documentation/docctest Clicking one of the operators % %= << <<= >> >>= gives The page you're looking for can't be found. although it works in the preview. I wonder what is wrong? Best regards |
Description
I'm trying to use DocC to document a Swift big integer package 'BigInt'.
I'm using Xcode 15.2 (15C500b).
The package main structure is called 'BInt'. It implements among other things the overloaded operators
The BInt extension file organizes the layout of the documentation and it works as expected
for all the operators, except for
For - and -= Xcode suggests suffixes to resolve the overload ambiguity,
but later claims that the selected function does not exist.
For / and /= Xcode doesn't recognize / and /= as operators.
Checklist
main
branch of this package.Expected Behavior
That the operators
behave like the other operators with respect to documentation.
Actual behavior
Steps To Reproduce
No response
Swift-DocC Version Information
No response
Swift Compiler Version Information
The text was updated successfully, but these errors were encountered: