Git Product home page Git Product logo

Comments (6)

mxcl avatar mxcl commented on June 21, 2024

how'd you install swift sh?

from swift-sh.

chrispix avatar chrispix commented on June 21, 2024

brew install swift-sh

❯ which swift-sh
/opt/homebrew/bin/swift-sh

from swift-sh.

mxcl avatar mxcl commented on June 21, 2024

Thanks for the report, I really don’t have time to debug this and nothing comes to mind. It could be Swift 5.7 doesn't work. /cc @wti

from swift-sh.

wti avatar wti commented on June 21, 2024

Your script works for me on Intel macOS 13.1 with Swift 5.7.1 installed via homebrew. I also tried #!/usr/bin/env swift-sh.

To isolate and make a reproducible case, you could start by cloning the project and running the tests

git clone https://github.com/mxcl/swift-sh.git
swift test

from swift-sh.

chrispix avatar chrispix commented on June 21, 2024

Well this is kind of crazy, but it seems to be a side effect of the directory I was running it from. I did the following:

  1. Cloned swift-sh, ran tests. Success.
  2. In that directory, created my test script, ran it. Success.
  3. Went back to directory I was in when I reported the issue (~/Downloads), ran my test script. Failed.
  4. Copied that test script to my home directory, ran it. Success.
  5. Copied the test script from step 1 to ~/Downloads, ran it. Failed.

So I'll keep playing around to see if the problem arises again. If getting to the bottom of this is something you want to pursue, I'm happy to run additional tests.

from swift-sh.

mxcl avatar mxcl commented on June 21, 2024

K this is a bug in that the CWD shouldn't cause failure.

from swift-sh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.