nw.js 62 build error (canning error. Illegal character)

16 views
Skip to first unread message

Meraj Jilani

unread,
Mar 22, 2022, 9:28:20 AM3/22/22
to nw.js, Roger Wang
Hi Roger,

I am trying to build nw.js version 62 (using python3 from depot_tool) and seeing below error:

E:\nwjs62\src>ninja -C out/nw nwjs
ninja: Entering directory `out/nw'
[3227/49095] ACTION //content/nw/src/a...r(//build/toolchain/win:win_clang_x64)
FAILED: gen/content/nw/src/api/nw_current_window_internal.cc gen/content/nw/src/
api/nw_current_window_internal.h
C:/depot_tools/bootstrap-2@3_8_10_chromium_23_bin/python3/bin/python3.exe ../../
tools/json_schema_compiler/compiler.py ../../content/nw/src/api/nw_current_windo
w_internal.idl --root=../../ --destdir=gen --namespace=extensions::nwapi::%(name
space)s --generator=cpp --include-rules=extensions/common/api:extensions::nwapi:
:%(namespace)s

../../content\nw\src\api\nw_current_window_internal.idl(5) : Unexpected EoF reac
hed after

^
'canning error. Illegal character '
Traceback (most recent call last):
  File "../../tools/json_schema_compiler/compiler.py", line 211, in <module>
    result = GenerateSchema(opts.generator, file_paths, opts.root, opts.destdir,

  File "../../tools/json_schema_compiler/compiler.py", line 98, in GenerateSchem
a
    type_generator = CppTypeGenerator(api_model,
  File "E:\nwjs62\src\tools\json_schema_compiler\cpp_type_generator.py", line 35
, in __init__
    self._default_namespace = list(model.namespaces.values())[0]
IndexError: list index out of range
[3229/49095] ACTION //third_party/blin...s(//build/toolchain/win:win_clang_x64)
ninja: build stopped: subcommand failed.

Can you help what is going wrong here?

Thanks,
Meraj

Reply all
Reply to author
Forward
0 new messages