Skip to content

Conversation

@lgritz
Copy link
Collaborator

@lgritz lgritz commented May 15, 2025

Our fmath_test (a.k.a. unit_fmath) test was failing with an exception thrown by the fmt library because we used a width specifier when formatting a TypeDesc.

It was really only an issue when using old fmt < 10.0, so I'm just solving it trivially by ignoring that specifier for old fmt. It doesn't seem necessary to make it work correctly with width specifiers for old versions, when we don't in any way rely on it.

Our fmath_test (a.k.a. unit_fmath) test was failing with an exception
thrown by the fmt library because we used a width specifier when
formatting a TypeDesc.

It was really only an issue when using old fmt < 10.0, so I'm just
solving it trivially by ignoring that specifier for old fmt. It
doesn't seem necessary to make it work correctly with width specifiers
for old versions, when we don't in any way rely on it.

Signed-off-by: Larry Gritz <[email protected]>
@lgritz lgritz added bug Crash or wrong behavior of an existing feature. internals Internal changes, not public APIs build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration. labels May 15, 2025
@lgritz
Copy link
Collaborator Author

lgritz commented May 17, 2025

Pre-emptively merging because this fixes an important test breakage for some people using old versions of fmtlib. (But can't possibly break anybody using more recent versions, since the changes are entirely inside an #if that is only active for those old versions.)

@lgritz lgritz merged commit 96c536e into AcademySoftwareFoundation:main May 17, 2025
30 checks passed
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request May 17, 2025
Our fmath_test (a.k.a. unit_fmath) test was failing with an exception
thrown by the fmt library because we used a width specifier when
formatting a TypeDesc.

It was really only an issue when using old fmt < 10.0, so I'm just
solving it trivially by ignoring that specifier for old fmt. It doesn't
seem necessary to make it work correctly with width specifiers for old
versions, when we don't in any way rely on it.

Signed-off-by: Larry Gritz <[email protected]>
@lgritz lgritz deleted the lg-fmttypedesc branch May 17, 2025 17:49
scott-wilson pushed a commit to scott-wilson/OpenImageIO that referenced this pull request May 18, 2025
Our fmath_test (a.k.a. unit_fmath) test was failing with an exception
thrown by the fmt library because we used a width specifier when
formatting a TypeDesc.

It was really only an issue when using old fmt < 10.0, so I'm just
solving it trivially by ignoring that specifier for old fmt. It doesn't
seem necessary to make it work correctly with width specifiers for old
versions, when we don't in any way rely on it.

Signed-off-by: Larry Gritz <[email protected]>
Signed-off-by: Scott Wilson <[email protected]>
zachlewis pushed a commit to zachlewis/OpenImageIO that referenced this pull request Aug 1, 2025
Our fmath_test (a.k.a. unit_fmath) test was failing with an exception
thrown by the fmt library because we used a width specifier when
formatting a TypeDesc.

It was really only an issue when using old fmt < 10.0, so I'm just
solving it trivially by ignoring that specifier for old fmt. It doesn't
seem necessary to make it work correctly with width specifiers for old
versions, when we don't in any way rely on it.

Signed-off-by: Larry Gritz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Crash or wrong behavior of an existing feature. build / testing / port / CI Affecting the build system, tests, platform support, porting, or continuous integration. internals Internal changes, not public APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant