Giter Club home page Giter Club logo

compasselephantbundle's People

Contributors

matteosister avatar maxcanna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gobb xoeoro notrix

compasselephantbundle's Issues

Using in Production

First of all, thanks for the bundle !

I am having a hard time understanding how / whether I should use this bundle in production.
In the readme, you only enable the bundle in test / dev env but you also put a reference in the config_prod.yml file, thus generating an error.
It makes sense not to enable it in production as it seems an unecessary work to watch these files.

I deploy manually onto the production server.
I have configured the css to be generated in the Resources/public/css so it gets installed through the asset:install command.

Nonetheless, the generated css is stored in bundles/acmebundle/css/style.css whereas the link looks for it in /css/style.css.

Here is how I call the css in my base.html.twig file.

{% stylesheets 
    "@AcmeBundle/Resources/public/css/style.css" 
%}
<link rel="stylesheet" href="{{ asset_url }}"/>

target value throws an error

When i set target value (as it says in the readme) like this:

register_listener: true
compass_binary_path: %kernel.root_dir%/../bin/compass
compass_projects:
    blog:
        path: %kernel.root_dir%/../web/testing
        staleness_checker: native
        config_file: config.rb
        auto_init: true
        target: sass/screen.scss

I get error:

CompassElephant\CompassProject::setTarget() in vendor/cypresslab/compass-elephant-bundle/Cypress/CompassElephantBundle/Collection/CompassProjectCollection.php on line 52

Once i comment out target it works fine

This bundle does not work as expected

Followed all the installation and configurations steps in the documentation, but have not been able to get a successful compile either using the symfony CLI or via the listener.

However, I am able to successfully compile the project and watch for changes using compass by itself (not with the bundle).

Below is the error that is being thrown:

[CompassElephant\Exception\CompassException]                        
The filename, directory name, or volume label syntax is incorrect.

Here is my configuration:

cypress_compass_elephant:
    register_listener: true
    compass_binary_path: "C:\Ruby200\bin\compass"
    compass_projects:
        resort:
            path: %kernel.root_dir%/../src/Hibiscus/AppBundle/Resources/public/compass
            staleness_checker: finder
            config_file: config.rb
            auto_init: true
            target: scss/app.scss

Suggestions?

classloader and yui css filter

Hello,

I want to use Compass with my Symfony2 project.
Your bundle seems to be cool but registerNamespaces method not defined and you use filter yui_css for your assetic resources, that it run with java runtime execution no ?

Can you explain me for understand your bundle and work with Compass framework ?

Thank for you support

Logging Output

Does this log the result of compiling each individual file somewhere? It would be nice to be able to tail a file for results, warnings, etc. I find this really useful using the standard compass watch command, and I'd love to have similar functionality here. If not, where would you suggest adding this, I may give it a shot.

Cheers!

Warning: htmlspecialchars() : Invalid multibyte sequence in argument

I have set up an environment that works perfectly well with your bundle.

On a colleague machine, which has the very same version of Apache, PHP (same php.ini) the same code generates an error upon compilation.
The compass is also set exactly the same (same path, same code, etc.)

The error is logged in the SF2 profiler:

ContextErrorException: Warning: htmlspecialchars() [function.htmlspecialchars]: Invalid multibyte sequence in argument in (classes.php)

The stack trace is as follow (not sure if it is useful). I have struggled with this issue for hours and have absolutely no idea where it could come from...

Just a detail: We run PHP 5.3.8 and thanks a LOT for your bundle

at ErrorHandler->handle('2', 'htmlspecialchars() [<a href='function.htmlspecialchars'>function.htmlspecialchars</a>]: Invalid multibyte sequence in argument', '(simplifiedPath)\dev\classes.php', '3943', array('env' => object(Twig_Environment), 'string' => '', 'strategy' => 'html', 'charset' => 'UTF-8', 'autoescape' => true, 'htmlspecialcharsCharsets' => array('ISO-8859-1' => true, 'ISO8859-1' => true, 'ISO-8859-15' => true, 'ISO8859-15' => true, 'utf-8' => true, 'UTF-8' => true, 'CP866' => true, 'IBM866' => true, true, 'CP1251' => true, 'WINDOWS-1251' => true, 'WIN-1251' => true, true, 'CP1252' => true, 'WINDOWS-1252' => true, true, 'KOI8-R' => true, 'KOI8-RU' => true, 'KOI8R' => true, 'BIG5' => true, true, 'GB2312' => true, true, 'BIG5-HKSCS' => true, 'SHIFT_JIS' => true, 'SJIS' => true, true, 'EUC-JP' => true, 'EUCJP' => true, 'ISO8859-5' => true, 'ISO-8859-5' => true, 'MACROMAN' => true)))


