question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`sap.ui.version` missing `@public` in API reference of `sap/ui/Global`

See original GitHub issue

URL (minimal example if possible): https://openui5nightly.hana.ondemand.com/api/sap.ui

Currently, the API reference page of the namespace sap.ui doesn’t mention sap.ui.version. I believe it’s because the JSDoc tags @public, @readonly, and @name sap.ui.version are missing at: https://github.com/SAP/openui5/blob/8d2e7dc6a1cfad10e972f631fdea38115ab34a05/src/sap.ui.core/src/sap/ui/Global.js#L71-L79

This would result in a new section “Fields” in the sap.ui API reference page (similar to https://openui5nightly.hana.ondemand.com/api/sap.ui.core.Component.registry#properties) which doesn’t exist there yet.

According to the section “Don’t use references to global names”, sap.ui.version is one of the exceptions that can be still used via the global name.

OpenUI5 provides a couple of static modules and (factory) functions that can be referred to via their global name:

    • sap.ui.version

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
boghyoncommented, Mar 4, 2022

@codeworrior @flovogt Thanks for letting us know.

Somewhat related (please correct me if I’m wrong): the sap/ui/VersionInfo currently relies on the generated sap-ui-version.json file which in typical cases contains the framework version with the correct patch level (in SAPUI5 cases). Standalone apps, however, report the app version instead. Related enhancement request: https://github.com/SAP/ui5-tooling/issues/353.

AFAIK, i.e. there is currently no reliable way for standalone SAPUI5 apps to determine the correct patch version.

1reaction
IlianaBcommented, Nov 16, 2021

I will first check with the team is it feasible.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sap.m.List - API Reference - Demo Kit - SAPUI5 SDK
Defines the custom visualization if there is no data available. Note: If both a noDataText property and a noData aggregation are provided, the...
Read more >
UI API Missing ? | SAP Community
The UI API is an executable and not a dll. It's called SAPbouiCOM.exe and should be in the SBO application folder (C:\Program Files\SAP\SAP...
Read more >
Run a UI5 sample application from the documentation
You need to run ui5 init. once in your project directory. It will create the missing ui5.yaml and then ui5 serve -o index.html...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found