新建项目spec配置中修改了specs路径后,当前项目添加新项目时显示“无法加载规范”问题 #119
XiaozeRain
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
现象:
1.我们的个人项目修改了.lean-spec/config.json中的specsDir
2.启动LeanSpec项目执行创建新项目操作
3.此时会出现“无法加载规范”的问题
建议:
1.修改LeanSpec项目的部分代码
2.rust/leanspec-core/src/utils/project_discovery.rs的find_specs_dir方法
3.rust/leanspec-http/src/project_registry.rs的find_specs_dir方法
4.修改逻辑为:应该是优先从
对应项目的.lean-spec/config.json中去获取,例如:对应项目根目录/.lean-spec/config.json中的spec
sDir,如果取不到才会从默认变量中取
Beta Was this translation helpful? Give feedback.
All reactions