-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
ALL
-
Security 2018-12-31
idlc.py fails to report errors correctly during dependency analysis if the idl file has an error.
idlc.py reports that it failed to get dependencies with a None de-reference instead of reporting the errors discovered during idl file load.
Example:
Traceback (most recent call last): File "buildscripts/idl/idlc.py", line 95, in <module> main() File "buildscripts/idl/idlc.py", line 88, in main success = idl.compiler.compile_idl(compiler_args) File "D:\mongo\buildscripts\idl\idl\compiler.py", line 206, in compile_idl _write_dependencies(parsed_doc.spec) File "D:\mongo\buildscripts\idl\idl\compiler.py", line 119, in _write_dependencies if not spec.imports: AttributeError: 'NoneType' object has no attribute 'imports'Failed on node: build\v1\mongo\db\matcher\schema\encrypt_schema_gen.h