easyeda / easyeda/easyeda-api-skill
解决firefox浏览器一直重新连接的问题
- Dominant language
- JavaScript
- Stars
- 699
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Description
问题描述(由ai编写qwq)
调用 eda.sch_PrimitiveComponent.create() 时,返回的 Promise 永远不会 resolve 或
reject,导致函数永久挂起。
复现步骤
1. 打开 EasyEDA Pro,新建项目和原理图
2. 安装 run-api-gateway 扩展
3. 通过 Bridge 连接执行以下代码:
```javascript
// 使用 await(永久挂起)
await eda.sch_PrimitiveComponent.create(
{libraryUuid: "0819f05c4eef4c71ace90d822a990e87", uuid:
"db949891a50a4551a6287cd3e6af2131"},
3000, 3000, "", 0, false, true, true
);
// 永远不会返回
// 不使用 await(Promise 永久 pending)
const p = eda.sch_PrimitiveComponent.create(...);
p.then(v => console.log("result:", v)); // 永远不会执行
p.catch(e => console.log("error:", e)); // 永远不会执行
```
期望行为
函数应在组件放置完成后 resolve,返回组件信息或成功状态。
实际行为
- 使用 await 时,函数永久挂起,无返回
- 不使用 await 时,Promise 永久处于 pending 状态
eda.sch_PrimitiveComponent.create() ❌ 永久挂起
环境信息
- EasyEDA Pro 版本:[请填写]
- 操作系统:Windows 11
- 扩展版本:run-api-gateway (最新版)
- Node.js:v22.23.1
附加信息
- 测试了多个组件(USB-C、电阻、HDMI),结果相同
- sch_PrimitiveWire.create() 也有问题(报错 t.toUpperCase is not a function)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing eda.sch_PrimitiveComponent.create() through the Bridge with the supplied component identifiers, then trace that API entry point through the run-api-gateway extension. Check how placement completion and failures settle the Promise; done means the call resolves or rejects instead of remaining pending, with the reported sch_PrimitiveWire.create() error investigated as well.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100