Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 使用中文git 更新命令从低版本更新到v2.8时会出现错误 #22

Closed
3 of 4 tasks
DuckDuckStudio opened this issue Jul 20, 2024 · 3 comments · Fixed by #32
Closed
3 of 4 tasks
Labels
bug 某些功能出错 DEV-PR中修复 PR中完全修复或修复部分的 缺少 发行版或仓库缺少文件

Comments

@DuckDuckStudio
Copy link
Owner

DuckDuckStudio commented Jul 20, 2024

[Powered by 虚空终端] PS > 中文git 更新
中文Git by 鸭鸭「カモ」
当前版本:v2.7
正在检查更新...
[!] 发现新版本 v2.7 → v2.8 可用!
? 是否要安装此更新? (是/否): y
✓ 更新成功下载。
✓ 程序已成功更新。
[Powered by 虚空终端] PS > 中文git 版本
Traceback (most recent call last):
  File "D:\Duckhome\projects\MSVS\Source\Repos\Chinese_git\Script\中文git\中文git.py", line 20, in <module>
    with open(config_file, 'r') as file:
         ^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\Duckhome\\projects\\MSVS\\Source\\Repos\\Chinese_git\\Script\\中文git\\config.json'

任务表 (by @Luna-Grace )

  • 确保配置文件存在
  • 确保可以读取配置文件
  • 确保配置文件最新
  • 确保更新时不会覆盖原有配置
@DuckDuckStudio DuckDuckStudio added bug 某些功能出错 缺少 发行版或仓库缺少文件 需要社区帮助 我个人无法解决的问题 DEV-需要注意 DEV:需要注意的任务,可能含有重要信息 labels Jul 20, 2024
@DuckDuckStudio

This comment was marked as resolved.

@DuckDuckStudio DuckDuckStudio pinned this issue Jul 22, 2024
DuckDuckStudio added a commit that referenced this issue Jul 22, 2024
[BUG] 使用`中文git 更新`命令从低于v2.8的版本更新到更新版本时会出现错误 #22
@DuckDuckStudio DuckDuckStudio added 暂停处理 因某些问题暂停处理 and removed 需要社区帮助 我个人无法解决的问题 labels Jul 22, 2024
@DuckDuckStudio DuckDuckStudio removed the 暂停处理 因某些问题暂停处理 label Jul 23, 2024
@DuckDuckStudio DuckDuckStudio changed the title [BUG] 使用中文git 更新命令从低于v2.8的版本更新到更新版本时会出现错误 [BUG] 使用中文git 更新命令从低版本更新到v2.8时会出现错误 Jul 23, 2024
@DuckDuckStudio DuckDuckStudio added the 暂停处理 因某些问题暂停处理 label Jul 23, 2024
@DuckDuckStudio

This comment was marked as resolved.

DuckDuckStudio added a commit that referenced this issue Jul 23, 2024
测试中... [BUG] 使用`中文git 更新`命令从低版本更新到v2.8时会出现错误 #22
@DuckDuckStudio DuckDuckStudio added DEV-已完成 已经完成的Issues 处理中 正在处理中... and removed 暂停处理 因某些问题暂停处理 DEV-已完成 已经完成的Issues DEV-需要注意 DEV:需要注意的任务,可能含有重要信息 labels Jul 23, 2024
@DuckDuckStudio
Copy link
Owner Author

验证链接:

[Powered by 虚空终端] PS> curl https://duckduckstudio.github.io/yazicbs.github.io/Tools/chinese_git/files/json/config.json


StatusCode        : 200
StatusDescription : OK
Content           : {
                        "information": {
                            "version": "v2.9"
                        },
                        "application": {
                            "notice": {
                                "time": "",
                                "level": "",
                                "content": ""
                            },
                            "run": {
                    ...
RawContent        : HTTP/1.1 200 OK
                    Connection: keep-alive
                    permissions-policy: interest-cohort=()
                    Access-Control-Allow-Origin: *
                    Strict-Transport-Security: max-age=31556952
                    x-hosts-log-append: pages_hosts_ips:{ [1] ...
Forms             : {}
Headers           : {[Connection, keep-alive], [permissions-policy, interest-cohort=()], [Access-Control-Allow-Origin, *], [Strict-Transport-Security, max-ag 
                    e=31556952]...}
Images            : {}
InputFields       : {}
Links             : {}
ParsedHtml        : mshtml.HTMLDocumentClass
RawContentLength  : 297

DuckDuckStudio added a commit that referenced this issue Jul 23, 2024
Issue [BUG] 使用`中文git 更新`命令从低版本更新到v2.8时会出现错误 #22
@DuckDuckStudio DuckDuckStudio linked a pull request Jul 23, 2024 that will close this issue
@fjwxzde fjwxzde added DEV-PR中修复 PR中完全修复或修复部分的 and removed 处理中 正在处理中... labels Jul 23, 2024
DuckDuckStudio added a commit that referenced this issue Jul 23, 2024
* fix: 暂时解决缺失配置文件的问题

[BUG] 使用`中文git 更新`命令从低于v2.8的版本更新到更新版本时会出现错误 #22

* feat: 自动更新json配置

测试中... [BUG] 使用`中文git 更新`命令从低版本更新到v2.8时会出现错误 #22

* remove: 移除测试代码

Issue [BUG] 使用`中文git 更新`命令从低版本更新到v2.8时会出现错误 #22

* sync: 同步更新打包版程序

* fix: 修复当已有配置文件无法读取时程序崩溃的问题

🎁 应用建议
Co-authored-by: Luna-Grace <842551475@qq.com>
@fjwxzde fjwxzde unpinned this issue Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 某些功能出错 DEV-PR中修复 PR中完全修复或修复部分的 缺少 发行版或仓库缺少文件
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants