slash-hq / slash

Slack terminal client.
Apache License 2.0
172 stars 16 forks source link

Segmentation Fault with brew install #10

Closed philipperemy closed 7 years ago

philipperemy commented 7 years ago
[19:02:59 - 16-12-25] /Users/philipperemy/PycharmProjects/Visual-Ballistic-Roulette-Vision % brew install https://raw.githubusercontent.com/slash-hq/slash/master/slash.rb
######################################################################## 100.0%
==> Downloading https://github.com/slash-hq/slash/archive/0.1.0.tar.gz
==> Downloading from https://codeload.github.com/slash-hq/slash/tar.gz/0.1.0
######################################################################## 100.0%
==> xcodebuild -workspace slash.xcodeproj/project.xcworkspace -derivedDataPath prefix.to_s -configuration Release -scheme slash SYMROOT=/usr/local/Cellar/slash/0.1.0/Build
Last 15 lines from /Users/philipperemy/Library/Logs/Homebrew/slash/01.xcodebuild:
        let paddedName = text.characters.count > availableWidth ? text.substring(to: text.index(text.startIndex, offsetBy: availableWidth)) :
                                                                  ^~~~ ~~~~~~~~~
/tmp/slash-20161225-94869-1qwxzra/slash-0.1.0/Sources/ChannelsListView.swift:60:27: error: value of type 'String' has no member 'padding'
            .text(context.teamName.padding(toLength: R.dimen.channelsListWidth, withPad: " ", startingAt: 0))
                  ~~~~~~~~^~~~~~~~ ~~~~~~~

<unknown>:0: error: unable to execute command: Segmentation fault: 11
<unknown>:0: error: compile command failed due to signal (use -v to see invocation)
** BUILD FAILED **

The following build commands failed:
    CompileSwift normal x86_64
    CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)

READ THIS: https://git.io/brew-troubleshooting
niklasberglund commented 7 years ago

Seems like it's trying to compile with a legacy Swift version. String.padding was introduced in Swift 3. Guessing it's the Use Legacy Swift Language Version build setting for the project that should be set to No.

damian-kolakowski commented 7 years ago

yeah, it looks like @niklasberglund is right. @philipperemy Could you plese check the version of Swfit? xcrun swift -version p.s. we are going to remove xcode dependency soon (https://github.com/slash-hq/slash/issues/1).