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

第一次打开idea的时候有些规则不生效 #1103

Open
gghxjava opened this issue Feb 27, 2024 · 4 comments
Open

第一次打开idea的时候有些规则不生效 #1103

gghxjava opened this issue Feb 27, 2024 · 4 comments
Labels
status: work-in-progress Currently being worked on type: bug Something isn't working

Comments

@gghxjava
Copy link

大佬 第一次打开idea的时候 ApiOperation 的value 名字没有给上

@gghxjava gghxjava added the type: bug Something isn't working label Feb 27, 2024
@tangcent
Copy link
Owner

能找到原因吗? remote配置没加载成功?

@tangcent tangcent added the status: work-in-progress Currently being worked on label Feb 27, 2024
@gghxjava
Copy link
Author

我在断点的时候 发现了一个很奇怪的现象
image
当我执行完tryLoadRecommend()这个方法之后 直接就进入了finally
然后又跳回来了执行了 后面的tryLoadBuiltIn 和 tryLoadRemote
这就让我有点不理解了,并且在执行完tryLoadRecommend 方法的时候 有些规则就被校验了 但由于后面两个的方法的规则没有加载进来 导致有些规则不生效
这是问题的原因 但是我不太明白 在什么情况下 会出现先执行finally 在执行后面的代码的情况

@gghxjava
Copy link
Author

我能确保的是 你这方法 并没有报错或者抛异常 他也能够正确的识别到所有的规则 但是他的第一次idea打开的时候规则的校验时机似乎有问题 您可以试试 很容易复现的 当你第一次打开idea并上传数据的时候 tryLoadRecommend() 这个方法执行完成之后会直接finally

@tangcent
Copy link
Owner

我试试把配置加载这块重构一下,现在有点复杂了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: work-in-progress Currently being worked on type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants