[GH-ISSUE #1835] 终端直接回车,报错问题 #1097

Closed
opened 2026-02-27 00:02:13 +03:00 by kerem · 3 comments
Owner

Originally created by @bb7788 on GitHub (Sep 29, 2020).
Original GitHub issue: https://github.com/electerm/electerm/issues/1835

Electerm version:v1.5.4

Operating system(linux, macos, or windows7/8/10?):

macOS Catalina

Expected Behavior

点击加号创建“新连接”,在下方批量输入个命令比如ls,在回到终端直接回车,就会显示“出错了”。

这是错误信息
Need at least a key or a value or a label (only for OptGroup) for [object Object]
Error: Need at least a key or a value or a label (only for OptGroup) for [object Object] at A (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1.js:283:76522) at file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1.js:283:109539 at Array.forEach () at Function.we.getOptionsInfoFromProps (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1.js:283:109512) at we.getDerivedStateFromProps (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1.js:283:108613) at Lc (file:///Applications/electerm.app/Contents/Resources/app.asar/node_modules/react-dom/umd/react-dom.production.min.js?1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1:67:290) at rh (file:///Applications/electerm.app/Contents/Resources/app.asar/node_modules/react-dom/umd/react-dom.production.min.js?1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1:101:395) at zj (file:///Applications/electerm.app/Contents/Resources/app.asar/node_modules/react-dom/umd/react-dom.production.min.js?1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1:228:490) at Th (file:///Applications/electerm.app/Contents/Resources/app.asar/node_modules/react-dom/umd/react-dom.production.min.js?1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1:152:223) at tj (file:///Applications/electerm.app/Contents/Resources/app.asar/node_modules/react-dom/umd/react-dom.production.min.js?1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1:152:152)

Can you reproduce the same behavior in other terminal:

Current Behavior

Possible Solution

Steps to Reproduce

Context (Environment)

Detailed Description

Suggestions?

Originally created by @bb7788 on GitHub (Sep 29, 2020). Original GitHub issue: https://github.com/electerm/electerm/issues/1835 <!--- Provide some basic info --> ## Electerm version:v1.5.4 ## Operating system(linux, macos, or windows7/8/10?): macOS Catalina ## Expected Behavior <!--- Tell me what should happen --> 点击加号创建“新连接”,在下方批量输入个命令比如ls,在回到终端直接回车,就会显示“出错了”。 这是错误信息 Need at least a key or a value or a label (only for OptGroup) for [object Object] Error: Need at least a key or a value or a label (only for OptGroup) for [object Object] at A (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1.js:283:76522) at file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1.js:283:109539 at Array.forEach (<anonymous>) at Function.we.getOptionsInfoFromProps (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1.js:283:109512) at we.getDerivedStateFromProps (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1.js:283:108613) at Lc (file:///Applications/electerm.app/Contents/Resources/app.asar/node_modules/react-dom/umd/react-dom.production.min.js?1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1:67:290) at rh (file:///Applications/electerm.app/Contents/Resources/app.asar/node_modules/react-dom/umd/react-dom.production.min.js?1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1:101:395) at zj (file:///Applications/electerm.app/Contents/Resources/app.asar/node_modules/react-dom/umd/react-dom.production.min.js?1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1:228:490) at Th (file:///Applications/electerm.app/Contents/Resources/app.asar/node_modules/react-dom/umd/react-dom.production.min.js?1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1:152:223) at tj (file:///Applications/electerm.app/Contents/Resources/app.asar/node_modules/react-dom/umd/react-dom.production.min.js?1.5.4-f6ccfd6bc8f046c554fb47a0fa2967e00e0877b1:152:152) ## Can you reproduce the same behavior in other terminal: <!--- If same bahavior happens in other terminal, maybe it is supposed to be like this or not a problem of terminal app --> ## Current Behavior <!--- Tell me what happens instead of the expected behavior --> ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1. 2. 3. 4. ## Context (Environment) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> ## Detailed Description <!--- Provide a detailed description of the change or addition you are proposing --> ## Suggestions? <!--- Not a bug report, just some thoughts or suggestions? It is totally OK and welcome too -->
kerem closed this issue 2026-02-27 00:02:13 +03:00
Author
Owner

@zxdong262 commented on GitHub (Sep 29, 2020):

"在回到终端直接回车" 这个是什么操作,怎么回到?直接点击终端吗?

<!-- gh-comment-id:700671008 --> @zxdong262 commented on GitHub (Sep 29, 2020): "在回到终端直接回车" 这个是什么操作,怎么回到?直接点击终端吗?
Author
Owner

@zxdong262 commented on GitHub (Sep 29, 2020):

哦我知道了,感谢反馈

<!-- gh-comment-id:700682277 --> @zxdong262 commented on GitHub (Sep 29, 2020): 哦我知道了,感谢反馈
Author
Owner

@bb7788 commented on GitHub (Sep 30, 2020):

"在回到终端直接回车" 这个是什么操作,怎么回到?直接点击终端吗?

就是在打开的“新连接” 终端里面直接敲回车键

<!-- gh-comment-id:701117103 --> @bb7788 commented on GitHub (Sep 30, 2020): > "在回到终端直接回车" 这个是什么操作,怎么回到?直接点击终端吗? 就是在打开的“新连接” 终端里面直接敲回车键
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#1097
No description provided.