Skip to content

dsh-git-idea 0.2.2

Choose a tag to compare

@mays-hi mays-hi released this 17 Sep 11:56
· 10 commits to main since this release

0.2.1 重启后,页面报「Failed to load plugins」,或只看到:

git plugin: the shell Service is unavailable; no RPC registered

原因在主机那半侧:apply 用 ctx.get('shell') 直接读服务,而提供 shell 的 bash-sandbox 自己还停在 subprocess / sandbox / sandboxPolicy 上等它们就绪。于是插件先 apply、读不到,按自己的守卫直接返回,一条 RPC 都没注册(对 /dsh-git-idea/rpc 的调用一律答 git/config is not registered),预置的路由还在,所以看起来像「插件加载失败」。

这一版把 shell 改成声明式依赖(inject: ['shell']),由 Cordis 等到执行器就绪再 apply——产品自带的 dsh-tool-bash 用的就是同一个。829 条断言全绿,另外给发布产物加了一条守卫:host 半侧必须声明 inject: ['shell'],client 半侧必须定义 styles(这是这套布局先后踩到的两个安装期故障)。

安装

dsh plugin --profile web add dsh-git-idea@0.2.2