簡體   English   中英

xontrib autojump 凍結 xonsh shell

[英]xontrib autojump freezes xonsh shell

我正在使用安裝了 xonsh 的 MiniConda。 運行 print(sys.version) 產生:

3.7.4 (default, Aug  9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)]

我不確定我使用的是哪個版本的 xonsh,但我昨天(2020 年 1 月 29 日)安裝了它,這是 conda 命令得到的。

當我運行xontrib list我得到

apt_tabcomplete     not-installed  not-loaded
autojump            installed      not-loaded <======= NOTE!
autovox             installed      not-loaded
autoxsh             not-installed  not-loaded
avox                not-installed  not-loaded
bashisms            installed      not-loaded
base16_shell        not-installed  not-loaded
coreutils           installed      not-loaded
direnv              not-installed  not-loaded
distributed         installed      not-loaded
docker_tabcomplete  not-installed  not-loaded
free_cwd            installed      loaded

關鍵的一點在於autojump安裝,但它沒有加載。

當我運行xontrib load -v autojump我收到一條消息,然后外殼凍結(光標仍在閃爍,但外殼沒有執行任何操作)。 消息是:

loading xontrib 'autojump'

我很小心地使用 MiniConda 安裝中的 Python 東西(不是我擁有的其他 Python 副本)。

有人對如何調試這個有任何想法嗎? 我很想找到一種方法來獲取有關正在發生的事情以及為什么會凍結的更多信息。

謝謝!

嘗試加載autojumpTHREAD_SUBPROCS=True.xonshrc

with ${...}.swap(THREAD_SUBPROCS=True):
  xontrib load autojump

或者在 xonsh >= 0.9.23 中使用更短的替代方案:

$THREAD_SUBPROCS=True xontrib load autojump

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM