Giter Site home page Giter Site logo

Comments (6)

badboy avatar badboy commented on June 3, 2024

What's the output of swiftc --version on your machine?
I think it might be outdated and the error here makes me believe that your version of Swift doesn't know async yet.
async/await was implemented in Swift 5.5.

from uniffi-rs.

LBeernaertProton avatar LBeernaertProton commented on June 3, 2024

The version bundled with the docker file of the repo:

&& curl -o swift.tar.gz https://download.swift.org/swift-5.5-release/ubuntu1804/swift-5.5-RELEASE/swift-5.5-RELEASE-ubuntu18.04.tar.gz \

from uniffi-rs.

badboy avatar badboy commented on June 3, 2024

I currently cannot reproduce that in Docker:

$ docker build -t rfkelly/uniffi-ci -f docker/Dockerfile-build .
$ docker run \
    -ti --rm \
    -v $HOME/.cargo/registry:/usr/local/cargo/registry \
    -v $PWD:/mounted_workdir \
    -w /mounted_workdir \
    rfkelly/uniffi-ci:latest bash

# CARGO_TARGET_DIR=/tmp/target cargo test -p uniffi-example-async-api-client
<snip>
test uniffi_foreign_language_testcase_test_async_api_client_swift ... ok
<snip>
test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 8.64s

This is on eeb785c (current main as of this comment)

from uniffi-rs.

LBeernaertProton avatar LBeernaertProton commented on June 3, 2024

Hmm, i had some issues building the image with podam, so i tried to use the image from the docker registry. Maybe that image is not up to date?

from uniffi-rs.

badboy avatar badboy commented on June 3, 2024

We're using it in CI. :)
Are you using janerik/uniffi-ci-test:latest?

.... and only just now I realize that we do reference the old name (rfkelly/uniffi-ci) in the docs (and in my command above, d'oh!)

from uniffi-rs.

LBeernaertProton avatar LBeernaertProton commented on June 3, 2024

Sorry for for the very late reply, but when switching to the image you suggested I am able to run the tests without issues.

from uniffi-rs.

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.