Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/328.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php appdevdebugprojectcontainer.xml中的eclipse symfony调试器错误_Php_Eclipse_Symfony_Eclipse Pdt - Fatal编程技术网

Php appdevdebugprojectcontainer.xml中的eclipse symfony调试器错误

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],

将Eclipse Luna与Symfony2一起使用。安装了PDT扩展,并且能够启动并运行symfony项目。然而,该文件 appdevdebugprojectcontainer.xml向我显示了一些错误。这并没有影响项目的运行,但我仍然很想知道这是怎么回事

第一个错误在配置程序中

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验证程序的问题。如何忽略:

  • 打开项目属性(右键单击项目,属性)
  • 在选项卡验证中,启用特定于项目的设置
  • 在XML模式和XML DTD验证程序中,单击设置
  • 添加排除组
  • 选择新组并添加规则
  • 忽略所有*.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.