Skip to content

[ 2374924 ] File list in 'cyclic import' error message not correct #393

@HolQue

Description

@HolQue

Use case:

A file A defines a parameter and imports a file B. File B uses this parameter inside an import path to import a file C.
File C changes the value of this parameter and imports file B again (cyclic import of file B).
File B now uses the modified parameter value to import another file D.
File D changes the value of the parameter again and imports file B again (again an cyclic import of file B).
File B now uses the modified parameter value to import another file E.

Now we have two possibilities:

  1. File E stops the sequence (no further imports).
  2. File E resets the parameter to the initial value and imports file B (again an cyclic import of file B).
    This would cause an endless loop, because now again file C will be imported. And so on.

Results:

In booth cases a cyclic import happens that is detected by the JsonPreprocessor properly. But the list of affected files in the exception of the JsonPreprocessor is not correct.

This is covered by self test cases JPP_1165 and JPP_1166.

More details can be found in attached PDF.
CyclicImport.pdf

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions