[swift-users] Swift on Fedora

2017-01-31 Thread Susruthan Seran via swift-users
Hello All, I've found Swift support for Ubuntu but I'm using Fedora. Is there any way to install it on Fedora? Kind Regards, Susruthan Seran ___ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users

Re: [swift-users] Generic initializer's parameter type not being resolved

2017-01-31 Thread Hooman Mehr via swift-users
Update your where clause to: where Type: PluginDataProtocol, Type.Parent == Monster { > On Jan 31, 2017, at 10:36 AM, Andrey Fidrya via swift-users > wrote: > > Hi All, > > I've encountered a very strange problem where generic initializer's parameter > type isn't resolved correctly

[swift-users] Using reflection to write assertions

2017-01-31 Thread Stefanos Zachariadis via swift-users
Hi all, I recently wrote a library ( https://moto.co.de/blog/writing_reflective_test_assertions_with_swift.html ) to use to write assertions for one of my projects ( https://cyclema.ps ). The goal of the exercise is: I like to write things using TDD. In order to assert that things are produced the

Re: [swift-users] using "swift build" with code that depends on frameworks

2017-01-31 Thread Aaron Bohannon via swift-users
Thanks. Using the latest Swift snapshot, I was able to get `swift build` to work on my code -- although I also had to hack the build script for the AudioKit framework so that I could recompile it with the latest Swift snapshot, too. On Tue, Jan 31, 2017 at 11:47 AM, Ankit Aggarwal wrote: > Hi,

Re: [swift-users] Debugger woes

2017-01-31 Thread Jim Ingham via swift-users
From the symptoms, it looks like the compiler is not holding onto "background" because it is no longer used. That's a desirable thing to do for optimized code, but not at -O0. What happens if you rewrite this to: let background = sceneView.snapshot().cgImage! le

Re: [swift-users] Debugger woes

2017-01-31 Thread Jon Shier via swift-users
This is pretty normal debugger behavior for me. Issues with printing variables clearly in scope, using types or operators from other modules, and poor performance happen every time I try to debug Swift under Xcode. I’ve never found anything that works reliably. Jon > On Jan 31, 2017,

[swift-users] Debugger woes

2017-01-31 Thread Maury Markowitz via swift-users
I hope this is the right place to ask this: I'm using Xcode Version 8.2.1 (8C1002) and I'm trying to find out what's going wrong in my Swift3 app. Here's the code: let background = sceneView.snapshot().cgImage! let cropped = background.cropping(to: overlayView.fra

Re: [swift-users] using "swift build" with code that depends on frameworks

2017-01-31 Thread Ankit Aggarwal via swift-users
Hi, Yep the ordering was fixed in this PR: https://github.com/apple/swift-package-manager/pull/715 SwiftPM will offer build settings in future to handle this properly. On Tue, Jan 31, 2017 at 11:05 PM, Aaron Bohannon via swift-users < swift-users@swift.org> wrote: > I am trying to compile code f

[swift-users] Generic initializer's parameter type not being resolved

2017-01-31 Thread Andrey Fidrya via swift-users
Hi All, I've encountered a very strange problem where generic initializer's parameter type isn't resolved correctly unless explicitly casted. Below is playground code for reproducing the problem and compiler error I'm getting. After removing "as! Type.Parent" cast the code won't compile anymore

[swift-users] using "swift build" with code that depends on frameworks

2017-01-31 Thread Aaron Bohannon via swift-users
I am trying to compile code for macOS that depends on the AudioKit framework. This can be done using `swiftc`, as long as one passes the flag `-target x86_64-apple-macosx10.11`. So, in theory, it should be possible to use `swift build` by passing it these flags: -Xswiftc -target -Xswiftc x86