-
Notifications
You must be signed in to change notification settings - Fork 455
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
Enable VT code based highlighting on Windows if supported #1146
Enable VT code based highlighting on Windows if supported #1146
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1146 +/- ##
=======================================
Coverage 25.13% 25.13%
=======================================
Files 170 170
Lines 18325 18325
=======================================
Hits 4606 4606
Misses 13719 13719 ☔ View full report in Codecov by Sentry. |
The compilation fails on MinGW. It seems the constant |
Yep, busy looking at it. Bit weird. Not sure if MinGW is making use of some other set, possibly older set of Windows header files compared to the MSVC builds. I never made any changes to the set of Windows specific header files to get this code to build on MSVC. So suspecting MinGW may be using an older set before this define was included. Lines 60 to 69 in dbf2eec
|
The define was added to the Windows 10 SDK around 2017. |
Where and how do we install MinGW? I thought it might be pre-installed in the https://github.com/actions/runner-images/blob/main/images/windows/Windows2019-Readme.md No immediate, obvious section in here that I spot in terms of installing MinGW. https://github.com/JSBSim-Team/jsbsim/blob/master/.github/workflows/cpp-python-build.yml |
Well, MinGW is also a name for "compiling with the gcc compiler on Windows". So in the document you mentioned, the |
In the link I mentioned above they say that |
OK I think I've found the issue. Still in the link I mentioned previously they say:
And since the |
Talking of |
Well, the idea is to support the oldest platform available to support users that cannot upgrade their platform for whatever reason. It's the same idea that makes the script support all versions of Python since 3.8. |
What sort of support are we thinking of? If we compile JSBSim on github using VS2022 that doesn't mean a user can't compile JSBSim on their own PC using VS2019. Unless we specifically switch to say assuming and using C++20 features and VS2019 (I haven't double-checked) only supports say C++17. |
Well, according to PR #1020 successfully compiling on MSVC 2019 does not mean a successful compilation on VS 2015... I'm no specialist in this area but just acknowledging the user feedback. |
6e7f55d
to
41c01af
Compare
I've a pushed a commit and rebased this PR so it is now successfully compiling on MinGW. However the unit test jsbsim/tests/unit_tests/FGLogTest.h Lines 321 to 325 in dbf2eec
and at some other places. |
Yep, so as long as the unit tests are executed on Windows 10 or later then they'll pass if you remove the ifdefs. |
Done ! The PR now compiles successfully on all platforms and I have gorgeous colors in my terminal on Windows as well 😄 Thanks for the PR. |
You'll have to spend more time on Windows then to enjoy it 😉 |
No description provided.