at htmlspecialchars('', '11', 'UTF-8') in (simplifiedPath)\dev\classes.php line 3943


at twig_escape_filter(object(Twig_Environment), '', 'html', null, true) in (simplifiedPath)\dev\twig\9b\46\52ef4c47c544c0c8af5946ca73b2c630fa0c1998824957013bee084400ff.php line 162


at __TwigTemplate_9b4652ef4c47c544c0c8af5946ca73b2c630fa0c1998824957013bee084400ff->block_panel(array('token' => '4af386', 'profile' => object(Profile), 'collector' => object(CompassDataCollector), 'panel' => 'cypress_compass_elephant', 'page' => 'home', 'request' => object(Request), 'templates' => array('config' => object(__TwigTemplate_03d489c54c4fe372fdbd448759fa44d26e16f622b93a7f68333a9b08fb88a0c8), 'request' => object(__TwigTemplate_e857fa0569cee105af007a0e3e95e6f0cb3cc71349af9b81488079798e96659f), 'exception' => object(__TwigTemplate_de629d24384a9ef22eae57bae2e88da3f07b0b99ae6af257a27d7ed9e2ce675b), 'events' => object(__TwigTemplate_09f4b2ba11e4c770007f759cee1e168d732014a32e5a23c26938b9a13f44a1f6), 'logger' => object(__TwigTemplate_b86465dfa48a465f5bbbf40b29006032dd6c0f94c390972d653616a32f3ea45a), 'time' => object(__TwigTemplate_9a7e19c903ea618099d12e8e97f38e8d6e4897d224fe8c4579a65528a0119658), 'memory' => object(__TwigTemplate_eb42b59a874a7a6c624a47dbeb8b54525151117ffd23b53e59c5a676bf6f7406), 'router' => object(__TwigTemplate_3bdc6706fa66c43dcd3068fcef4bd17dbe95a027bce9601bb189e22e9a28dd36), 'security' => object(__TwigTemplate_fa4382467e872753ff7b4b8786caefc131e0bf12821a2981223ea4bde16ae346), 'swiftmailer' => object(__TwigTemplate_9f79e48075cbc811a35301455e3ef47fe063e239d1c312d218daff7e1ef4aec6), 'db' => object(__TwigTemplate_407797702133237935b7d9edda5bce03fcc014cbebefb3958b56e2b842f4c63d), 'pheanstalk' => object(__TwigTemplate_4951f466764b6ea719b961543e88521d52d84d515c89e1d1bd5101f8c161039f), 'elastica' => object(__TwigTemplate_b065195d80c44a50729a3d3f75d13ed83a1b06bc3134880bcd6ba589704823e3), 'cypress_compass_elephant' => object(__TwigTemplate_9b4652ef4c47c544c0c8af5946ca73b2c630fa0c1998824957013bee084400ff)), 'is_ajax' => false, 'assetic' => array('debug' => true, 'vars' => object(ValueContainer), 'use_controller' => false), 'app' => object(GlobalVariables)), array('toolbar' => array(object(__TwigTemplate_9b4652ef4c47c544c0c8af5946ca73b2c630fa0c1998824957013bee084400ff), 'block_toolbar'), 'menu' => array(object(__TwigTemplate_9b4652ef4c47c544c0c8af5946ca73b2c630fa0c1998824957013bee084400ff), 'block_menu'))) in (simplifiedPath)\dev\classes.php line 4380

Assetic --watch not detecting changes in dependencies

Thanks for this -- you've saved me from having to start from scratch with plain ol' css.

When I run app/console assetic:dump, it detects changes to dependencies fine. However, if I run app/console assetic:dump --watch, it will not automatically detect new changes to to imported files.

It looks like its recompiling the imported files themselves, but not the importing file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.