RLovelett / langserver-swift

A Swift implementation of the open Language Server Protocol.
Apache License 2.0
177 stars 16 forks source link

swift build fails to compile #24

Closed nojvek closed 7 years ago

nojvek commented 7 years ago

Mac OS 10.12

Apple Swift version 3.0.2 (swiftlang-800.0.63 clang-800.0.42.1) Target: x86_64-apple-macosx10.9 /Applications/Xcode.app/Contents/Developer/usr/bin/lldb "--repl=-target x86_64-apple-macosx10.9 -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -color-diagnostics" Welcome to Apple Swift version 3.0.2 (swiftlang-800.0.63 clang-800.0.42.1). Type :help for assistance.

 langserver-swift git:(master) swift build -Xswiftc -target -Xswiftc x86_64-apple-macosx10.12
Cloning https://github.com/RLovelett/SourceKit.git
HEAD is now at 5e48727 Get the header for `sourcekitd_variant_json_description_copy`
Resolved version: 1.0.2
Cloning https://github.com/thoughtbot/Argo.git
HEAD is now at 203daf8 Bump version: 4.1.2
Resolved version: 4.1.2
Cloning https://github.com/thoughtbot/Runes.git
HEAD is now at e1bb1f7 Bump version: 4.1
Resolved version: 4.1.0
Cloning https://github.com/edwardaux/Ogra.git
HEAD is now at b4f1802 Merge branch '4.1.2'
Resolved version: 4.1.2
Cloning https://github.com/thoughtbot/Curry.git
HEAD is now at c9f1a37 Update version to 3.0
Resolved version: 3.0.0
Cloning https://github.com/RLovelett/swift-package-manager.git
HEAD is now at c300728 More changes
Resolved version: 3.1.1-beta.1
Compile Swift Module 'PackageDescription' (6 sources)
Compile Swift Module 'swiftpm_xctest_helper' (1 sources)
Compile Swift Module 'libc' (2 sources)
Compile Swift Module 'Curry' (1 sources)
Compile Swift Module 'Runes' (9 sources)
Compile Swift Module 'Argo' (19 sources)
Compile Swift Module 'POSIX' (15 sources)
Linking ./.build/debug/libPackageDescription.dylib
Compile Swift Module 'Ogra' (1 sources)
Compile Swift Module 'Basic' (23 sources)
/Users/nojvek/git/langserver-swift/Packages/SwiftPM-3.1.1-beta.1/Sources/Basic/Result.swift:93:34: error: same-type requirement makes generic parameter 'ErrorType' non-generic
extension Result where ErrorType == AnyError {
                                 ^
/Users/nojvek/git/langserver-swift/Packages/SwiftPM-3.1.1-beta.1/Sources/Basic/Result.swift:93:34: error: same-type requirement makes generic parameter 'ErrorType' non-generic
extension Result where ErrorType == AnyError {
                                 ^
/Users/nojvek/git/langserver-swift/Packages/SwiftPM-3.1.1-beta.1/Sources/Basic/Result.swift:95:45: error: use of undeclared type 'Value'
    public init(anyError body: () throws -> Value) {
                                            ^~~~~
/Users/nojvek/git/langserver-swift/Packages/SwiftPM-3.1.1-beta.1/Sources/Basic/Result.swift:93:34: error: same-type requirement makes generic parameter 'ErrorType' non-generic
extension Result where ErrorType == AnyError {
                                 ^
/Users/nojvek/git/langserver-swift/Packages/SwiftPM-3.1.1-beta.1/Sources/Basic/Result.swift:95:45: error: use of undeclared type 'Value'
    public init(anyError body: () throws -> Value) {
                                            ^~~~~
/Users/nojvek/git/langserver-swift/Packages/SwiftPM-3.1.1-beta.1/Sources/Basic/Result.swift:93:34: error: same-type requirement makes generic parameter 'ErrorType' non-generic
extension Result where ErrorType == AnyError {
                                 ^
/Users/nojvek/git/langserver-swift/Packages/SwiftPM-3.1.1-beta.1/Sources/Basic/Result.swift:95:45: error: use of undeclared type 'Value'
    public init(anyError body: () throws -> Value) {
                                            ^~~~~
/Users/nojvek/git/langserver-swift/Packages/SwiftPM-3.1.1-beta.1/Sources/Basic/Result.swift:93:34: error: same-type requirement makes generic parameter 'ErrorType' non-generic
extension Result where ErrorType == AnyError {
                                 ^
/Users/nojvek/git/langserver-swift/Packages/SwiftPM-3.1.1-beta.1/Sources/Basic/Result.swift:95:45: error: use of undeclared type 'Value'
    public init(anyError body: () throws -> Value) {
                                            ^~~~~
/Users/nojvek/git/langserver-swift/Packages/SwiftPM-3.1.1-beta.1/Sources/Basic/Result.swift:93:34: error: same-type requirement makes generic parameter 'ErrorType' non-generic
extension Result where ErrorType == AnyError {
                                 ^
/Users/nojvek/git/langserver-swift/Packages/SwiftPM-3.1.1-beta.1/Sources/Basic/Result.swift:95:45: error: use of undeclared type 'Value'
    public init(anyError body: () throws -> Value) {
                                            ^~~~~
/Users/nojvek/git/langserver-swift/Packages/SwiftPM-3.1.1-beta.1/Sources/Basic/Result.swift:93:34: error: same-type requirement makes generic parameter '

'ErrorType' non-generic
extension Result where ErrorType == AnyError {
                                 ^
/Users/nojvek/git/langserver-swift/Packages/SwiftPM-3.1.1-beta.1/Sources/Basic/Result.swift:95:45: error: use of undeclared type 'Value'
    public init(anyError body: () throws -> Value) {
                                            ^~~~~
/Users/nojvek/git/langserver-swift/Packages/SwiftPM-3.1.1-beta.1/Sources/Basic/Result.swift:93:34: error: same-type requirement makes generic parameter 'ErrorType' non-generic
extension Result where ErrorType == AnyError {
                                 ^
/Users/nojvek/git/langserver-swift/Packages/SwiftPM-3.1.1-beta.1/Sources/Basic/Result.swift:95:45: error: use of undeclared type 'Value'
    public init(anyError body: () throws -> Value) {
                                            ^~~~~
<unknown>:0: error: build had 1 command failures
error: exit(1): /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f /Users/nojvek/git/langserver-swift/.build/debug.yaml
nojvek commented 7 years ago

I needed to update my Xcode version. That fixed it.