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

Helpers for πŸ’₯ Failed to compile script #207

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

None yet

1 participant