openage --version: add Platform block#1798
Open
nicolassanchez02 wants to merge 1 commit into
Open
Conversation
This was referenced May 28, 2026
192632a to
82d65fb
Compare
The --version dump is what we ask users for when triaging crashes, so it should carry enough host info to tell macOS-on-Apple-Silicon apart from Windows-on-AMD64 without a follow-up question. Adds a Platform section with system, kernel, arch, Python implementation, the interpreter path, the openage install path, and the glibc version on Linux. All stdlib, no new deps. Also moves the "== C++ ==" header out of LONGVERSION so it can be printed conditionally, and falls back to a clear "Cython module not built" line when openage.versions hasn't been compiled yet (e.g. when running --version from a partially configured tree). OpenGL version is still TODO; it needs a live GL context, which we don't want to spin up just to satisfy --version. Left as a follow-up. Refs SFTtech#1185.
82d65fb to
0f2f411
Compare
3 tasks
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge Checklist
make checkmergeWhen someone files a bug and we ask for
openage --version, we get the dependency versions but nothing about their machine, so the OS/arch/Python is always a follow-up question. This adds a== Platform ==block with that info (all stdlib, so it works on a tree that isn't built yet) and wraps the existing C++ version block in a try/except, so running it from a half-configured checkout prints a clear "not built" line instead of anImportErrortraceback.Left the OpenGL version out, that needs a live GL context and I didn't want to start the renderer just to answer
--version.Refs #1185.