Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-8371] Jupyter Kernel should start the Swift REPL with the current target triple #50898

Open
pvieito opened this issue Jul 25, 2018 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. jupyter swift for tensorflow

Comments

@pvieito
Copy link

pvieito commented Jul 25, 2018

Previous ID SR-8371
Radar None
Original Reporter @pvieito
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Swift for TensorFlow
Labels Bug, jupyter
Assignee None
Priority Medium

md5: 7d5be4f46ed24d3eaaed7d93a4227e3a

Issue Description:

Right now the Kernel launches the REPL with self.debugger.CreateTargetWithFileAndArch(repl_swift, ''), this starts the session with the target triple set to x86_64-apple-macosx10.10 in all versions of macOS.

This means that trying to use newer system APIs always throws the following error:

In [1]:
import Foundation
FileManager.default.homeDirectoryForCurrentUser

Out [1]:
error: <REPL>:1:21: error: 'homeDirectoryForCurrentUser' is only available on OS X 10.12 or newer

Launching the Swift REPL from the Terminal allows the use of modern APIs directly so there must be a way to start it with the current target triple.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. jupyter swift for tensorflow
Projects
None yet
Development

No branches or pull requests

1 participant