Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-38446

idlc.py fails to report errors correct during dependency analysis

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.7
    • 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 

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: