Skip to content
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

Issue when running ui5-schemas - enhance #17

Closed
sfkc opened this issue Feb 18, 2019 · 3 comments
Closed

Issue when running ui5-schemas - enhance #17

sfkc opened this issue Feb 18, 2019 · 3 comments
Labels

Comments

@sfkc
Copy link

sfkc commented Feb 18, 2019

Hey there, have the following issue and not sure if bug in code or something I did. Can you help?
Removed user details.

`C:\Users-\ui5schemas>ui5-schemas

ui5-schemas info Preparing 'sapui5' schemas in version 'latest'...

ui5-schemas info Yay, all schema files were successfully downloaded!

ui5-schemas info [enhance] Making schemas even cooler...

ui5-schemas error [enhance] TypeError: Cannot read property 'xsd:complexType' of undefined

at sapUiCoreView (C:\Users\-\AppData\Roaming\npm\node_modules\ui5-schemas\lib\upgrade.js:27:34)

at parser.parseString (C:\Users\-\AppData\Roaming\npm\node_modules\ui5-schemas\lib\upgrade.js:72:9)

at Parser.<anonymous> (C:\Users\-\AppData\Roaming\npm\node_modules\ui5-schemas\node_modules\xml2js\lib\parser.js:303:18)

at Parser.emit (events.js:189:13)

at SAXParser.onclosetag (C:\Users\-\AppData\Roaming\npm\node_modules\ui5-schemas\node_modules\xml2js\lib\parser.js:261:26)

at emit (C:\Users\-\AppData\Roaming\npm\node_modules\ui5-schemas\node_modules\sax\lib\sax.js:624:35)

at emitNode (C:\Users\-\AppData\Roaming\npm\node_modules\ui5-schemas\node_modules\sax\lib\sax.js:629:5)

at closeTag (C:\Users\-\AppData\Roaming\npm\node_modules\ui5-schemas\node_modules\sax\lib\sax.js:889:7)

at SAXParser.write (C:\Users\-\AppData\Roaming\npm\node_modules\ui5-schemas\node_modules\sax\lib\sax.js:1436:13)

at Parser.exports.Parser.Parser.parseString (C:\Users\-\AppData\Roaming\npm\node_modules\ui5-schemas\node_modules\xml2js\lib\parser.js:322:31)`

Thanks!

@Raptor05
Copy link

Raptor05 commented Mar 6, 2019

Same problem here

@Rob077
Copy link

Rob077 commented Apr 30, 2019

Same issue when using most recent version of ui5-schemas and try to link it with WebStorm 2019.1

ui5-schemas --link

@MaximilienFourmyBeyond
Copy link

This could be solved by providing the version like this:
ui5-schemas --version 1.64.0

For SDK sapui5, so you can find the versions available here:
https://tools.hana.ondemand.com/#sapui5

For openui5, you can find the versions available here:
https://openui5.org/releases/

The issue for sapui5 happens because the schemas url needs the version number :
Plugin try this and it give an error 404:
https://sapui5.hana.ondemand.com/downloads/schemas/sap.ui.demokit.xsd
But with the version number, it's ok :
https://sapui5.hana.ondemand.com/1.64.1/downloads/schemas/sap.ui.core.xsd

With sdk openui5, it's ok, the schemas are downloadable without providing the version in the url.

@cschuff cschuff added the bug label May 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants