-
Notifications
You must be signed in to change notification settings - Fork 23
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
Many regular expression tests fail with CMake 3.31 #51
Comments
If you clean, then re-do I would not personally expect files generated by one version of CMake to work exactly the same when processed by a different version of CMake. |
Could you delete |
This is a good point. I should have made it clear in the original report that re-using the environment after upgrading CMake is not required to reproduce this, and I only did it to demonstrate that the regression is associated with CMake 3.31 rather than with something else in my environment. The results if I repeat the exercise in a completely clean checkout and use CMake 3.31.1 from the beginning are exactly as in the original report above. In fact, this originally appeared in Fedora’s |
@musicinmybrain thanks for the clarification and the bugzilla link! Just for my own understanding, how does "sphinx 8" come into the picture? Is that Sphinx the Python doc system? |
Well, this is the only regex-code diff I can find at the moment. I'm wondering if there's some strange truthiness rule we're triggering. (But that's just speculation on my part.) |
Right, the sequence of events was:
In the end, Sphinx is a red herring that has nothing to do with the problem. It just happened to be changing around the same time as CMake. |
Thanks! That makes sense. I did a few searches in cmake issues without success. Does anybody have time to bisect this in cmake? I am happy to do so but it may be a while before I have time :( . |
To keep them aligned with the main CMakeLists.txt file. Seems to be the cause of editorconfig/editorconfig-core-py#51, since CMake warned about dropping compatibility below 3.10 a few versions ago.
#56 should have fixed this -- the CI passed with could you try with the latest master branch? I'm not sure exactly how, but the fix (editorconfig/editorconfig-core-test#57) seems to resolve CMake's warning about dropping compatibility below 3.10 a few versions ago. This may still be a CMake bug because it should simply report an error if the min required version is below 3.10. Or, it can be a CMake regression that failed to implement an old policy somewhere between 3.5 and 3.16. |
We can't remain v0.12.x after this fix: we will bump to v0.17, to keep up with the spec version, because there is a behavior change introduced in #56. If you need a fix for 0.12.x, please try to apply the patches in editorconfig/editorconfig-core-test#53 and editorconfig/editorconfig-core-test#57 to the |
With CMake 3.31.1 and ef927af, I repeated:
That looks good! Then, as suggested, I backported editorconfig/editorconfig-core-test#53 and editorconfig/editorconfig-core-test#57 as patches for the Fedora package, and that worked too. Thank you for investigating this! I’m surprised that bumping the minimum CMake version alone turned out to be a fix. |
Perfect! Closing now |
Also published new version v0.17.0 |
https://bugzilla.redhat.com/show_bug.cgi?id=2330142
With CMake 3.30.5, as a “control” to show that I’m running the tests correctly:
Ok, great! Now, upgrading CMake from 3.30.5 to 3.31.1, and re-running:
All of the failing tests have output similar to
I’m not sure quite what changed here, or how to fix it. I didn’t see anything obviously relevant in https://cmake.org/cmake/help/latest/release/3.31.html.
The text was updated successfully, but these errors were encountered: