swift repl 在 linux 的 windows 子系统中不起作用

All*_*ang 5 swift windows-subsystem-for-linux ubuntu-18.04

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

似乎它正在识别版本,但是当我键入swift进入REPL时,它似乎卡住了,我无法退出shell而不退出终端:

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
Run Code Online (Sandbox Code Playgroud)

任何想法为什么会发生这种情况?

小智 2

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

ptrace(PTRACE_TRACEME, 0, 0, 0) = -1 EPERM (Operation not permitted)
Run Code Online (Sandbox Code Playgroud)