Assetic在开发环境中失败


Assetic failed in dev environment

我正试图从Symfony2 shell运行assetic:dump,但它在某个时刻停止并挂起,这是我得到的消息:

[error]源文件"/var/www/html/app/../vendor/twbs/bootstrap/fonts/glyphicons hallings-regular.eot"不存在。

我过去使用过MopaBootstrapBundle,但我不再需要了,所以我删除了它,之后我运行了所有这些命令:

Symfony > cache:clear
Clearing the cache for the dev environment with debug true
Symfony > cache:warmup
Warming up the cache for the dev environment with debug true
Symfony > assetic:dump --watch
Dumping all dev assets.
Debug mode is on.
[error] The source file "/var/www/html/app/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.eot" does not exist.

有什么建议吗?我做错了什么?

config.yml添加资产配置

assetic:
    debug:          "%kernel.debug%"
    use_controller: false
    bundles:        
      - PlantillaBundle
      - ComunBundle
      - UsuarioBundle
    java: /usr/bin/java
    filters:
        cssrewrite: ~
        cssembed:
            jar: %kernel.root_dir%/Resources/java/cssembed.jar
        yui_css:
            jar: %kernel.root_dir%/Resources/java/yuicompressor.jar
        yui_js:
            jar: %kernel.root_dir%/Resources/java/yuicompressor.jar
    assets:
        fonts_glyphicons_eot:
            inputs:
               - "%kernel.root_dir%/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.eot"
            output: "fonts/glyphicons-halflings-regular.eot"
        fonts_glyphicons_svg:
            inputs:
                - "%kernel.root_dir%/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.svg"
            output: "fonts/glyphicons-halflings-regular.svg"
        fonts_glyphicons_ttf:
            inputs:
                - "%kernel.root_dir%/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.ttf"
            output: "fonts/glyphicons-halflings-regular.ttf"
        fonts_glyphicons_woff:
            inputs:
                - "%kernel.root_dir%/../vendor/twbs/bootstrap/fonts/glyphicons-halflings-regular.woff"
            output: "fonts/glyphicons-halflings-regular.woff"

在模板的某个地方,您已经引用了glyphicons-halflings-regular.eot文件,但该引用无效。

要获得在哪里寻找的线索,一个简单的grep将有所帮助:

grep -r glyphicons-halflings-regular.eot src/ app/config vendor/