opensumi / core

🚀 A framework helps you quickly build AI Native IDE products.
https://opensumi.com
MIT License
3.01k stars 387 forks source link

[BUG] kill 终端操作,报错 #4036

Open nxps opened 2 months ago

nxps commented 2 months ago

描述你的问题(Describe the bug)

https://preview.opensumi.com/ web IED 点击杀死终端按钮,控制台会报错

image

复现路径(To Reproduce)

点击杀死终端按钮,控制台会报错预期表现(Expected behavior)

环境信息(Environment)

https://preview.opensumi.com/

nxps commented 2 months ago

这是 xterm 产生的问题,最新版本已经修复

相关issue: https://github.com/xtermjs/xterm.js/issues/4757

是否考虑升级版本到 5.4.0-beta.37

或者由于 xterm 迁移到 @xterm 可以替换成

    "@xterm/addon-clipboard": "^0.2.0-beta.47",
    "@xterm/addon-image": "^0.9.0-beta.64",
    "@xterm/addon-search": "^0.16.0-beta.64",
    "@xterm/addon-serialize": "^0.14.0-beta.64",
    "@xterm/addon-unicode11": "^0.9.0-beta.64",
    "@xterm/addon-webgl": "^0.19.0-beta.64",
    "@xterm/headless": "^5.6.0-beta.64",
    "@xterm/xterm": "^5.6.0-beta.64",
Ricbet commented 2 months ago

感谢反馈,我们升级一下

erha19 commented 2 months ago

@nxps 可以提个 PR 上来

nxps commented 1 month ago

@erha19 已提交 PR