Code Monkey home page Code Monkey logo

Comments (10)

MikeMcQuaid avatar MikeMcQuaid commented on May 11, 2024 1

I also see this. CC @aleksey @jdhealy @C-l-o-u-d and the venerable @mxcl in case any of you have any insights here on what we're doing wrong in https://github.com/Homebrew/homebrew-core/blob/master/Formula/swift.rb

from homebrew-core.

fgimian avatar fgimian commented on May 11, 2024 1

@MikeMcQuaid that's exactly what my setup was also. After install Xcode yesterday, the version in /usr/bin works too 😄

However, another problem is that installing Python from Homebrow causes heads pf Python exceptions when running the version in /usr/bin:

e.g.

raceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'run_one_line' is not defined

I'm not 100% sure how to get around this as I need the Homebrew Python installed and wouldn't mind using the Xcode Swift while learning Swift.

Open to thoughts and ideas 😄

from homebrew-core.

MikeMcQuaid avatar MikeMcQuaid commented on May 11, 2024

Actually, I see the issue: run /usr/local/opt/swift/bin/swift rather than /usr/bin/swift and you'll not see these errors (they come from Apple's swift, not ours).

from homebrew-core.

fgimian avatar fgimian commented on May 11, 2024

Yup, that works, I feel so silly 😄 Thanks!

from homebrew-core.

MikeMcQuaid avatar MikeMcQuaid commented on May 11, 2024

Well, I did the same thing at first so: don't!

from homebrew-core.

mxcl avatar mxcl commented on May 11, 2024

Seems like lldb is loading the wrong libraries, /cc @ddunbar

If we're doing wrong, we'll file a bug.

from homebrew-core.

MikeMcQuaid avatar MikeMcQuaid commented on May 11, 2024

@mxcl Thanks! FYI it seems to be only reproducible when you have the CLT installed but not Xcode.

from homebrew-core.

jonathancbarros avatar jonathancbarros commented on May 11, 2024

I am also getting exactly the same problem that @fgimian is when trying to run Swift directly on REPL.

from homebrew-core.

MikeMcQuaid avatar MikeMcQuaid commented on May 11, 2024

@fgimian @JonathanBarrosGIT Please open a new issue.

from homebrew-core.

philosopherdog avatar philosopherdog commented on May 11, 2024

Run 'pip install six'. Apparently the REPL relies on Python and if you've been messing with the default version you may run into this error. #2712 .

from homebrew-core.

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.