docmirror / dev-sidecar

开发者边车,github打不开,github加速,git clone加速,git release下载加速,stackoverflow加速
Mozilla Public License 2.0
15.74k stars 1.84k forks source link

端口占用弹窗会出现两次, 第二次点击会报错, 虽然并不影响使用. #400

Open linluoran opened 1 week ago

linluoran commented 1 week ago

Ⅰ. 请说明操作系统及DS的版本号:

  1. 操作系统:mac arm sequioa 15.2 Beta版(24C5089c)
  2. DS版本号:1.8.9-node17

Ⅱ. 问题描述:

WX20241121-162717 WX20241121-162726 WX20241121-162733

Ⅲ. 期望的结果:

只弹一次窗口

Ⅳ. 如何复现问题?

遇到端口被占用的时候就会出现这个情况

Ⅴ. 请提供相关的错误日志,尽可能的详细:(日志文件在 ${user.home}/.dev-sidecar/logs/ 目录下)

[2024-11-21T15:24:00.559] [INFO] core - shell: networksetup -setsecurewebproxystate "Wi-Fi" off [2024-11-21T15:24:00.559] [INFO] core - shell: networksetup -setsecurewebproxystate "Wi-Fi" off [2024-11-21T15:24:00.603] [INFO] core - shell: networksetup -setwebproxystate "Wi-Fi" off [2024-11-21T15:24:00.610] [INFO] core - shell: networksetup -setwebproxystate "Wi-Fi" off [2024-11-21T15:24:00.624] [INFO] core - status changed: { key: 'proxy.enabled', value: false } [2024-11-21T15:24:00.624] [INFO] core - 关闭系统代理成功 [2024-11-21T15:24:00.624] [INFO] core - 系统代理已关闭 [2024-11-21T15:24:00.626] [WARN] core - server process exit, code: 0, signal: null [2024-11-21T15:24:00.638] [INFO] core - status changed: { key: 'proxy.enabled', value: false } [2024-11-21T15:24:00.638] [INFO] core - 关闭系统代理成功 [2024-11-21T15:24:00.638] [INFO] core - 系统代理已关闭 [2024-11-21T15:24:01.631] [INFO] core - status changed: { key: 'server.enabled', value: false } [2024-11-21T15:24:01.632] [INFO] core - 代理服务已关闭 [2024-11-21T15:24:01.746] [INFO] core - status changed: { key: 'server.enabled', value: false } [2024-11-21T15:24:01.746] [ERROR] core - 代理服务关闭失败: TypeError: Object has been destroyed at Object.handle (/Applications/dev-sidecar.app/Contents/Resources/app.asar/background.js:2:2544601) at Object.fire (/Applications/dev-sidecar.app/Contents/Resources/app.asar/background.js:2:308224) at h (/Applications/dev-sidecar.app/Contents/Resources/app.asar/background.js:2:1569149) at Object.kill (/Applications/dev-sidecar.app/Contents/Resources/app.asar/background.js:2:1570711) at async Object.close (/Applications/dev-sidecar.app/Contents/Resources/app.asar/background.js:2:1570733) at async Object.shutdown (/Applications/dev-sidecar.app/Contents/Resources/app.asar/background.js:2:776560) at async ve (/Applications/dev-sidecar.app/Contents/Resources/app.asar/background.js:2:2555320)

Ⅵ. 有必要时,请提供 ${user.home}/.dev-sidecar/running.json 文件内容:

wangliang181230 commented 1 day ago

这个问题复现不出来啊 😑