Giter VIP home page Giter VIP logo

Comments (6)

shmuelk avatar shmuelk commented on May 21, 2024

I just built both the master and develop branches of Kitura-CouchDB on Linux. Both built and ran our tests flawlessly.

What version of Swift were you using? We currently support the 03/24 DEVELOPMENT drop of Swift 3.0

from kitura-couchdb.

tkhuran avatar tkhuran commented on May 21, 2024

Yes, it builds inside the package, but you will get the errors when you try to use the .Key option.

Example:
database.queryByView("sortedByDate", ofDesign: "photos", usingParameters: [.Keys("key")]) { (document, error) in
// your code goes here
}

$ swift build -Xcc -fblocks
Compiling Swift Module 'LoggerAPI' (1 sources)
Compiling Swift Module 'Socket' (3 sources)
Compiling Swift Module 'SwiftyJSON' (2 sources)
Compiling Swift Module 'KituraTemplateEngine' (1 sources)
Compiling Swift Module 'KituraSys' (4 sources)
Compiling Swift Module 'HeliumLogger' (1 sources)
Compiling Swift Module 'KituraNet' (12 sources)
Compiling Swift Module 'SwiftRedis' (3 sources)
Compiling Swift Module 'Kitura' (10 sources)
Compiling Swift Module 'CouchDB' (4 sources)
Compiling Swift Module 'CouchDBSample' (1 sources)
Compiling Swift Module 'Credentials' (3 sources)
Compiling Swift Module 'CredentialsFacebookToken' (1 sources)
Compiling Swift Module 'CredentialsGoogleToken' (1 sources)
Linking .build/debug/CouchDBSample
Compiling Swift Module 'KituraBluePicserver' (4 sources)
/vagrant/Kitura-Apps/Kitura-BluePic/KituraBluePic-server/KituraBluePic-server/Photos.swift:37:85: error: cannot convert value of type 'String' to expected argument type '[AnyObject]'
database.queryByView("sortedByDate", ofDesign: "photos", usingParameters: [.Keys("true")]) { (document, error) in
^~~
:0: error: build had 1 command failures
error: exit(1): /home/vagrant/swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a-ubuntu15.10/usr/bin/swift-build-tool -f /vagrant/Kitura-Apps/Kitura-BluePic/KituraBluePic-server/.build/debug.yaml default

from kitura-couchdb.

samwarfield avatar samwarfield commented on May 21, 2024

I am noticing this same issue using 03/24 DEVELOPMENT...

from kitura-couchdb.

shmuelk avatar shmuelk commented on May 21, 2024

@tkhuran I have been reviewing our open issues. I think we fixed this one in the prior commit. Can you please verify that this issue has been dealt with.

Thanks.

from kitura-couchdb.

tkhuran avatar tkhuran commented on May 21, 2024

yes, this looks great now. Thanks!

from kitura-couchdb.

shmuelk avatar shmuelk commented on May 21, 2024

Your welcome

from kitura-couchdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.