-
Notifications
You must be signed in to change notification settings - Fork 53
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
Preview command doesn't work on Linux #102
Comments
this is also happening to me in an Ubuntu 24.04 devcontainer |
Edit: All unit tests pass on my Linux machine for swiftlang/swift-docc. The problem is this repo. |
I had this issue and set out to figure out why, since it was affecting my ability to build documentation from my CI. And I found that having Swift installed at Error: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission."
error: 'docc convert' invocation failed with a nonzero exit code: '1'
error: Error Domain=NSCocoaErrorDomain Code=4 "The file doesn’t exist." But, upon moving the Swift installation to the home directory and updating the PATH to Generated documentation archive at:
/home/usjz/tmp/swift-async-algorithms/.build/plugins/Swift-DocC/outputs/AsyncAlgorithms.doccarchive So @tayloraswift do you think this is worth filing a bug for? It seems like an issue with |
I filed a bug against |
I tried this command:
swift package --disable-sandbox preview-documentation --target APIDocumentation
And got this output:
Checklist
main
branch of this package.Expected behavior
Start web server to preview docc documentation.
Actual behavior
It says I don't have permission.
Steps to Reproduce
OS: Arch Linux 6.12.1-arch1-1
IDE: VS Code (1.95.2)
Project is a Swift Package with 1 module named "APIDocumentation" with two files:
Test.md
with a single line of# Test
APIDocumentation.swift
with 3 lines:Execute the command listed above, which is described on the README to preview docc documentation.
Swift-DocC Plugin Version Information
Swift-DocC plugin version:
1.4.3
Swift Compiler version:
Swift version 6.0.2 (swift-6.0.2-RELEASE)
Target: x86_64-unknown-linux-gnu
The text was updated successfully, but these errors were encountered: