Php appdevdebugprojectcontainer.xml中的eclipse symfony调试器错误
将Eclipse Luna与Symfony2一起使用。安装了PDT扩展,并且能够启动并运行symfony项目。然而,该文件 appdevdebugprojectcontainer.xml向我显示了一些错误。这并没有影响项目的运行,但我仍然很想知道这是怎么回事 第一个错误在配置程序中Php appdevdebugprojectcontainer.xml中的eclipse symfony调试器错误,php,eclipse,symfony,eclipse-pdt,Php,Eclipse,Symfony,Eclipse Pdt,将Eclipse Luna与Symfony2一起使用。安装了PDT扩展,并且能够启动并运行symfony项目。然而,该文件 appdevdebugprojectcontainer.xml向我显示了一些错误。这并没有影响项目的运行,但我仍然很想知道这是怎么回事 第一个错误在配置程序中 cvc-complex-type.2.1: Element 'configurator' must have no character or element information item [children],
cvc-complex-type.2.1: Element 'configurator' must have no character or element information item [children], because the type's content type is empty.
另一个错误是:
<factory class="Symfony\Component\Validator\Validation" method="createValidatorBuilder"/>
非常感谢任何指针这是WTP XML验证程序的问题。如何忽略:
我计划在未来的Symfony插件版本中自动创建这些规则谢谢。单击项目->属性->验证。已启用项目特定的设置。单击XML验证程序旁边的设置按钮。单击添加规则并通过扩展方法忽略所有XML文件。工作WTP XML验证程序到底有什么问题?位于
symfony.com/schema/dic/services/services-1.0.xsd的模式将configurator
定义为空元素,而XML元素具有内容,因此验证程序将其标记为错误是完全正确的。修复模式(假设xml文档是正确的)不是比在整个项目中禁用模式验证更好吗?
cvc-complex-type.2.4.a: Invalid content was found starting with element 'factory'. One of '{"http://symfony.com/schema/dic/services":file, "http://symfony.com/schema/dic/services":argument, "http://symfony.com/schema/dic/services":configurator, "http://symfony.com/schema/dic/services":call, "http://symfony.com/schema/dic/services":tag, "http://symfony.com/schema/dic/services":property}' is expected.