New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix incorrect string manipulation #43739
base: develop
Are you sure you want to change the base?
Fix incorrect string manipulation #43739
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This still doesn't work for me. I get: Error: AttributeError: type object 'super' has no attribute 'with_or_without'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fails like:
==> Error: AttributeError: 'list' object has no attribute 'replace'
Because with_or_without returns a list of arguments, not a single string. Are you able to test these changes against spack develop before committing? Do you have a test case where the "=yes" string is present? It doesn't show up when I print the results of with_or_without from my default scorep install. (The only argument returned for me is "--without-shmem")
I do not have a working develop environment at present, and do not have many cycles free to create one. A working test case for the =yes string should be generated via any MPI or SHMEM variant that is not explicitly included in the subsequent mapping (e.g. OneAPI MPI, see #43700).
If |
I wasn't sure if this should go to the issue or this PR... but for reference: #43700 (comment) |
rstrip
was of course intended, not sure howremove_suffix
worked under any conditions.Fixes #43716.