Giter VIP home page Giter VIP logo

Comments (14)

MaxDesiatov avatar MaxDesiatov commented on May 12, 2024 1

BTW, the reason for carton considering swift-wasm-DEVELOPMENT-SNAPSHOT-2020-06-12-a the default is because it's a snapshot version that's known to work well. As soon as 5.3 snapshots are verified to be stable enough they will become the default in the next carton version.

from carton.

carson-katri avatar carson-katri commented on May 12, 2024

This might be related to #65.

I had a similar issue with carton dev due to Xcode 12 beta 3 being selected.

from carton.

RayZhao1998 avatar RayZhao1998 commented on May 12, 2024

It's related to command line tools selected? However I've changed to Xcode 11.6, the error still exists.

I also built and exported carton with Xcode 11.6, the error still exists too.

from carton.

MaxDesiatov avatar MaxDesiatov commented on May 12, 2024

Did you try to run ~/.swiftenv/versions/wasm-DEVELOPMENT-SNAPSHOT-2020-07-02-a/usr/bin/swift package dump-package directly from the same directory? I wonder what the output of that would be.

from carton.

RayZhao1998 avatar RayZhao1998 commented on May 12, 2024

The response is:

➜  TokamakApp /Users/ziyuanzhao/.swiftenv/versions/wasm-DEVELOPMENT-SNAPSHOT-2020-07-02-a/usr/bin/swift package dump-package
/Users/ziyuanzhao/Documents/open-source-project/swiftwasm/TokamakApp: error: manifest parse error(s):
<unknown>

from carton.

MaxDesiatov avatar MaxDesiatov commented on May 12, 2024

I'm pretty sure it's unrelated to the Xcode version, it's related to problems with snapshots we experienced in the beginning of July described here swiftwasm/swift#1365. Does a more recent snapshot, swift-wasm-DEVELOPMENT-SNAPSHOT-2020-07-14-a for example, resolve the issue for you?

from carton.

RayZhao1998 avatar RayZhao1998 commented on May 12, 2024

Yep, this snapshot resolved the issue. But another occurs:

➜  TokamakApp carton dev
Polyfill integrity verified: /Users/ziyuanzhao/.carton/static/dev.js
Inferring basic settings...
- swift executable: /Users/ziyuanzhao/.swiftenv/versions/wasm-DEVELOPMENT-SNAPSHOT-2020-07-14-a/usr/bin/swift
Swift version 5.3-dev (LLVM 0b65603ce3a0026, Swift b38a8971794080a)
Target: x86_64-apple-darwin19.5.0

Parsing package manifest: /Users/ziyuanzhao/.swiftenv/versions/wasm-DEVELOPMENT-SNAPSHOT-2020-07-14-a/usr/bin/swift package dump-package
- development binary to serve: /Users/ziyuanzhao/Documents/open-source-project/swiftwasm/TokamakApp/.build/wasm32-unknown-wasi/debug/TokamakApp

Building the project before spinning up a server...
/Users/ziyuanzhao/.swiftenv/versions/wasm-DEVELOPMENT-SNAPSHOT-2020-07-14-a/usr/bin/swift build -c debug --product TokamakApp --enable-test-discovery --destination /Users/ziyuanzhao/.carton/sdk/wasm-DEVELOPMENT-SNAPSHOT-2020-07-14-a.json
Everything is already up-to-date
Process failed and produced following output:
error: the Package.resolved file is most likely severely out-of-date and is preventing correct resolution; delete the resolved file and try again

Error: error: the Package.resolved file is most likely severely out-of-date and is preventing correct resolution; delete the resolved file and try again

I've tried to delete the Package.resolved as the message told, but it doesn't work.

from carton.

MaxDesiatov avatar MaxDesiatov commented on May 12, 2024

I can reproduce it locally, thanks for reporting this! Investigating now...

from carton.

MaxDesiatov avatar MaxDesiatov commented on May 12, 2024

Sorry about directing you to a broken snapshot, I've just tried the latest 5.3 that you can download here in the "Artifacts" dropdown: https://github.com/swiftwasm/swift/runs/911478444?check_suite_focus=true

It works with that snapshot. Our latest development snapshots seem to be broken as you've reported and we don't have anything newer than that. wasm-5.3-SNAPSHOT-2020-07-26-a should be tagged tonight, it now has both Foundation and XCTest included, while previous 5.3 snapshots didn't. If you want to install it now, you can download macos-installable.zip from "Artifacts" and unpack it, you'll then have to copy the unpacked directory to ~/.swiftenv/versions manually. Or you can download the tagged version tomorrow more easily with carton sdk install. Hope that helps 🙂

By the way, was there anything that made you look for newer snapshots? The default wasm-DEVELOPMENT-SNAPSHOT-2020-06-12-a that carton uses by default right now should also work.

from carton.

RayZhao1998 avatar RayZhao1998 commented on May 12, 2024

All right. Maybe I'll wait for a couple hours to use the latest tagged version and have another try.

By the way, was there anything that made you look for newer snapshots? The default wasm-DEVELOPMENT-SNAPSHOT-2020-06-12-a that carton uses by default right now should also work.

It seems that carton now always download swift-wasm-DEVELOPMENT-SNAPSHOT-2020-06-12-a as default. Because of Chinese bad network situation, I have no idea to speed up downloading it with carton, even if I used VPN. But I found if I use swiftenv to download, the speed is acceptable. So I used swiftenv and always download the latest version.

from carton.

MaxDesiatov avatar MaxDesiatov commented on May 12, 2024

No problem at all, you're welcome to continue using swiftenv 🙂

With 5.3 builds I hope they are more stable on average than the previous development snapshots, that would mean there's less need to download newer snapshots once you're using the 5.3 branch. When Apple releases 5.3.0 later this year, I plan to tag SwiftWasm 5.3.0 and release patch versions after that, which overall should become even more stable.

from carton.

MaxDesiatov avatar MaxDesiatov commented on May 12, 2024

The release has been tagged and you can install it with carton sdk install wasm-5.3-SNAPSHOT-2020-07-26-a or swiftenv install https://github.com/swiftwasm/swift/releases/download/swift-wasm-5.3-SNAPSHOT-2020-07-26-a/swift-wasm-5.3-SNAPSHOT-2020-07-26-a-osx.tar.gz or whatever URL you pass to swiftenv to download the snapshot. Do any of these work well for you?

from carton.

RayZhao1998 avatar RayZhao1998 commented on May 12, 2024

It works now! Thanks a lot and I'm going to close this issue.

from carton.

MaxDesiatov avatar MaxDesiatov commented on May 12, 2024

No problem, I'm glad it worked!

from carton.

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.