imports NIOWebSocket and then shows "No such module NIOWebSocket" error message #73923
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
Issue: In an Xcode SwiftUI file, when I write "import NW" or "import Net", it suggests "NIOWebSocket". When I finally import it (NIOWebSocket), the error message shows "No such module NIOWebSocket"
Suggestion: If a library is unavailable to import on Xcode, it should not be suggested when a developer writes "import".
Tested On: Xcode Version 15.2 (15C500b), OS: macOS Sonoma 14.3.1, Swift 5.9
Screenshot has been attached for clarification.
Reproduction
Expected behavior
I expect that if NIOWebSocket is unavailable, it should not be suggested to import in a SwiftUI file or in any Xcode file.
Environment
swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Additional information
No response
The text was updated successfully, but these errors were encountered: