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.

openui5 XSD files with errors

See original GitHub issue

Hello,

I’m using openui5-sdk-1.52.9

The XSD files can’t be used to generate intellisense/autocompletion for Visual Studio 2017. It gives the following error:

_Type 'sap.ui.core:TooltipBaseType’ is not declared, or is not a simple type.

I thought that it could be a Visual Studio issue but I downloaded “UI development toolkit for HTML5” for Eclipse and I see that there you have XML templates instead of using the XSD files, because they don’t work either. Also other XSD tools I’ve tried complained about the XSD files in download/schemas

I have tried several views and it always happens. For example:

<mvc:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m"
          controllerName="myController" displayBlock="true">
    <App>
        <Page title="Tittle">
            <Panel id="myOuterPanel">
                <Button text="Button"></Button>
            </Panel>
        </Page>
    </App>
</mvc:View>

Could you please fix the XSDs? Maybe you can also add a build step to validate the generated XSDs files.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
emumanucommented, Jun 14, 2018

In the meantime I created valid XSDs for some of the OpenUI5 libraries here:

https://github.com/emumanu/OpenUI5Sharp

They work with Visual Studio 2017

0reactions
codeworriorcommented, Jul 11, 2019

We discussed this again internally and won’t invest any further in the XSD schema generation:

  • The mismatch between the current schemas and the development best practices for XMLViews (library namespace vs. package namespace) are too big to fix the issues in the existing generation
  • we have no capacity for implementing a totally new generation, but the necessary information should already be available externally (in the form of the api.json files)
  • experimenting with a different approach of tailoring the XSD namespaces along the runtime packages failed due to cyclic dependencies between packages – WebIDE has anyhow chosen to use a non-XSD approach
  • @emumanu (thankfully) created a workaround for OpenUI5 at least

Sorry for not having a better update.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using XML Schemas when working with UI5 XML Views
First, you'll need the XSD's for the UI5 libraries. You can find these by looking inside the libraries folder inside the JAR file...
Read more >
SAP/Open UI5 - IntelliJ IDEs Plugin - JetBrains Marketplace
This is the SAP/Open UI5 Plugin for IDEA Platforms. Email. Issue Tracker. ... Update UI5 libraries to 1.36.5. ... Added more xsd documents...
Read more >
Check for 'file not found' or parse errors - Stack Overflow
Even if the WebIDE doesn't show errors the XML can be invalid. You can validate XML with external Tools, just search for XML...
Read more >
ui5-schemas - npm
Use any available OpenUI5/SAPUI5 version in your project. Switch versions with ease! Known Limitations. The xml schema files provided by SAP ...
Read more >
SAP Table: /UI5/DESCR_MANIFEST_1_9_0_S - SAP JSON schema ...
UI5 /DESCR_MANIFEST_1_9_0_S is a standard SAP UI5 Application Infrastructure on Web ... Description: SAP JSON schema for Web Application Manifest File 1.9.0.
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