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

Exported symbols are duplicated in completion list #1295

Open
adam-fowler opened this issue May 14, 2024 · 1 comment
Open

Exported symbols are duplicated in completion list #1295

adam-fowler opened this issue May 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@adam-fowler
Copy link
Contributor

adam-fowler commented May 14, 2024

Swift version

swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)

Platform

arm64-apple-macosx14.0

Editor

VSCode

Does the issue reproduce with Swift 6?

Yes

Description

If I export a symbol from a library to include it in the public symbols of another library then SourceKit-LSP considers these to be separate symbols and will duplicate them in completion lists

Steps to Reproduce

  • Create a package with a library called Duplicate using SwiftPM
  • Add to source of package @_exported import class Foundation.JSONDecoder
  • Create another target that is dependent on the original library target
  • Add the following lines
import Foundation
import Duplicate
  • Compile
  • Now when I type JSON into the file I get two completion entries for JSONDecoder.

Logging

No response

@ahoppen
Copy link
Collaborator

ahoppen commented May 14, 2024

Synced to Apple’s issue tracker as rdar://128057021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants