Electron build-FileNotFoundError test\u sample\u json\u converter.h

Electron build-FileNotFoundError test\u sample\u json\u converter.h,electron,chromium,gn,Electron,Chromium,Gn,按照本说明页-构建电子 我使用 gn gen out/Testing --args="import(\"//electron/build/args/testing.gn\")" 在下一步中,当我尝试使用ninja-cout/testingelectron构建时,它失败了,出现了以下错误- FileNotFoundError: [Errno 2] No such file or directory: 'gen/third_party/dom_distill

按照本说明页-构建电子

我使用

gn gen out/Testing --args="import(\"//electron/build/args/testing.gn\")"
在下一步中,当我尝试使用
ninja-cout/testingelectron
构建时,它失败了,出现了以下错误-

FileNotFoundError: [Errno 2] No such file or directory: 'gen/third_party/dom_distiller_js/test_sample_json_converter.h'
完整的错误日志

ninja: Entering directory `out/Testing'
[2353/26014] ACTION 
//third_party/dom_distiller_js:json_values_converter_tests(//build/toolchain/win:win_clang_x64)
FAILED: gen/third_party/dom_distiller_js/json_values_converter_tests.stamp
C:/depot_tools/bootstrap-2@3_8_10_chromium_17_bin/python3/bin/python3.exe  ../../third_party/dom_distiller_js/protoc_plugins/json_values_converter_tests.py --stamp gen/third_party/dom_distiller_js/json_values_converter_tests.stamp gen/third_party/dom_distiller_js/test_sample_json_converter.h  ../../third_party/dom_distiller_js/test_sample_json_converter.h.golden
Traceback (most recent call last):
File "../../third_party/dom_distiller_js/protoc_plugins/json_values_converter_tests.py", line 48, in <module> sys.exit(main())
File "../../third_party/dom_distiller_js/protoc_plugins/json_values_converter_tests.py", line 40, in main passed = passed and CompareFiles(i, j)
File "../../third_party/dom_distiller_js/protoc_plugins/json_values_converter_tests.py", line 17, in CompareFiles
return open(file1, 'r').read() == open(file2, 'r').read()
FileNotFoundError: [Errno 2] No such file or directory:  'gen/third_party/dom_distiller_js/test_sample_json_converter.h'
[2358/26014] CXX obj/third_party/webrtc/call/bitrate_allocator/bitrate_allocator.obj
ninja: build stopped: subcommand failed.
忍者:进入目录'out/Testing' [2353/26014]行动 //第三方/dom\u蒸馏器\u js:json\u值\u转换器\u测试(//build/toolchain/win:win\u clang\u x64) 失败:gen/third\u party/dom\u dilleter\u js/json\u values\u converter\u tests.stamp C:/depot\u工具/引导程序-2@3_8_10_chromium_17_bin/python3/bin/python3.exe..//第三方/dom\u蒸馏器\u js/protoc\u插件/json\u值\u转换器\u测试.py--stamp gen/third\u party/dom\u蒸馏器\u js/json\u值\u转换器\u测试.stamp gen/third\u party/dom\u蒸馏器\u js/test\u sample\u json转换器.h../../third_party/dom_Diller_js/test_sample_json_converter.h.golden 回溯(最近一次呼叫最后一次): sys.exit(main())中的第48行文件“./../third_party/dom_diller_js/protoc_plugins/json_values_converter_tests.py” 文件“./../third_party/dom_Dilleter_js/protoc_plugins/json_values_converter_tests.py”,第40行,在主传递=传递和比较文件(i,j)中 文件“./../third_party/dom_Dilleter_js/protoc_plugins/json_values_converter_tests.py”,第17行,在CompareFiles中 返回open(file1,'r').read()==open(file2,'r').read() FileNotFoundError:[Errno 2]没有这样的文件或目录:“gen/third\u party/dom\u dilleter\u js/test\u sample\u json\u converter.h” [2358/26014]CXX obj/third_party/webrtc/call/bitrate_分配器/bitrate_分配器.obj 忍者:构建停止:子命令失败。
我搜索了整个目录,其中只有一个文件名。

我遇到了相同的问题,这是因为我使用的标记(92.0.4505.0)没有提交此文件:


(有问题的目标是
gen/third\u party/dom\u dilleter\u js/json\u values\u converter\u tests.stamp

通常,文件夹
third\u party
包含对其他项目的引用。请参阅。是的,它链接到
dom\u diller\u js
,但我如何解决它?请参阅
gclient sync
命令将提取第三方依赖项。您必须运行一些glient命令,正如我在pageYes@Asesh运行的
gclient-sync(带有分支\u头)中提到的那样,它下载了大约39GB的src代码。