Skip to content
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

imports NIOWebSocket and then shows "No such module NIOWebSocket" error message #73923

Open
Farial-mahmod opened this issue May 27, 2024 · 1 comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels

Comments

@Farial-mahmod
Copy link

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.

Screenshot 2024-05-27 at 16 30 15

Reproduction

import NIOWebSocket

Screenshot 2024-05-27 at 16 30 15

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

@Farial-mahmod Farial-mahmod added bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels labels May 27, 2024
@MarkPerkins
Copy link

The error is likely somewhere else in your project. Had the same issue, but it was simply something went afowl in my other project files.
.library(name: "NIOWebSocket", targets: ["NIOWebSocket"]), the namespace should exist as it's defined in the package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. triage needed This issue needs more specific labels
Projects
None yet
Development

No branches or pull requests

2 participants