Skip to content

Conversation

@compnerd
Copy link
Member

This is the critical change to enable Windows support in DocC. The dependency on NIO is restricted to the PreviewServer and as NIO is incapable of supporting non-POSIX models (or emulation of POSIX models), we cannot use this dependency on Windows. As a temporary solution, remove the NIO dependency on Windows by removing the PreviewServer.

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test

This is the critical change to enable Windows support in DocC.  The
dependency on NIO is restricted to the PreviewServer and as NIO is
incapable of supporting non-POSIX models (or emulation of POSIX models),
we cannot use this dependency on Windows.  As a temporary solution,
remove the NIO dependency on Windows by removing the PreviewServer.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd merged commit 7774523 into swiftlang:main May 31, 2023
@compnerd compnerd deleted the no-preview branch May 31, 2023 18:39
@Kyle-Ye
Copy link
Contributor

Kyle-Ye commented Jun 7, 2023

After this merge, we are unable to use preview on macOS too.

There is some issue on canImport check

Update

Spot the issue, we should use canImport(NIOHTTP1) or canImport(NIO)

@Kyle-Ye Kyle-Ye mentioned this pull request Jun 7, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants