[GH-ISSUE #2952] update bug because of theme(从1.28.4升级至1.29.5出错,发现原因是theme主题文件不兼容) #1941

Closed
opened 2026-02-27 00:05:24 +03:00 by kerem · 6 comments
Owner

Originally created by @WLaoDuo on GitHub (Sep 5, 2023).
Original GitHub issue: https://github.com/electerm/electerm/issues/2952

Electerm Version and download file extension(Electerm版本和下载文件后缀)

electerm-1.29.2-win-x64-installer.exe,electerm-1.29.4-win-x64-installer.exe,electerm-1.29.5-win-x64-installer.exe

Platform detail (平台详情)

win11,Microsoft Windows NT 10.0.22621.0,x64

What steps will reproduce the bug?(重新问题的详细步骤)

从1.28.4更新至1.29.x,测试过1.29.2/1.29.4/1.29.5,更新完毕后均无法打开。
图片

What should have happened?(期望的结果)

正常启动electerm

Would this happen in other terminal app(是否能够在其他同类软件重现这个问题)

No response

Additional information(其他任何相关信息)

查看了更新日志,1.28.4至1.29.x最大的变化是更新了antd 5。推测是更新antd v5造成的。

Originally created by @WLaoDuo on GitHub (Sep 5, 2023). Original GitHub issue: https://github.com/electerm/electerm/issues/2952 ### Electerm Version and download file extension(Electerm版本和下载文件后缀) electerm-1.29.2-win-x64-installer.exe,electerm-1.29.4-win-x64-installer.exe,electerm-1.29.5-win-x64-installer.exe ### Platform detail (平台详情) win11,Microsoft Windows NT 10.0.22621.0,x64 ### What steps will reproduce the bug?(重新问题的详细步骤) 从1.28.4更新至1.29.x,测试过1.29.2/1.29.4/1.29.5,更新完毕后均无法打开。 ![图片](https://github.com/electerm/electerm/assets/69497874/893a0594-2f42-4132-8563-dc902448ceb1) ### What should have happened?(期望的结果) 正常启动electerm ### Would this happen in other terminal app(是否能够在其他同类软件重现这个问题) _No response_ ### Additional information(其他任何相关信息) 查看了更新日志,1.28.4至1.29.x最大的变化是更新了antd 5。推测是更新antd v5造成的。
kerem 2026-02-27 00:05:24 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@zxdong262 commented on GitHub (Sep 6, 2023):

可以试试v1.30.9吗? https://github.com/electerm/electerm/releases/tag/v1.30.9

<!-- gh-comment-id:1707497631 --> @zxdong262 commented on GitHub (Sep 6, 2023): 可以试试v1.30.9吗? https://github.com/electerm/electerm/releases/tag/v1.30.9
Author
Owner

@WLaoDuo commented on GitHub (Sep 6, 2023):

可以试试v1.30.9吗? https://github.com/electerm/electerm/releases/tag/v1.30.9

测试换到win7虚拟机内可以安装。遂确认您的安装包没问题,是我的环境有问题。遂使用https://github.com/Klocman/Bulk-Crap-Uninstaller/ 卸载并清理C盘残余文件,发现之前残留了不少文件,全部清除后可以正常安装并启动。

排查发现原因是我的主题文件不兼容造成的。

<!-- gh-comment-id:1707515017 --> @WLaoDuo commented on GitHub (Sep 6, 2023): > 可以试试v1.30.9吗? https://github.com/electerm/electerm/releases/tag/v1.30.9 测试换到win7虚拟机内可以安装。遂确认您的安装包没问题,是我的环境有问题。遂使用https://github.com/Klocman/Bulk-Crap-Uninstaller/ 卸载并清理C盘残余文件,发现之前残留了不少文件,全部清除后可以正常安装并启动。 排查发现原因是我的主题文件不兼容造成的。
Author
Owner

@WLaoDuo commented on GitHub (Sep 6, 2023):

重新安装后导入配置又出错了,electerm\users\default_user\electerm.terminalThemes.nedb中删去有问题的theme(huyan)即可正常打开。
图片
发现是我的主题文件有问题:

themeName=huyan

main=#153300
main-dark=#507734
main-light=#2e3338
text=#ddd
text-light=#fff
text-dark=#f4f2ce
text-disabled=#777
primary=#08c
info=#FFD166
success=#06D6A0
error=#EF476
Fwarn=#E55934
terminal:foreground=#B2B01D
terminal:background=#102600
terminal:cursor=#b5bd68
terminal:cursorAccent=#1d1f21
terminal:selection=rgba(255, 255, 255, 0.3)
terminal:black=#575757
terminal:red=#FF2C6D
terminal:green=#19f9d8
terminal:yellow=#FFB86C
terminal:blue=#45A9F9
terminal:magenta=#FF75B5
terminal:cyan=#B084EB
terminal:white=#CDCDCD
terminal:brightBlack=#757575
terminal:brightRed=#FF2C6D
terminal:brightGreen=#19f9d8
terminal:brightYellow=#FFCC95
terminal:brightBlue=#6FC1FF
terminal:brightMagenta=#FF9AC1
terminal:brightCyan=#BCAAFE
terminal:brightWhite=#E6E6E6

<!-- gh-comment-id:1707519845 --> @WLaoDuo commented on GitHub (Sep 6, 2023): 重新安装后导入配置又出错了,electerm\users\default_user\electerm.terminalThemes.nedb中删去有问题的theme(huyan)即可正常打开。 ![图片](https://github.com/electerm/electerm/assets/69497874/aeb154b6-5964-4ace-a9a6-20429e4db4ba) 发现是我的主题文件有问题: themeName=huyan main=#153300 main-dark=#507734 main-light=#2e3338 text=#ddd text-light=#fff text-dark=#f4f2ce text-disabled=#777 primary=#08c info=#FFD166 success=#06D6A0 error=#EF476 Fwarn=#E55934 terminal:foreground=#B2B01D terminal:background=#102600 terminal:cursor=#b5bd68 terminal:cursorAccent=#1d1f21 terminal:selection=rgba(255, 255, 255, 0.3) terminal:black=#575757 terminal:red=#FF2C6D terminal:green=#19f9d8 terminal:yellow=#FFB86C terminal:blue=#45A9F9 terminal:magenta=#FF75B5 terminal:cyan=#B084EB terminal:white=#CDCDCD terminal:brightBlack=#757575 terminal:brightRed=#FF2C6D terminal:brightGreen=#19f9d8 terminal:brightYellow=#FFCC95 terminal:brightBlue=#6FC1FF terminal:brightMagenta=#FF9AC1 terminal:brightCyan=#BCAAFE terminal:brightWhite=#E6E6E6
Author
Owner

@zxdong262 commented on GitHub (Sep 6, 2023):

Fwarn=#E55934

这里多了一个F导致的,去掉F我试了可以的

<!-- gh-comment-id:1707579995 --> @zxdong262 commented on GitHub (Sep 6, 2023): > Fwarn=#E55934 这里多了一个`F`导致的,去掉F我试了可以的
Author
Owner

@zxdong262 commented on GitHub (Sep 6, 2023):

不过这确实是个问题,需要加一个验证,确保符合格式

<!-- gh-comment-id:1707581196 --> @zxdong262 commented on GitHub (Sep 6, 2023): 不过这确实是个问题,需要加一个验证,确保符合格式
Author
Owner

@zxdong262 commented on GitHub (Sep 6, 2023):

还有一处

error=#EF476 -> error=#EF476F
<!-- gh-comment-id:1707622738 --> @zxdong262 commented on GitHub (Sep 6, 2023): 还有一处 ``` error=#EF476 -> error=#EF476F ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1941
No description provided.