Skip to content

Using LEO-III as library and calling it repeatedly with different arguments leads to the changed arguments being ignored later calls #75

@ColinRothgang

Description

@ColinRothgang

I'm currently testing a hammer tool (for MMT implemented here) that uses LEO-III as a library. As long as LEO-III is only used on one problem at a time this works without problems.
However, when LEO-III's main method is called repeatedly with different (problem file path) arguments the main method seems to ignore the different arguments starting with the second call and uses the same arguments as in the first call to LEO-III.

I think this error originates from the way Configuration objects are initialized in LEO-III.

Concretely, I think the bug is here
There the Configuration object is initialized from the arguments (given to the main method), whenever it isn't already initialized.
However, when LEO-III is repeatedly called the Configuration object is initialized after the first call, meaning that the arguments passed starting with the second call to the main method will be ignored.

I understand that using LEO-III as a library is not the originally intended use case, nevertheless I think it would be worth it to change the initialization code to support repeated library calls to LEO-III as well.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions