Sapui5 检查“未找到文件”或分析错误

Sapui5 检查“未找到文件”或分析错误,sapui5,sap-web-ide,Sapui5,Sap Web Ide,当我尝试运行应用程序时,编译器发出了一条错误消息: com/example/RequestAccess/view/JobProfileCart.view.xml could not be loaded from ./view/JobProfileCart.view.xml. Check for 'file not found' or parse errors. Reason: Error: Invalid XML: <mvc:View xmlns:core="sap.ui.cor

当我尝试运行应用程序时,编译器发出了一条错误消息:

com/example/RequestAccess/view/JobProfileCart.view.xml could not be loaded from ./view/JobProfileCart.view.xml. Check for 'file not found' or parse errors. Reason: Error: Invalid XML: <mvc:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m"
    controllerName="com.example.RequestAccess.controller.JobProfileCart" xmlns:html="http://www.w3.org/1999/xhtml">
    <Page id="detail" title="{i18n>jobProfileCart}" backgroundDesign="Standard" floatingFooter="true"
        class="sapUiContentPadding sapUiResponsivePadding--header sapUiResponsivePadding--subHeader sapUiResponsivePadding--content sapUiResponsivePadding--footer">
        <headerContent>

我做错了什么?

标题中没有命名空间f的定义。尝试添加xmlns:f=sap.ui.layout.form


它可以是index.html上的资源根引用,也可以是注入组件的任何地方。我认为这不是文件本身的问题。manifest.json中的应用程序ID是什么?它是否处处引用为com.example.RequestAccess?即使WebIDE没有显示错误,XML也可能无效。您可以使用外部工具验证XML,只需搜索XML验证器。它会告诉您,元素f:SimpleForm的前缀f没有绑定,第10行第88列。SAP Web IDE就到此为止了—UI5应用程序的转到IDE。我很高兴他们最终放弃了对它的研究。@BoghyonHoffmann我还没有发现如何在没有WebIDE的情况下轻松扩展标准应用程序,所以对我来说,至少它的用途有限。@Marc抱歉,这是我有时表达的无用的咆哮之一。我非常感谢WebIDE。但确实如此。很高兴他们能用EclipseTheia找到解决方案。
<mvc:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m"
    controllerName="com.example.RequestAccess.controller.JobProfileCart" xmlns:html="http://www.w3.org/1999/xhtml">
    <Page id="detail" title="{i18n>jobProfileCart}" backgroundDesign="Standard" floatingFooter="true"
        class="sapUiContentPadding sapUiResponsivePadding--header sapUiResponsivePadding--subHeader sapUiResponsivePadding--content sapUiResponsivePadding--footer">
        <headerContent>
            <Button icon="sap-icon://user-edit" type="Transparent" press="onPressEdit" ariaLabelledBy="editButtonLabel"/>
        </headerContent>
        <content>
            <f:SimpleForm id="SimpleFormDisplay480" minWidth="1024" maxContainerCols="2" editable="false" layout="ResponsiveGridLayout" labelSpanL="2"
                labelSpanM="2" emptySpanL="0" emptySpanM="0" columnsL="2" columnsM="2">
                <f:content>
                    <Label text="{i18n>id}"/>
                    <Text text="{User>/Id}"/>
                    <Label text="{i18n>name}"/>
                    <Text text="{User>/Surname} {User>/Firstname}"/>
                    <Label text="{i18n>email}"/>
                    <Text text="{User>/Email}"/>
                </f:content>
                <f:layoutData>
                    <FlexItemData shrinkFactor="0" backgroundDesign="Solid" styleClass="sapContrastPlus"/>
                </f:layoutData>
            </f:SimpleForm>
        </content>
        <footer>
            <OverflowToolbar>
                <ToolbarSpacer/>
                <Button type="Accept" enabled="{SendStatus>/enable}" text="Send" press="handleJobProfileSend"/>
            </OverflowToolbar>
        </footer>
    </Page>
</mvc:View>