箭头和制表键在 sbt 1.0.3 控制台中不起作用 [英] Arrow and tab keys not working in sbt 1.0.3 console

查看:41
本文介绍了箭头和制表键在 sbt 1.0.3 控制台中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用 Scala 2.12.4、sbt 1.0.3、MacOS 10.13.1 运行 sbt 控制台时,箭头键输出类似 ^[[A 的代码,而不是检索最后一个命令和选项卡输出一个制表符而不是自动竞争.如果我直接运行 Scala REPL 或运行 sbt 然后从 sbt 命令行输入 console,那么这些键会按预期运行.所以我可以解决这个问题,这很烦人.我怀疑我遗漏了一些配置,我只是还没有找到.

解决方案

我在 sbt 1.1.0 中遇到了同样的问题.1.1.1 版本中的修复解决了该问题.><块引用>

在作为 sbt 控制台以批处理模式运行时修复了控制台中的选项卡完成.#3841/#3876 @eed3si9n

https://github.com/sbt/sbt/releases/tag/v1.1.1

When running sbt console with Scala 2.12.4, sbt 1.0.3, MacOS 10.13.1, the arrow keys output codes like ^[[A rather than retrieving the last command and tab outputs a tab character rather than autocompete. If I directly run the Scala REPL or run sbt and then from the sbt command line enter console, then these keys operate as expected. So I can work around this issue, it's just annoying. I suspect there is some piece of configuration that I'm missing I just haven't been able to find it yet.

解决方案

I had the same problem in sbt 1.1.0. A fix in the 1.1.1 release resolved the issue.

Fixes tab completion in console while running in batch mode as sbt console. #3841/#3876 by @eed3si9n

https://github.com/sbt/sbt/releases/tag/v1.1.1

这篇关于箭头和制表键在 sbt 1.0.3 控制台中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