Skip to content

Object Ninja ignores objects assigned within #if ... sometimes. #120

Description

@rdebath

After the fix for the previous issue (thanks) I think I see what rules this uses (eg: how "#if not false and" toggles it) and why I was still getting object number collisions, but perhaps a bit of documentation might be in order? Especially with respect to how it looks like it breaks "replace recorded object ID assignments with actual state".

In addition I suspect some sort of toggle along the lines of this might be nice:

  • Ignore code inside "#if" if the condition does not begin with "not"
  • Ignore all code inside '#if' regions.
  • Ignore only code in '#if false' regions.

Note, it is impossible to "get this right", because it's quite possible for a pipeline to compile different versions (eg: OnPrem and Cloud) at exactly the same time.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions