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

使用本地配置时配置yaml格式错误无报错提示 #1491

Closed
5 of 6 tasks
getopenwrt opened this issue Sep 3, 2024 · 1 comment
Closed
5 of 6 tasks

使用本地配置时配置yaml格式错误无报错提示 #1491

getopenwrt opened this issue Sep 3, 2024 · 1 comment
Labels
S: Untriaged T: Bug Something isn't working

Comments

@getopenwrt
Copy link

getopenwrt commented Sep 3, 2024

复现步骤 / Step to reproduce

1)配置页面添加Local Profile配置,留空新建,点菜单编辑信息删除默认行“rules: []”,粘贴一份配置(配置中有一处缩进错误)点击ok后配置保存完成,点击这个配置文件出现绿点,再次点击菜单编辑信息界面仍显示默认行“rules: []”,点击菜单打开文件可以看到粘贴的配置信息。这个情况配置本身不可用,但界面没有任何错误提示。
2)添加Local Profile配置时选择文件方式添加有同样的问题。

预期行为 / Expected behaviour

1)如果添加Local Profile配置有问题不可用应给出错误提示。
2)如果对添加Local Profile配置yaml格式不做校验也行,但在点击配置后配置不可用应该给出错误提示。

实际行为 / Actual Behaviour

添加的配置信息:
image

点击ok后:
image

点击菜单编辑信息:
image
点击菜单打开文件:
image

应用日志 / App logs

1)描述现象进行了多次复现操作且容易复现,考虑到终端本身有网络活动,日志有节点及连接信息,不便提供日志。

备注 / Addition details

No response

环境信息 / Environment information

----------- System -----------
OS: Windows 10 Pro 19045
Arch: x86_64
----------- Device -----------
CPU: AMD Ryzen 7 4800U with Radeon Graphics @ 1.80GHz x 16
Memory: 14.87 GiB
----------- Core -----------
clash-rs: clash-rs 0.3.0
clash: Clash n2023-09-05-gdcc8d87 windows amd64 with go1.21.0 Tue Sep 5 14:32:57 UTC 2023
mihomo-alpha: Mihomo Meta alpha-38fd371 windows amd64 with go1.23.0 Thu Aug 29 16:08:34 UTC 2024 Use tags: with_gvisor
mihomo: Mihomo Meta v1.18.7 windows amd64 with go1.22.5 Sun Jul 28 05:48:59 UTC 2024 Use tags: with_gvisor
----------- Build Info -----------
App Name: clash-nyanpasu
App Version: 0.1.0
Pkg Version: 1.6.0
Commit Hash: edf8e8d
Commit Author: github-actions[bot]
Commit Date: 2024-08-29T19:09:44.000Z
Build Date: 2024-08-29T19:18:20.042Z
Build Profile: Release
Build Platform: x86_64-pc-windows-msvc
Rustc Version: rustc 1.82.0-nightly (100fde524 2024-08-28)
Llvm Version: 19.1

自查步骤 / Verify steps

  • 如果您有足够的时间和能力,并愿意为此提交 PR ,请勾上此复选框 / Pull request is welcome. Check this if you want to start a pull request
  • 您已知悉如果没有提供正确的系统信息,以及日记,您的 Issue 会直接被关闭 / You have known that if you don't provide correct system information and logs, your issue will be closed directly
  • 您已仔细查看并知情 Q&AFAQ 中的内容 / You have read and understood the contents of Q&A and FAQ.
  • 您已搜索过 Issue Tracker,没有找到类似内容 / I have searched on Issue Tracker, No duplicate or related open issue has been found
  • 您确保这个 Issue 只提及一个问题。如果您有多个问题报告,烦请发起多个 Issue / Ensure there is only one bug report in this issue. Please make mutiply issue for mutiply bugs
  • 您确保已使用最新 Pre-release 版本测试,并且该问题在最新 Pre-release 版本中并未解决 / This bug have not solved in latest Pre-release version
@getopenwrt getopenwrt added S: Untriaged T: Bug Something isn't working labels Sep 3, 2024
@greenhat616
Copy link
Collaborator

greenhat616 commented Sep 5, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: Untriaged T: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants