jakeheis / ice Goto Github PK
View Code? Open in Web Editor NEW❄️ A developer friendly package manager for Swift; 100% compatible with Swift Package Manager
License: MIT License
❄️ A developer friendly package manager for Swift; 100% compatible with Swift Package Manager
License: MIT License
Trying to build using Xcode 9.2 and Swift 4.0 result in the following error as compactMap
use to be flatMap
:
github.com_jakeheis_Ice/Sources/IceKit/Package.swift:106:16: error: value of type '[MatchResult]' has no member 'compactMap'
return matches.compactMap { $0.captures[0] }
^~~~~~~ ~~~~~~~~~~
Failed to build Ice
There are situations, where ice hangs forever on certain compile errors. This can be easily reproduced in the following way (ice-0.5.0, Swift-4.1, macOS-10.13.4):
mkdir foo
cd foo
ice init
ice build
cd ..
mv foo bar
cd bar
ice build
on the last command, ice never exits and does not show any error. When invoking the build via Swift PM directly, one gets:
$ swift build
Compile Swift Module 'foo' (1 sources)
<unknown>:0: error: PCH was compiled with module cache path '...', but the path is currently '...'
<unknown>:0: error: missing required module 'SwiftShims'
error: terminated(1): /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f .../bar/.build/debug.yaml main output:
Note, I do not expect that ice compiles the sources, but I would expect that ice shows the same errors as the build from the Swift PM.
sorry I had no other means to ask this question. It looks really slick
st0rm@equin0xs-MacBook-Pro Ice % mint install jakeheis/Ice
🌱 Finding latest version of Ice
🌱 Cloning Ice 0.8.1
🌱 Resolving package
🌱 Building package
[1/5] Compiling Rainbow BackgroundColor.swift
[2/5] Compiling PathKit PathKit.swift
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/.build/checkouts/PathKit/Sources/PathKit.swift:98:14: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Path' to 'Hashable' by implementing 'hash(into:)' instead
public var hashValue: Int {
^
[3/6] Compiling SwiftyTextTable TextTable.swift
[4/6] Compiling SwiftCLI ArgumentList.swift
[5/7] Compiling Icebox Icebox.swift
[6/8] Compiling TestingUtilities TestingUtilities.swift
[7/8] Compiling IceKit Config.swift
[8/9] Compiling IceCLI Add.swift
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/Sources/IceCLI/Commands/Add.swift:26:6: error: cannot convert value of type 'Key<>' to specified type 'Version'
@key("-f", "--from", description: "The minimum version of the dependency to depend on; allows more recent versions")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/Sources/IceCLI/Commands/Add.swift:29:6: error: cannot convert value of type 'Key<>' to specified type 'Version'
@key("-e", "--exact", description: "The exact version of the dependency to depend on")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/Sources/IceCLI/Commands/Add.swift:32:6: error: cannot convert value of type 'Key<>' to specified type 'String'
@key("-b", "--branch", description: "The branch of the dependency to depend on")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/Sources/IceCLI/Commands/Add.swift:35:6: error: cannot convert value of type 'Key<>' to specified type 'String'
@key("-s", "--sha", description: "The commit hash of the dependency to depend on")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/Sources/IceCLI/Commands/Add.swift:42:28: error: use of unresolved identifier '$from'
return [.atMostOne($from, $exact, $branch, $sha, $local)]
^~~~~
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/Sources/IceCLI/Commands/Add.swift:42:35: error: use of unresolved identifier '$exact'
return [.atMostOne($from, $exact, $branch, $sha, $local)]
^~~~~~
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/Sources/IceCLI/Commands/Add.swift:42:43: error: use of unresolved identifier '$branch'
return [.atMostOne($from, $exact, $branch, $sha, $local)]
^~~~~~~
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/Sources/IceCLI/Commands/Add.swift:42:52: error: use of unresolved identifier '$sha'
return [.atMostOne($from, $exact, $branch, $sha, $local)]
^~~~
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/Sources/IceCLI/Commands/Add.swift:53:12: error: initializer for conditional binding must have Optional type, not 'Version'
if let version = from {
^
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/Sources/IceCLI/Commands/Add.swift:55:19: error: initializer for conditional binding must have Optional type, not 'Version'
} else if let exact = exact {
^
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/Sources/IceCLI/Commands/Add.swift:57:19: error: initializer for conditional binding must have Optional type, not 'String'
} else if let branch = branch {
^
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/Sources/IceCLI/Commands/Add.swift:59:19: error: initializer for conditional binding must have Optional type, not 'String'
} else if let sha = sha {
^
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/Sources/IceCLI/Commands/Build.swift:16:6: error: cannot convert value of type 'Key<>' to specified type 'String'
@key("-t", "--target", description: "The individual target to build; cannot be used with --product")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/Sources/IceCLI/Commands/Build.swift:19:6: error: cannot convert value of type 'Key<>' to specified type 'String'
@key("-p", "--product", description: "The individual product to build; cannot be used with --target")
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/Sources/IceCLI/Commands/Build.swift:32:28: error: use of unresolved identifier '$target'
return [.atMostOne($target, $product)]
^~~~~~~
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/Sources/IceCLI/Commands/Build.swift:32:37: error: use of unresolved identifier '$product'
return [.atMostOne($target, $product)]
^~~~~~~~
/private/var/folders/v3/rmyggr5x7vlbl100t1spwzl40000gn/T/mint/github.com_jakeheis_Ice/Sources/IceCLI/Commands/Build.swift:56:52: error: cannot convert value of type '[_.Element]' to expected argument type 'SPM.BuildOption??'
let buildOption: SPM.BuildOption? = target.flatMap { .target($0) } ?? product.flatMap { .product($0) }
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
🌱 Encountered error during "swift build -c release -Xswiftc -target -Xswiftc x86_64-apple-macosx10.15". Use --verbose to see full output
🌱 Failed to build Ice 0.8.1 with SPM
Complete noob to MacOS, Swift and Xcode. Any help at all would be greatly appreciated. :)
(P.S. Sorry if this is a duplicate lol)
Hi, @jakeheis
First of all, thanks for the great utility.
I've digged a little through source code and didn't get an ability on how to pass 'swiftc'-related options/arguments like
-Xswiftc -static-stdlib -Xswiftc -target -Xswiftc x86_64-apple-macosx10.13
Is it possible to do so out-of-box or it'll need some pull requests if any?
Thanks.
swift --version swift-driver version: 1.26.9 Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1) Target: x86_64-apple-macosx12.0
.build/checkouts/PathKit/Sources/PathKit.swift:583:12: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
`mint install jakeheis/Ice --verbose
🌱 Finding latest version of Ice
🌱 Cloning Ice 0.8.3
Cloning into 'github.com_jakeheis_Ice'...
remote: Enumerating objects: 171, done.
remote: Counting objects: 100% (171/171), done.
remote: Compressing objects: 100% (150/150), done.
remote: Total 171 (delta 20), reused 64 (delta 5), pack-reused 0
Receiving objects: 100% (171/171), 105.08 KiB | 1.72 MiB/s, done.
Resolving deltas: 100% (20/20), done.
Note: switching to '8e0bb5e8bc9b11b33dc249d6caee5ded975d74b5'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
🌱 Resolving package
Fetching https://github.com/kylef/PathKit from cache
Fetching https://github.com/onevcat/Rainbow from cache
Fetching https://github.com/jakeheis/SwiftCLI from cache
Fetched https://github.com/jakeheis/SwiftCLI (0.58s)
Fetched https://github.com/onevcat/Rainbow (0.58s)
Fetched https://github.com/kylef/PathKit (0.58s)
Fetching https://github.com/jakeheis/Icebox from cache
Fetching https://github.com/kylef/Spectre.git from cache
Fetching https://github.com/scottrhoyt/SwiftyTextTable from cache
Fetched https://github.com/jakeheis/Icebox (0.57s)
Fetched https://github.com/scottrhoyt/SwiftyTextTable (0.57s)
Computing version for https://github.com/scottrhoyt/SwiftyTextTable
Fetched https://github.com/kylef/Spectre.git (0.57s)
Computed https://github.com/scottrhoyt/SwiftyTextTable at 0.9.0 (0.05s)
Computing version for https://github.com/jakeheis/SwiftCLI
Computed https://github.com/jakeheis/SwiftCLI at 6.0.1 (0.05s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 3.1.5 (0.05s)
Computing version for https://github.com/kylef/PathKit
Computed https://github.com/kylef/PathKit at 1.0.0 (0.05s)
Computing version for https://github.com/jakeheis/Icebox
Computed https://github.com/jakeheis/Icebox at 0.0.7 (0.05s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.9.0 (0.06s)
Creating working copy for https://github.com/scottrhoyt/SwiftyTextTable
Working copy of https://github.com/scottrhoyt/SwiftyTextTable resolved at 0.9.0
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 3.1.5
Creating working copy for https://github.com/jakeheis/Icebox
Working copy of https://github.com/jakeheis/Icebox resolved at 0.0.7
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.9.0
Creating working copy for https://github.com/kylef/PathKit
Working copy of https://github.com/kylef/PathKit resolved at 1.0.0
Creating working copy for https://github.com/jakeheis/SwiftCLI
Working copy of https://github.com/jakeheis/SwiftCLI resolved at 6.0.1
🌱 Building package
/private/var/folders/fc/c1k505md1sgf80y1nx0xd9jw0000gn/T/mint/github.com_jakeheis_Ice/.build/checkouts/PathKit/Sources/PathKit.swift:583:12: error: value of optional type 'UnsafeMutablePointer?' (aka 'Optional<UnsafeMutablePointer>') must be unwrapped to a value of type 'UnsafeMutablePointer' (aka 'UnsafeMutablePointer')
free(cPattern)
^
/private/var/folders/fc/c1k505md1sgf80y1nx0xd9jw0000gn/T/mint/github.com_jakeheis_Ice/.build/checkouts/PathKit/Sources/PathKit.swift:583:12: note: coalesce using '??' to provide a default when the optional value contains 'nil'
free(cPattern)
^
?? <#default value#>
/private/var/folders/fc/c1k505md1sgf80y1nx0xd9jw0000gn/T/mint/github.com_jakeheis_Ice/.build/checkouts/PathKit/Sources/PathKit.swift:583:12: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
free(cPattern)
^
!
/private/var/folders/fc/c1k505md1sgf80y1nx0xd9jw0000gn/T/mint/github.com_jakeheis_Ice/.build/checkouts/SwiftCLI/Sources/SwiftCLI/Command.swift:11:27: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
public protocol Routable: class {
^~~~~
AnyObject
🌱 Encountered error during "swift build -c release -Xswiftc -target -Xswiftc x86_64-apple-macosx12.0"
🌱 Failed to build Ice 0.8.3 with SPM`
This looks great, I especially really like ice outdated
, but would you consider adding support for installation using homebrew directly so I don't need to be using mint? Not sure if there's some technical limitations or something.
Hello. I am trying to install Ice via Mint and get error.
🌱 Finding latest version of Ice 🌱 Resolved latest version of Ice to 0.7.0 🌱 Cloning https://github.com/jakeheis/Ice.git 0.7.0... 🌱 Building Ice Package with SPM... Failed to build Ice. Use --verbose to see full output
When I went to manual mode, I got next error:
error: cannot load underlying module for 'XCTest' import XCTest ^ error: terminated(1): /Library/Developer/CommandLineTools/usr/bin/swift-build-tool -f /Users/Admin/Ice/.build/release.yaml main output:
How to avoid error and install Ice?
Ice version 0.5.0
ice build
doesn't show any indication that a build has failed, and just gets stuck
Any options passed through ice run
aren't recognised by ice
ice run tool --version
...
Unrecognized option: --version
This is in comparison to swift run which does handle this correctly
swift run tool --version
0.1.0
This is related to SwiftCLI jakeheis/SwiftCLI#44
Would be great to have Linux support. I tried to integrate this into Mint but couldn't due to it breaking Linux
I use Ice to manage my various Swift Package Manager projects. This includes testing them using ice test
. However, when I want to generate Linux tests, I am forced to do:
swift test --generate-linuxmain
It would be great if Ice could generate Linux tests (like ice test --generate
) so I don't need to switch back and forth.
Maybe Ice could remove the existing files so that it doesn't stop due to the name of a test method changing. This could be optional.
I've got Mint version 0.11.2 installed on an Ubuntu 18.04 server running swift 4.2 (though swiftenv)
When I try to install with mint install jakeheis/Ice
I get an error "Package.swift not found"
My open source tool BartyCrouch is a package manager tool and I usually update dependencies via ice update
and then generate the project via ice xc
. While the first worked after updating to Xcode 10.2 today, the latter gave me this error output:
Error: can't parse Package.swift
When I do swift package generate-xcodeproj
it works though. I also didn't change my Package.swift file at all before running these commands and it was working before.
$ swift build
...
[66/81] Compiling IceKit Ice.swift
[67/81] Compiling IceKit Logger.swift
[68/81] Compiling IceKit Package.swift
[69/81] Compiling IceKit PackageData.swift
[70/81] Compiling IceKit V4_0.swift
[71/81] Merging module TestingUtilities
[72/81] Compiling IceKit V4_2.swift
[73/81] Compiling IceKit V5_0.swift
[74/81] Compiling IceKit PackageFile.swift
[75/81] Compiling IceKit PackageFormatter.swift
[76/81] Compiling IceKit PackageWriter.swift
[77/81] Compiling IceKit Regex.swift
[78/81] Compiling IceKit Registry.swift
[79/81] Compiling IceKit RepositoryReference.swift
[80/81] Compiling IceKit Resolved.swift
[81/82] Merging module IceKit
Stack dump:
0. Program arguments: /Applications/Xcode12beta0.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/t8s/github/Ice/Sources/IceCLI/Commands/Add.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/Build.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/Clean.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/Config.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/Describe.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/Dump.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/Format.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/GenerateCompletions.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/GenerateTestList.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/Init.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/New.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/Outdated.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/Product.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/Registry.swift -primary-file /Users/t8s/github/Ice/Sources/IceCLI/Commands/Remove.swift -primary-file /Users/t8s/github/Ice/Sources/IceCLI/Commands/Reset.swift -primary-file /Users/t8s/github/Ice/Sources/IceCLI/Commands/Resolve.swift -primary-file /Users/t8s/github/Ice/Sources/IceCLI/Commands/Run.swift -primary-file /Users/t8s/github/Ice/Sources/IceCLI/Commands/Search.swift -primary-file /Users/t8s/github/Ice/Sources/IceCLI/Commands/Shared.swift -primary-file /Users/t8s/github/Ice/Sources/IceCLI/Commands/Target.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/Test.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/ToolsVersion.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/Update.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/Version.swift /Users/t8s/github/Ice/Sources/IceCLI/Commands/Xc.swift /Users/t8s/github/Ice/Sources/IceCLI/IceCLI.swift -supplementary-output-file-map /var/folders/nd/hbqbll1n7353pbqfqfglqgzm0000gn/T/supplementaryOutputs-b6e54b -target x86_64-apple-macosx10.10 -enable-objc-interop -sdk /Applications/Xcode12beta0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.16.sdk -I /Users/t8s/github/Ice/.build/x86_64-apple-macosx/debug -I /Applications/Xcode12beta0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Xcode12beta0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -module-cache-path /Users/t8s/github/Ice/.build/x86_64-apple-macosx/debug/ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -enable-anonymous-context-mangled-names -target-sdk-version 10.16 -parse-as-library -module-name IceCLI -o /Users/t8s/github/Ice/.build/x86_64-apple-macosx/debug/IceCLI.build/Commands/Remove.swift.o -o /Users/t8s/github/Ice/.build/x86_64-apple-macosx/debug/IceCLI.build/Commands/Reset.swift.o -o /Users/t8s/github/Ice/.build/x86_64-apple-macosx/debug/IceCLI.build/Commands/Resolve.swift.o -o /Users/t8s/github/Ice/.build/x86_64-apple-macosx/debug/IceCLI.build/Commands/Run.swift.o -o /Users/t8s/github/Ice/.build/x86_64-apple-macosx/debug/IceCLI.build/Commands/Search.swift.o -o /Users/t8s/github/Ice/.build/x86_64-apple-macosx/debug/IceCLI.build/Commands/Shared.swift.o -o /Users/t8s/github/Ice/.build/x86_64-apple-macosx/debug/IceCLI.build/Commands/Target.swift.o -index-store-path /Users/t8s/github/Ice/.build/x86_64-apple-macosx/debug/index/store -index-system-modules
1. Apple Swift version 5.3 (swiftlang-1200.0.16.9 clang-1200.0.22.5)
2. While evaluating request SILGenSourceFileRequest(SIL Generation for file "/Users/t8s/github/Ice/Sources/IceCLI/Commands/Shared.swift")
3. While silgen emitStoredPropertyInitialization SIL function "@$s6IceCLI19ForwardFlagsCommandC17_cCompilerOptions33_431635BFD1C1762A42D09F21B349F735LL05SwiftB011VariadicKeyCySSGvpfi".
for expression at [/Users/t8s/github/Ice/Sources/IceCLI/Commands/Shared.swift:66:6 - line:66:89] RangeText="VariadicKey(keys[0], description: "Pass flag through to all C compiler invocations""
0 swift 0x0000000104decf65 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 37
1 swift 0x0000000104debf65 llvm::sys::RunSignalHandlers() + 85
2 swift 0x0000000104ded51f SignalHandler(int) + 111
3 libsystem_platform.dylib 0x00007fff678465bd _sigtramp + 29
4 libsystem_platform.dylib 0x00007ffeef3241d8 _sigtramp + 18446744071690902584
5 swift 0x0000000100e817ec swift::ASTVisitor<(anonymous namespace)::RValueEmitter, swift::Lowering::RValue, void, void, void, void, void, swift::Lowering::SGFContext>::visit(swift::Expr*, swift::Lowering::SGFContext) + 11660
6 swift 0x0000000100e71c08 swift::Lowering::SILGenFunction::emitRValueAsSingleValue(swift::Expr*, swift::Lowering::SGFContext) + 40
7 swift 0x0000000100e1f9d4 (anonymous namespace)::ArgEmitter::emit(swift::Lowering::ArgumentSource&&, swift::Lowering::AbstractionPattern) + 4484
8 swift 0x0000000100e06f9d (anonymous namespace)::ArgEmitter::emitSingleArg(swift::Lowering::ArgumentSource&&, swift::Lowering::AbstractionPattern) + 173
9 swift 0x0000000100e1e67e (anonymous namespace)::ArgEmitter::emitPreparedArgs(swift::Lowering::PreparedArguments&&, swift::Lowering::AbstractionPattern) + 238
10 swift 0x0000000100e18e4f emitPseudoFunctionArguments(swift::Lowering::SILGenFunction&, swift::Lowering::AbstractionPattern, swift::CanTypeWrapper<swift::FunctionType>, llvm::SmallVectorImpl<swift::Lowering::ManagedValue>&, swift::Lowering::PreparedArguments&&) + 431
11 swift 0x0000000100e189e1 swift::Lowering::SILGenFunction::prepareSubscriptIndices(swift::SubscriptDecl*, swift::SubstitutionMap, swift::AccessStrategy, swift::Expr*) + 417
12 swift 0x0000000100eae965 swift::ASTVisitor<SILGenLValue, swift::Lowering::LValue, void, void, void, void, void, swift::Lowering::SGFAccessKind, swift::Lowering::LValueOptions>::visit(swift::Expr*, swift::Lowering::SGFAccessKind, swift::Lowering::LValueOptions) + 10309
13 swift 0x0000000100e8302c swift::ASTVisitor<(anonymous namespace)::RValueEmitter, swift::Lowering::RValue, void, void, void, void, void, swift::Lowering::SGFContext>::visit(swift::Expr*, swift::Lowering::SGFContext) + 17868
14 swift 0x0000000100e6e165 swift::Lowering::SILGenFunction::emitExprInto(swift::Expr*, swift::Lowering::Initialization*, llvm::Optional<swift::SILLocation>) + 133
15 swift 0x0000000100de0421 swift::Lowering::ArgumentSource::forwardInto(swift::Lowering::SILGenFunction&, swift::Lowering::AbstractionPattern, swift::Lowering::Initialization*, swift::Lowering::TypeLowering const&) && + 369
16 swift 0x0000000100e9315e (anonymous namespace)::RValueEmitter::visitCollectionExpr(swift::CollectionExpr*, swift::Lowering::SGFContext) + 2494
17 swift 0x0000000100e7eabf swift::ASTVisitor<(anonymous namespace)::RValueEmitter, swift::Lowering::RValue, void, void, void, void, void, swift::Lowering::SGFContext>::visit(swift::Expr*, swift::Lowering::SGFContext) + 95
18 swift 0x0000000100e7ee82 swift::ASTVisitor<(anonymous namespace)::RValueEmitter, swift::Lowering::RValue, void, void, void, void, void, swift::Lowering::SGFContext>::visit(swift::Expr*, swift::Lowering::SGFContext) + 1058
19 swift 0x0000000100e71c08 swift::Lowering::SILGenFunction::emitRValueAsSingleValue(swift::Expr*, swift::Lowering::SGFContext) + 40
20 swift 0x0000000100e1f9d4 (anonymous namespace)::ArgEmitter::emit(swift::Lowering::ArgumentSource&&, swift::Lowering::AbstractionPattern) + 4484
21 swift 0x0000000100e06f9d (anonymous namespace)::ArgEmitter::emitSingleArg(swift::Lowering::ArgumentSource&&, swift::Lowering::AbstractionPattern) + 173
22 swift 0x0000000100e1e67e (anonymous namespace)::ArgEmitter::emitPreparedArgs(swift::Lowering::PreparedArguments&&, swift::Lowering::AbstractionPattern) + 238
23 swift 0x0000000100e27825 (anonymous namespace)::CallEmission::emitArgumentsForNormalApply(swift::Lowering::AbstractionPattern, swift::CanTypeWrapper<swift::SILFunctionType>, llvm::Optional<swift::ForeignErrorConvention> const&, swift::ImportAsMemberStatus, llvm::SmallVectorImpl<swift::Lowering::ManagedValue>&, llvm::Optional<swift::SILLocation>&) + 949
24 swift 0x0000000100e0d56f (anonymous namespace)::CallEmission::apply(swift::Lowering::SGFContext) + 3935
25 swift 0x0000000100e0a72c swift::Lowering::SILGenFunction::emitApplyExpr(swift::ApplyExpr*, swift::Lowering::SGFContext) + 2652
26 swift 0x0000000100e7eaa9 swift::ASTVisitor<(anonymous namespace)::RValueEmitter, swift::Lowering::RValue, void, void, void, void, void, swift::Lowering::SGFContext>::visit(swift::Expr*, swift::Lowering::SGFContext) + 73
27 swift 0x0000000100efe66f swift::Lowering::SILGenFunction::emitReturnExpr(swift::SILLocation, swift::Expr*) + 447
28 swift 0x0000000100ea2b2d swift::Lowering::SILGenFunction::emitGeneratorFunction(swift::SILDeclRef, swift::Expr*, bool) + 2029
29 swift 0x0000000100e00d46 swift::Lowering::SILGenModule::emitStoredPropertyInitialization(swift::PatternBindingDecl*, unsigned int)::$_9::operator()(swift::SILFunction*) const + 454
30 swift 0x0000000100df9275 swift::Lowering::SILGenModule::emitStoredPropertyInitialization(swift::PatternBindingDecl*, unsigned int) + 821
31 swift 0x0000000100f097d6 swift::ASTVisitor<(anonymous namespace)::SILGenType, void, void, void, void, void, void>::visit(swift::Decl*) + 630
32 swift 0x0000000100f04a2b (anonymous namespace)::SILGenType::emitType() + 203
33 swift 0x0000000100dfe2a2 swift::ASTVisitor<swift::Lowering::SILGenModule, void, void, void, void, void, void>::visit(swift::Decl*) + 82
34 swift 0x0000000100dfc5c9 (anonymous namespace)::SILGenModuleRAII::emitSourceFile(swift::SourceFile*) + 1417
35 swift 0x0000000100dfbf89 swift::SILGenSourceFileRequest::evaluate(swift::Evaluator&, swift::SILGenDescriptor) const + 137
36 swift 0x0000000100ef6c41 swift::SimpleRequest<swift::SILGenSourceFileRequest, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> > (swift::SILGenDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::SILGenSourceFileRequest const&, swift::Evaluator&) + 33
37 swift 0x0000000100e02dbc llvm::Expected<swift::SILGenSourceFileRequest::OutputType> swift::Evaluator::getResultUncached<swift::SILGenSourceFileRequest>(swift::SILGenSourceFileRequest const&) + 972
38 swift 0x0000000100dfde1d swift::performSILGeneration(swift::FileUnit&, swift::Lowering::TypeConverter&, swift::SILOptions const&) + 173
39 swift 0x00000001009704bf swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 20639
40 swift 0x00000001008f1a97 main + 1255
41 libdyld.dylib 0x00007fff67627c71 start + 1
I think it should be possible to remove the dependency at this time?
ice registry add https://github.com/xxx/xxx xxx
ice add xxx
ice registry remove xxx
ice remove xxx
Error: https://github.com/xxx has no manifest for version 0.1.0
When trying to use Ice with Swift 4.2 (Xcode 10 beta),
Error: couldn't parse Package.swift
always appears.
To reproduce:
echo "4.2" > .swift-version
ice add jakeheis/SwiftCLI
Doing some debugging, here’s the actual JSON parsing error when trying to modify Ice package itself, for example:
keyNotFound(CodingKeys(stringValue: "isTest", intValue: nil), Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "targets", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "No value associated with key CodingKeys(stringValue: \"isTest\", intValue: nil) (\"isTest\").", underlyingError: nil))
Error: couldn't parse Package.swift
Ice is one of the most useful tools out there, I hope it’ll support Xcode 10 as well ;)
Ice looks like an amazing complimentary package manager to the SPM, but it would be even better if developers could use it to build iOS projects as well. Still using SPM as the back-end/infrastructure for Ice, would it be possible to build SPM packages as iOS frameworks and integrate them into an existing app project?
Hey,
I've tried to install Ice on Mojave with Xcode 11.1 (didn't update to 11.2 because of certain bugs). I got the following:
❯ mint install jakeheis/Ice
🌱 Finding latest version of Ice
🌱 Cloning Ice 0.8.0
🌱 Resolving package
🌱 Building package
[1/5] Compiling SwiftCLI ArgumentList.swift
/private/var/folders/l1/b3htrbqd3w3f32x9lk1yll6h0000gn/T/mint/github.com_jakeheis_Ice/.build/checkouts/SwiftCLI/Sources/SwiftCLI/Option.swift:127:21: error: initializer does not override a designated initializer from its superclass
public override init(_ names: String ..., description: String = "", completion: ShellCompletion = .filename, validation: [Validation<Value>] = []) {
^
/private/var/folders/l1/b3htrbqd3w3f32x9lk1yll6h0000gn/T/mint/github.com_jakeheis_Ice/.build/checkouts/SwiftCLI/Sources/SwiftCLI/Option.swift:114:12: note: potential overridden initializer 'init(_:description:completion:validation:)' here
public init(_ names: [String], description: String, completion: ShellCompletion, validation: [Validation<Value>] = []) {
^
/private/var/folders/l1/b3htrbqd3w3f32x9lk1yll6h0000gn/T/mint/github.com_jakeheis_Ice/.build/checkouts/SwiftCLI/Sources/SwiftCLI/Option.swift:141:21: error: initializer does not override a designated initializer from its superclass
public override init(_ names: String ..., description: String = "", completion: ShellCompletion = .filename, validation: [Validation<Value>] = []) {
^
/private/var/folders/l1/b3htrbqd3w3f32x9lk1yll6h0000gn/T/mint/github.com_jakeheis_Ice/.build/checkouts/SwiftCLI/Sources/SwiftCLI/Option.swift:114:12: note: potential overridden initializer 'init(_:description:completion:validation:)' here
public init(_ names: [String], description: String, completion: ShellCompletion, validation: [Validation<Value>] = []) {
^
🌱 Encountered error during "swift build -c release -Xswiftc -target -Xswiftc x86_64-apple-macosx10.14". Use --verbose to see full output
🌱 Failed to build Ice 0.8.0 with SPM
I don't know why this happens, but I used to get this error too with SwiftCLI directly. Do you know what is going on?
At the moment ice run
doesn't handle standard input.
Is this a current limitation of SwiftCLI, or does it support that?
Hi. First of all: great project!
I just tried to add a dependency which sadly has no versions yet.
The workaround for me was to enter 0
and manually edit the Package.swift
file.
$ ice add https://github.com/pointfreeco/swift-overture
Major version: master
Invalid input
Major version: c3082d0c535acd9b6fda9531b54ede37ccbd421d
Invalid input
% ice add adamrushy/OpenAISwift --verbose -1- main [ea4f9de] 4363 13:36:07
3/7/23, 1:36:15 PM: Resolving url: https://github.com/adamrushy/OpenAISwift
3/7/23, 1:36:16 PM: Resolving at version: range("1.2.0", "2.0.0")
3/7/23, 1:36:16 PM: searching for package in /Users/standard/STCData/Nitka
3/7/23, 1:36:16 PM: found package in /Users/standard/STCData/Nitka
Error: couldn't find Package.swift
﷽ ~/STCData/Nitkaاَحْيَآء ࣰ وَأَمْوَٰتا ࣰ
% which ice -1- main [ea4f9de] 4364 13:36:16
/Users/standard/.mint/bin/ice
Hi there,
I get Error: can't parse Package.swift when trying to make a new project using ice new
Is this just because it hasn't been updated for BigSur? I'm using Xcode 12.2
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.