Skip to content
This repository was archived by the owner on Jan 4, 2020. It is now read-only.

Conversation

@johndpope
Copy link

Problem I faced was related to swift version which I'll troubleshoot - but rather than just a dead end - should spoon feed users on how to troubleshoot. Or ideally - just dish this verbose stuff up on errors.

(django) ➜ SyncForks marathon run helloWorld.swift --verbose
🏃 $ cd "/Users/johnpope/.marathon/Scripts/Cache/-Users-johnpope-Documents-gitWorkspace-SyncForks-helloWorld/" && readlink OriginalFile
/Users/johnpope/Documents/gitWorkspace/SyncForks/helloWorld.swift
$ cd "/Users/johnpope/Documents/gitWorkspace/SyncForks/" && /usr/bin/env xcrun --sdk macosx swift package --version
Apple Swift Package Manager - Swift 5.1.0 (swiftpm-14672.3)
$ cd "/Users/johnpope/.marathon/Scripts/Cache/-Users-johnpope-Documents-gitWorkspace-SyncForks-helloWorld/" && /usr/bin/env xcrun --sdk macosx swift build -C /Users/johnpope/.marathon/Scripts/Cache/-Users-johnpope-Documents-gitWorkspace-SyncForks-helloWorld/
[1/3] Compiling helloWorld main.swift
:0: error: invalid value '5.1' in '-swift-version 5.1'
:0: note: valid arguments to '-swift-version' are '4', '4.2', '5'
warning: '--chdir/-C' option is deprecated; use '--package-path' instead
💥 Failed to compile script

(django) ➜  SyncForks marathon run helloWorld.swift --verbose
🏃  $ cd "/Users/johnpope/.marathon/Scripts/Cache/-Users-johnpope-Documents-gitWorkspace-SyncForks-helloWorld/" && readlink OriginalFile
   /Users/johnpope/Documents/gitWorkspace/SyncForks/helloWorld.swift
   $ cd "/Users/johnpope/Documents/gitWorkspace/SyncForks/" && /usr/bin/env xcrun --sdk macosx swift package --version
   Apple Swift Package Manager - Swift 5.1.0 (swiftpm-14672.3)
   $ cd "/Users/johnpope/.marathon/Scripts/Cache/-Users-johnpope-Documents-gitWorkspace-SyncForks-helloWorld/" && /usr/bin/env xcrun --sdk macosx swift build -C /Users/johnpope/.marathon/Scripts/Cache/-Users-johnpope-Documents-gitWorkspace-SyncForks-helloWorld/
   [1/3] Compiling helloWorld main.swift
   <unknown>:0: error: invalid value '5.1' in '-swift-version 5.1'
   <unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5'
   warning: '--chdir/-C' option is deprecated; use '--package-path' instead
💥  Failed to compile script
@johndpope
Copy link
Author

related - #206

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant