mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-19 19:33:46 -04:00
!279 merge fix_mcc into master
add solution of target config for build-profile config
Created-by: leeduo
Commit-by: liduo
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)
add solution of target config for build-profile config
### 二、建议测试周期和提测地址
建议测试完成时间:xxxx.xx.xx
投产上线时间:xxxx.xx.xx
提测地址:CI环境/压测环境
测试账号:
### 三、变更内容
* 3.1 关联PR列表
* 3.2 数据库和部署说明
1. 常规更新
2. 重启unicorn
3. 重启sidekiq
4. 迁移任务:是否有迁移任务,没有写 "无"
5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"
* 3.4 其他技术优化内容(做了什么,变更了什么)
- 重构了 xxxx 代码
- xxxx 算法优化
* 3.5 废弃通知(什么字段、方法弃用?)
不涉及
* 3.6 后向不兼容变更(是否有无法向后兼容的变更?)
不涉及
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
自测测试结论:Pass
### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
检查点:不涉及
接口测试:不涉及
性能测试:不涉及
并发测试:不涉及
其他:不涉及
See merge request: openharmony/developtools_global_resource_tool!279
This commit is contained in:
+32
-22
@@ -1,22 +1,32 @@
|
||||
{
|
||||
"default": {
|
||||
"cn": "https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/restool",
|
||||
"en": "https://developer.huawei.com/consumer/en/doc/harmonyos-guides/restool"
|
||||
},
|
||||
"faqs": [
|
||||
{
|
||||
"code": 11201001,
|
||||
"cn": "https://developer.huawei.com/consumer/cn/doc/harmonyos-faqs/faqs-compiling-and-building-181",
|
||||
"en": "https://developer.huawei.com/consumer/en/doc/harmonyos-faqs/faqs-compiling-and-building-181"
|
||||
},
|
||||
{
|
||||
"code": 11211120,
|
||||
"extSolutions": [
|
||||
{
|
||||
"fileName": "module.json",
|
||||
"solution": "Check whether the hvigorfile.ts in the project root directory or the module.json5 file in the module directory references undefined resources."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
"default": {
|
||||
"cn": "https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/restool",
|
||||
"en": "https://developer.huawei.com/consumer/en/doc/harmonyos-guides/restool"
|
||||
},
|
||||
"faqs": [
|
||||
{
|
||||
"code": 11201001,
|
||||
"cn": "https://developer.huawei.com/consumer/cn/doc/harmonyos-faqs/faqs-compiling-and-building-181",
|
||||
"en": "https://developer.huawei.com/consumer/en/doc/harmonyos-faqs/faqs-compiling-and-building-181"
|
||||
},
|
||||
{
|
||||
"code": 11211120,
|
||||
"extSolutions": [
|
||||
{
|
||||
"fileName": "module.json",
|
||||
"solution": "Check whether the hvigorfile.ts in the project root directory or the module.json5 file in the module directory references undefined resources."
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"code": 11210016,
|
||||
"cn": "https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/ide-hvigor-build-profile#section754823013348, https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/restool",
|
||||
"en": "https://developer.huawei.com/consumer/en/doc/harmonyos-guides/ide-hvigor-build-profile#section754823013348, https://developer.huawei.com/consumer/en/doc/harmonyos-guides/restool",
|
||||
"extSolutions": [
|
||||
{
|
||||
"solution": "Check whether the buildOption->resOptions->qualifiersConfig configuration in the module-level build-profile.json5 file is correct."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -833,16 +833,22 @@ void PrintError(const ErrorInfo &error)
|
||||
return;
|
||||
}
|
||||
errMsg.append("* Try the following:").append("\n");
|
||||
for (const auto &solution : error.solutions_) { errMsg.append(" > ").append(solution).append("\n"); }
|
||||
auto faq = faqInfos.find(error.code_);
|
||||
if (faq != faqInfos.end()) {
|
||||
std::vector<ExtSolution> extSolutions = faq->second.extSolutions;
|
||||
for (const auto &solution : extSolutions) {
|
||||
if (solution.fileName.empty()) {
|
||||
errMsg.append(" > ").append(solution.solution).append("\n");
|
||||
continue;
|
||||
}
|
||||
if (FileEntry(error.position_).GetFilePath().GetFilename() == solution.fileName) {
|
||||
errMsg.append(" > ").append(solution.solution).append("\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
for (const auto &solution : error.solutions_) {
|
||||
errMsg.append(" > ").append(solution).append("\n");
|
||||
}
|
||||
std::string moreInfo;
|
||||
if (osLanguage == Language::CN) {
|
||||
if (!error.moreInfo_.cn.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user