Swift repl 在 Linux 的 Windows 子系统中不起作用



我按照 swift 网站上的说明在 Windows (WSSL( 上安装了 Swift for Ubuntu 18.04:https://swift.org/download/#using-downloads

似乎它正在识别版本,但是当我只是键入swift进入 REPL 时,它似乎卡住了,如果不退出终端,我就无法退出外壳:

allen@LAPTOP-C6O7O7KR:~$ swift --version
Swift version 5.0.1 (swift-5.0.1-RELEASE)
Target: x86_64-unknown-linux-gnu
allen@LAPTOP-C6O7O7KR:~$ swift
let x = 5;
print(x)
;
exit
^C
:q
:q
exit
^C

知道为什么会发生这种情况吗?

我认为它与 https://github.com/microsoft/WSL/issues/688 有关

ptrace(PTRACE_TRACEME, 0, 0, 0) = -1 EPERM (Operation not permitted)

最新更新