[SR-8371] Jupyter Kernel should start the Swift REPL with the current target triple #50898
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
jupyter
swift for tensorflow
Additional Detail from JIRA
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 tox86_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.
The text was updated successfully, but these errors were encountered: