WSL“伪终端”的GIT自动完成将不会被分配,因为Stdin不是终端。

发布于 2025-01-26 11:51:49 字数 662 浏览 3 评论 0原文

自动完成与所有命令都很好地工作,除非我使用git启动命令行。当我尝试使用tab键自动完成命令行时,我的shell触发了此错误:

伪末端不会分配,因为stdin不是终端。

我已经看到了很多麻烦,但是每个错误都是关于ssh命令,在这种情况下,我没有运行SSH。

至少有任何问题,问题,还是在触发此错误时,在哪个文件,命令,软件包,...?

所有使用的版本:

  • wsl2 正在运行 ubuntu 20.04 ,使用原始OS Windows 11
  • git版本 2.25.1 2.25.1
  • bash-completion 已安装的终端安装的包装
  • hyper.js 3.2.0

感谢您的帮助。

Autocompletion work well with all command except when I start my command line with git. When I'm trying to autocomplete command line with tab key, my shell trigger this error :

Pseudo-terminal will not be allocated because stdin is not a terminal.

I've seen lot's of trouble arround this error, but every error was about ssh command and I'm not running ssh in this case.

Is there any stuff to find at least, the problem, or just when this error is triggered, in which file, command, package, ...?

All version used:

  • WSL2 is running Ubuntu 20.04, with original OS Windows 11
  • Git version 2.25.1
  • bash-completion package installed
  • Terminal used is Hyper.js 3.2.0

Thanks for your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谜泪 2025-02-02 11:51:49

rprichard/wslbridge第45 ,您可能需要将Hyper.js配置为Hyper.js,使用 wslbridge2 而不是。

对于WSL的最新变化,尤其是WSL模式V2,应使用新的网关WSLBRIDGE2。

这个旧 vercel/hyper >显示了如何设置WSLBridge。它可以适应使用WSLBRIDGE2。

As illustrated in rprichard/wslbridge issue 45, you might need to configure Hyper.js to use wslbridge2 instead.

For recent changes in WSL, particularly WSL mode V2, the new gateway wslbridge2 should be used instead.

This old vercel/hyper issue 1127 showed how to set wslbridge. It can be adapted to use wslbridge2.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文