JohnSundell / Marathon

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

"illegal hardware instruction" error message when try to edit a script #185

Open maximkhatskevich opened 6 years ago

maximkhatskevich commented 6 years ago

It happens when I have a 'Marathonfile' in the root folder and that file contains references to a local folder or another script.

For example, if I have Setup.swift script and no Marathonfile at all, when I call

marathon edit Setup.swift

it opens Xcode as expected.

If I add a URL into Marathonfile like this:

https://github.com/JohnSundell/Files.git

and then call

marathon edit Setup.swift

it opens Xcode as expected, no problem.

BUT if I add references to a folder (with valid package, in the example below current folder contains package) or reference to another (existing!) swift file in the same folder like shown below:

https://github.com/JohnSundell/Files.git
./
AnotherScript.swift

when I run

marathon edit Setup.swift

I get a very weird message like following:

[1]    10603 illegal hardware instruction  marathon edit Setup.swift

NOTE, that the 5-digit number is always different, but the following message is always the same.

If I remove references to local files - everything starts working again.

Any ideas what's going on and how to fix? Thanks!