GithubHelp home page GithubHelp logo

Comments (4)

bolandrm avatar bolandrm commented on August 19, 2024

This is a probably a syntax error that Libsass doesn't do a good job of explaining.

Are you able to narrow this down at all? If your CSS is split into multiple files, can you incrementally add files until you figure out which part of the CSS is at fault?

If you can narrow it down to the particular CSS that is causing the problem, we can create a issue for Libsass.

from sassc-rails.

pkmiec avatar pkmiec commented on August 19, 2024

Yes, I can attempt to do so. I will report what I find out.

from sassc-rails.

pkmiec avatar pkmiec commented on August 19, 2024

I had this pattern,

$grid-classes: ();

@mixin generate($viewport) {
  $grid-classes: append($grid-classes, ..., comma);
  ...
}

@include generate(small);
@include generate(medium);
@include generate(large);

#{$grid-classes} {
 ...
}

which worked in sass / sass-rails.

The problem in sassc is that the global $grid-classes variable is not modified by the mixin. So #{$grid-classes} at the end is empty, which causes the Unknown error occurred error.

I'm not sure whether sass or sassc has the correct treatment of global variables inside of mixins. But I changed my code so that it works with both sass and sassc.

from sassc-rails.

bolandrm avatar bolandrm commented on August 19, 2024

Thanks for the follow up. I'm going to close this - since it's a libsass issue. I'd encourage you to report this behavior over at https://github.com/sass/libsass/issues.

from sassc-rails.

Related Issues (20)

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.