Comments (6)
This could actually being solved using this vscode extension:
https://marketplace.visualstudio.com/items?itemName=IBM.XMLLanguageSupport#overview
I'll look into supporting this natively. Contributions welcome :) Working example repo would be helpful, too.
BR
Chris
from ui5-schemas.
Hi,
Were you able to get this running in VSCode?
Using this configuration I'm getting following error:
ct-props-correct.4: Error for type '_ViewType'. Duplicate attribute uses with the same name and target namespace are specified. Name of duplicate attribute use is 'controllerName'.
My configuration:
"xmlLang.xmlAssociations": [{
"fileNamePattern": "**/*.+(view|fragment).xml",
"systemId": "xsd/sap.ui.core.xsd",
}]
from ui5-schemas.
Duplicate of #1
BR
Chris
from ui5-schemas.
Here is a snippet for a .vscode/settings.json
you could use for now:
{
"xmlLang.javaHome": "C:\\Program Files\\Java\\jdk1.8.0_152",
"xmlLang.xmlAssociations": [
{
"fileNamePattern": "**/*.+(view|fragment).xml",
"systemId": "C:\\[USER_HOME]\\AppData\\Roaming\\UI5Experts\\ui5-schemas\\sapui5\\[VERSION]\\sap.ui.core.xsd"
},
{
"fileNamePattern": "**/*.+(view|fragment).xml",
"systemId": "C:\\[USER_HOME]\\AppData\\Roaming\\UI5Experts\\ui5-schemas\\sapui5\\[VERSION]\\sap.ui.layout.xsd"
},
{
"fileNamePattern": "**/*.+(view|fragment).xml",
"systemId": "C:\\[USER_HOME]\\AppData\\Roaming\\UI5Experts\\ui5-schemas\\sapui5\\[VERSION]\\sap.m.xsd"
}
]
}
from ui5-schemas.
@kozubikmichal You could get rid of that by omiting the enhancement until #14 is fixed:
npx ui5-schemas --no-upgrade
from ui5-schemas.
@kozubikmichal #14 was just fixed with 0.4.2
from ui5-schemas.
Related Issues (20)
- add support vscode HOT 2
- Something went all wrong while downloading the schema files! HOT 7
- TypeError: Cannot read property 'xsd:complexType' of undefined HOT 1
- Atom support? HOT 3
- Duplicate attributes due to enhancement
- Support: is there a bug in the UI5 XSD files? HOT 1
- Issue when running ui5-schemas - enhance HOT 3
- Cannot install schemas - runtime exception HOT 1
- ui5-schemas shell script fails to link WebStorm's ProjectResources HOT 7
- Aggregations that can be written as properties HOT 1
- Binding Syntax HOT 4
- Bound aggregation attributes HOT 1
- ui5-schemas error [enhance] Error: Unexpected close tag HOT 1
- Prevent duplicate schema registration HOT 1
- Add possibility to limit the libraries that will be linked
- Install schemas into AppData HOT 1
- Allow for uppercase SDK names HOT 1
- Allow for configurable src dir HOT 1
- XSD not loading for UI5 1.85.2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui5-schemas.