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

Problem generation bootstrap.less with custom variables.less #300

Closed
mumia opened this issue Sep 11, 2014 · 3 comments
Closed

Problem generation bootstrap.less with custom variables.less #300

mumia opened this issue Sep 11, 2014 · 3 comments
Labels

Comments

@mumia
Copy link
Contributor

mumia commented Sep 11, 2014

This is my config:

braincrafted_bootstrap:
    output_dir: ~
    assets_dir: %kernel.root_dir%/../vendor/twbs/bootstrap
    jquery_path: %kernel.root_dir%/../components/jquery/dist/jquery.js
    less_filter: less
    fonts_dir: %kernel.root_dir%/../web/fonts
    icon_prefix: glyphicon
    fontawesome_dir: %kernel.root_dir%/../components/fortawesome/fonts
    auto_configure:
        assetic: true
        twig: true
        knp_menu: true
        knp_paginator: true
    customize:
        variables_file: %kernel.root_dir%/Resources/less/variables.less
        bootstrap_output: %kernel.root_dir%/Resources/less/bootstrap.less
        bootstrap_template: BraincraftedBootstrapBundle:Bootstrap:bootstrap.less.twig

When I run:

$ app/console braincrafted:bootstrap:generate

I get:

Found custom variables file. Generating...

[Symfony\Component\DependencyInjection\Exception\InactiveScopeException]
You cannot create a service ("templating.helper.assets") of an inactive scope ("request").

I assume this has to do with the compilation of the template for the custom bootstrap.less, but have no clue how to solve it.

Any ideas?

@althaus
Copy link
Contributor

althaus commented Sep 16, 2014

I'm using a custom less file, too, but never encountered this error. Only difference I can spot is that we're using twig: false as we've set twig.form.resources to a custom form template based on Braincrafted ones.

@florianeckerstorfer
Copy link
Member

@althaus The problem @mumia seems to be a problem only in Symfony 2.5

@florianeckerstorfer
Copy link
Member

Since #301 has been merged I close this issue.

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

No branches or pull requests

3 participants