-
Notifications
You must be signed in to change notification settings - Fork 323
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
Revert "Add Meta.engine_version
"
#11336
Conversation
This reverts commit 21bd05f.
Do we not want a way to get the version of the engine and the libs at runtime? |
If it is supposed to be used by code, then indeed it needs more design. This was just a little debug tool. I think it could have been useful as a debug tool, but I don't want to argue about it. I guess ideally, we'd want the IDE to display the currently running engine version next to the GUI version. This could probably be achieved by adding some Language Server endpoint. But that requires additional coordination between GUI and LS teams. |
i guess @4e6 @MrFlashAccount for discussion |
We should be able to get a version within the libs code but yes should be built properly. |
I believe we should expose the version to the code. And we should expose not only a single version, but multiple ones! To quote Practical API Design Chapter 2: "The Motivation to Create an API", page 21:
E.g. it is OK to have However I am against exposing concatenated text messages that require parsing to be processed by a machine. It is a well known antipattern which has bitten many. See for example Practical API Design, Chapter 3: "Determining what makes a good API", page 31:
Last, but not least I agreed to disagree with @radeusgd that exposing an API annotated with Next time anyway gets an idea to modify a builtin, please involve @JaroslavTulach in the review. |
Reverts #11320
@JaroslavTulach suggested that such a text-based API is an anti-pattern and so we should back out the PR.
When running locally, we probably should be able to rely on digging through logs to find the engine version that was picked up.