JohnSundell / Marathon

[DEPRECATED] Marathon makes it easy to write, run and manage your Swift scripts 🏃
MIT License
1.87k stars 78 forks source link

Helpers for 💥 Failed to compile script #207

Open johndpope opened 5 years ago

johndpope commented 5 years ago

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
johndpope commented 5 years ago

related - https://github.com/JohnSundell/Marathon/issues/206