我使用的是安装了xonsh的MiniConda。运行打印(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关键是安装了自动跳转,但它没有加载。
当我运行xontrib load -v autojump时,只收到一条消息,然后shell就会结冰(光标仍在闪烁,但shell没有做任何事情)。其信息是:
loading xontrib 'autojump'我正在小心地使用MiniConda安装中的Python内容(而不是我拥有的其他Python副本)。
有人会对如何调试这个问题有任何想法吗?我很想找到一种方法来了解更多关于发生了什么以及为什么会结冰的信息。
谢谢!
发布于 2020-10-17 22:54:47
尝试在autojump中用THREAD_SUBPROCS=True加载.xonshrc
with ${...}.swap(THREAD_SUBPROCS=True):
xontrib load autojump或者在xonsh中,>= 0.9.23有较短的选项:
$THREAD_SUBPROCS=True xontrib load autojumphttps://stackoverflow.com/questions/59973732
复制相似问题