Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Named assets appear as "Missing asset" in Twig templates #409

Closed
migmolrod opened this issue Dec 30, 2014 · 3 comments
Closed

Named assets appear as "Missing asset" in Twig templates #409

migmolrod opened this issue Dec 30, 2014 · 3 comments

Comments

@migmolrod
Copy link

Edit:
I forgot it. I'm using PhpStorm 8.0.2
Plugin version is 0.8
Just started a Symfony ~2.6 project (at the time I write this, it's 2.6.1)

Considering we have this in our config.yml:

# Assetic Configuration
assetic:
    assets:
        basecss:
            filters:
                - 'less'
                - 'uglifycss'
            inputs:
                - 'src/AppBundle/Resources/public/less/bootstrap.less'
                - 'src/AppBundle/Resources/public/less/library/fontawesome/font-awesome.less'
        basejs:
            inputs:
                - 'src/AppBundle/Resources/public/js/bootstrap/bootstrap.min.js'
                - 'src/AppBundle/Resources/public/js/libs/jquery-2.1.1.min.js'
                - 'src/AppBundle/Resources/public/js/libs/jquery-ui-1.10.3.min.js'

And something like this in one of our templates:

    {% stylesheets output="css/style.css"
        '@basecss'
    %}
        <link href="{{ asset_url }}" rel="stylesheet" type="text/css">
    {% endstylesheets %}

Then a warning appears under '@basecss' saying 'Missing asset'.

Screenshot:
missingasset

Exactly the same happens with basejs.

Is it only me or is there an underlying issue?

@migmolrod
Copy link
Author

Ok, now I see this can be considered a duplicate of #353,
I guess that if you add support for named assets, they won't appear as 'Missing asset', right?
So feel free to close this if you want to, @Haehnchen

@Haehnchen
Copy link
Owner

yes, they are known then. inputs should also provide completion. i leave this open for now. you are not the first one opened a duplicate one :)

@Haehnchen
Copy link
Owner

closing this duplicate issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants