所以我在 jshell 中摆弄了一些代码,但是当我按下 Tab 时它开始崩溃。
int[] a = new int[]{1, 2, 5, 0, -1}
在我的下一个语句中,当我输入时 A-r-r-a,然后(Tab)自动完成数组并获取选项,它崩溃了
Error on input: java.io.IOException: Resource temporarily unavailable
有人知道如何解决这个问题吗?
编辑:我正在使用 Elementary OS Juno。它是一个基于 Ubuntu 18.04 的发行版
最佳答案
我相信这可能是https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1813873的结果,它表示缺少两个补丁中的第二个补丁,并且
This second patch is required to prevent a rather serious regression where userspace applications reading from stdin can receive EAGAIN when they should not.
(请注意,EAGAIN 是“资源暂时不可用”)。我可以在运行内核 4.15.0-44 或 4.15.0-45 时重现此 jshell 错误,但在运行 4.15.0-43 时则无法重现。如果我对上述 bug 的浏览准确的话,似乎应用了补丁的新内核版本应该在 3 月 4 日发布。
关于java - jshell中按Tab时出现 "Error on input: java.io.IOException: Resource temporarily unavailable",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54859244/