krzyzanowskim / OnlineSwiftPlayground

Online Swift Playground
http://online.SwiftPlayground.run
Other
245 stars 31 forks source link

`run.sh` isn't working producing tons of errors #14

Closed valeriyvan closed 5 years ago

valeriyvan commented 5 years ago
Screenshot 2019-05-08 at 12 09 18 Screenshot 2019-05-08 at 12 20 00
krzyzanowskim commented 5 years ago

looks good here. The warnings from screenshot comes from building node modules, it may be more relevent to your local nodejs env.

$ node -v v11.13.0

valeriyvan commented 5 years ago

v12.1.0

krzyzanowskim commented 5 years ago
$ ./run.sh

> fsevents@1.2.9 install /Users/marcinkrzyzanowski/Devel/OnlineSwiftPlayground/node_modules/fsevents
> node install

node-pre-gyp WARN Using needle for node-pre-gyp https download
[fsevents] Success: "/Users/marcinkrzyzanowski/Devel/OnlineSwiftPlayground/node_modules/fsevents/lib/binding/Release/node-v67-darwin-x64/fse.node" is installed via remote

> websocket@1.0.26 install /Users/marcinkrzyzanowski/Devel/OnlineSwiftPlayground/node_modules/websocket
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/validation.node

> babel-env@2.4.1 postinstall /Users/marcinkrzyzanowski/Devel/OnlineSwiftPlayground/node_modules/babel-env
> node ./bin/babel-env

added 848 packages from 611 contributors and audited 9954 packages in 11.081
krzyzanowskim commented 5 years ago

I did deps update right now, you may want to give it a try.. it basically run npm install to build dependencies, I don't think I can do more about it.

valeriyvan commented 5 years ago

And now it works! One minor thing. Script depends on having /Applications/Xcode.app/Contents/Developer/usr/bin/ in PATH otherwise xcrun --sdk macosx --find xctest fails to run. Not sure if it worth mentioning.

krzyzanowskim commented 5 years ago

/usr/bin/xcrun suppose to be available on any macOS, and I don't even have /Applications/Xcode.app/Contents/Developer/usr/bin/ in my PATH

valeriyvan commented 5 years ago

xcrun is in /usr/bin/ but xctest isn't!

krzyzanowskim commented 5 years ago

xcrun is in /usr/bin/ but xctest isn't!

uh, it must be called by Swift Package Manager, I don't recall call it by myself.