:rocket: UI5 Schemas allows you to develop SAPUI5/OpenUI5 XML at a maximum convenience. It downloads, upgrades and sets up SAPUI5/OpenUI5 XML schemas for a better development experience in your favorite IDE (if it is WebStorm ;).
When I try to use the library for Webstorm I have this log:
C:\Projects\Webstorm\SAPUI5 Apps>ui5-schemas
ui5-schemas info Attempting to download latest version of 'sapui5'. Determining latest version...
ui5-schemas info https://sapui5.hana.ondemand.com/resources/sap-ui-version.json
ui5-schemas info Detected version of sdk 'sapui5' is '1.85.3'
ui5-schemas info Preparing 'sapui5' schemas in version '1.85.3'...
ui5-schemas info Yay, all schema files were successfully downloaded!
ui5-schemas info [enhance] Making schemas even cooler...
ui5-schemas info [link] Discovered an .idea project! Registering schemas...
ui5-schemas error [enhance] TypeError: Cannot read property 'xsd:complexType' of undefined
at sapUiCoreView (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\ui5-schemas\lib\upgrade.js:29:34)
at C:\Projects\Webstorm\SAPUI5 Apps\node_modules\ui5-schemas\lib\upgrade.js:107:9
at Parser. (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\xml2js\lib\parser.js:303:18)
at Parser.emit (node:events:329:20)
at SAXParser.onclosetag (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\xml2js\lib\parser.js:261:26)
at emit (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\sax\lib\sax.js:624:35)
at emitNode (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\sax\lib\sax.js:629:5)
at closeTag (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\sax\lib\sax.js:889:7)
at SAXParser.write (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\sax\lib\sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\xml2js\lib\parser.js:322:31)
at Parser.parseString (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\xml2js\lib\parser.js:5:59)
at C:\Projects\Webstorm\SAPUI5 Apps\node_modules\ui5-schemas\lib\upgrade.js:102:14
ui5-schemas info [link] Schemas successfully registered!
The issue in XSD files - they are empty:
<!doctype html>
When I try to use the library for Webstorm I have this log: C:\Projects\Webstorm\SAPUI5 Apps>ui5-schemas ui5-schemas info Attempting to download latest version of 'sapui5'. Determining latest version... ui5-schemas info https://sapui5.hana.ondemand.com/resources/sap-ui-version.json ui5-schemas info Detected version of sdk 'sapui5' is '1.85.3' ui5-schemas info Preparing 'sapui5' schemas in version '1.85.3'... ui5-schemas info Yay, all schema files were successfully downloaded! ui5-schemas info [enhance] Making schemas even cooler... ui5-schemas info [link] Discovered an .idea project! Registering schemas... ui5-schemas error [enhance] TypeError: Cannot read property 'xsd:complexType' of undefined at sapUiCoreView (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\ui5-schemas\lib\upgrade.js:29:34) at C:\Projects\Webstorm\SAPUI5 Apps\node_modules\ui5-schemas\lib\upgrade.js:107:9 at Parser. (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\xml2js\lib\parser.js:303:18)
at Parser.emit (node:events:329:20)
at SAXParser.onclosetag (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\xml2js\lib\parser.js:261:26)
at emit (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\sax\lib\sax.js:624:35)
at emitNode (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\sax\lib\sax.js:629:5)
at closeTag (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\sax\lib\sax.js:889:7)
at SAXParser.write (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\sax\lib\sax.js:1436:13)
at Parser.exports.Parser.Parser.parseString (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\xml2js\lib\parser.js:322:31)
at Parser.parseString (C:\Projects\Webstorm\SAPUI5 Apps\node_modules\xml2js\lib\parser.js:5:59)
at C:\Projects\Webstorm\SAPUI5 Apps\node_modules\ui5-schemas\lib\upgrade.js:102:14
ui5-schemas info [link] Schemas successfully registered!
The issue in XSD files - they are empty: <!doctype html>
HTTP Status 404 – Not Found
Node JS - v15.2.0. SAP UI5 - 1.85.2