swiftlang/swift-package-manager

[SR-7828] Include name-based "fixits" whenever we do a unique name membership lookup

Open

#4.803 geöffnet am 31. Mai 2018

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Swift (1.462 Forks)batch import
buggood first issue

Repository-Metriken

Stars
 (10.145 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 9T 13h) (90 gemergte PRs in 30 T)

Beschreibung

Previous ID SR-7828
Radar rdar://problem/34911728
Original Reporter @aciidb0mb3r
Type Bug
Status Reopened
Resolution
Votes 0
Component/s Package Manager
Labels Bug, StarterBug
Assignee None
Priority Medium

md5: 09bf5631fee7a0af06fa651808d31d64

Issue Description:

This diagnostic is not very good, SwiftPM should suggest the right spelling by comparing against the products which are available and suggesting a likely match if the string edit distance is small enough, similar to what the compiler does.

$ swift build
error: product dependency 'FooBar' not found

The edit distance algorithm as landed in SwiftPM with https://github.com/apple/swift-package-manager/pull/1431

Contributor Guide