ECMAScript
ECMAScript copied to clipboard
classes/Quat.xml not found when attempting to compile
It does seem like this project has been abandoned and the export templates are not available. When attempting to compile it myself, following the steps provided in the README.md, the following error is caught:
$ scons platform=windows use-mingw=yes
scons: Reading SConscript files ...
Configuring for Windows: target=debug, bits=default
Found MSVC version 14.2, arch amd64, bits=64
Note: Building a debug binary (which will run slowly). Use target=release_debug
to build an optimized release binary.
FileNotFoundError: [Errno 2] No such file or directory: 'D:\new godot\godot\doc\classes\Quat.xml':
File "D:\new godot\godot\SConstruct", line 742:
SConscript("modules/SCsub")
File "C:\Python310\lib\site-packages\SCons\Script\SConscript.py", line 660:
return method(*args, **kw)
File "C:\Python310\lib\site-packages\SCons\Script\SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Python310\lib\site-packages\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "D:\new godot\godot\modules\SCsub", line 46:
SConscript(name + "/SCsub") # Built-in.
File "C:\Python310\lib\site-packages\SCons\Script\SConscript.py", line 660:
return method(*args, **kw)
File "C:\Python310\lib\site-packages\SCons\Script\SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "C:\Python310\lib\site-packages\SCons\Script\SConscript.py", line 285:
exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals)
File "D:\new godot\godot\modules\ECMAScript\SCsub", line 31:
generate_builtin_api.generate_api_json(os.path.join(GetLaunchDir(), "modules", os.path.basename(os.getcwd())))
File "D:\new godot\godot\modules\ECMAScript\generate_builtin_api.py", line 420:
tree = ET.parse(open(os.path.join(DOCS_DIR, cls + '.xml'), 'r'))
Just noticed #98, I will try on Godot's older version
Closing in a bit because the issue has a workaround.