You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried this command: swift package --disable-sandbox preview-documentation --target APIDocumentation
And got this output:
Build of target: 'APIDocumentation' complete! (4.04s)
Template: /usr/lib/swift/share/docc/render
Error: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission."
error: 'docc preview' invocation failed with a nonzero exit code: '1'.
Note: The Swift-DocC Preview plugin requires passing the '--disable-sandbox' flag
to the Swift Package Manager because it requires local network access to
run a local web server. See 'swift package plugin preview-documentation --help' for details.
Checklist
If possible, I've reproduced the issue using the main branch of this package.
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: