Comments (14)
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.
This might be related to #65.
I had a similar issue with carton dev
due to Xcode 12 beta 3 being selected.
from carton.
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.
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.
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.
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.
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.
I can reproduce it locally, thanks for reporting this! Investigating now...
from carton.
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.
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.
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.
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.
It works now! Thanks a lot and I'm going to close this issue.
from carton.
No problem, I'm glad it worked!
from carton.
Related Issues (20)
- Publish `carton` as npm package HOT 4
- `carton dev` stops rebuilding/reloading after error
- Pick up `index.html` from resources of the main target in `Package.swift`
- Re-read supplied `index.html` on updates
- Automatically generate Swift bindings for TypeScript declarations HOT 5
- Update `carton init` template to allow `carton test` without modification HOT 1
- Add `carton shell` command making SwiftWasm toolchain the default in forked shell
- `carton test` should fail if crashing during `_initialize`
- Fatal Error HOT 9
- `brew install swiftwasm/tap/carton` installs old version HOT 4
- compiler error, [-Wimplicit-function-declaration] HOT 5
- Docker not working HOT 1
- Support Ubuntu 22.04 LTS for toolchain downloader
- Error: Invalid version on Ubuntu 22.04 HOT 4
- ProcessInfo is empty when invoking `carton test` HOT 4
- Mismatched Swift Versions HOT 2
- Customize watcher directory
- Xcode 15 breaks `carton` build process HOT 4
- Missing `swift`- prefix from SDKs HOT 1
- Facing swift compiler version issue on` /root/.carton/sdk/wasm-5.7.1-RELEASE/usr/bin/swift` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carton.