Compass / compass

Compass is no longer actively maintained. Compass is a Stylesheet Authoring Environment that makes your website design simpler to implement and easier to maintain.
http://compass-style.org
Other
6.72k stars 1.18k forks source link

Helper syntax errors using relative_assets #1483

Open hildersantos opened 10 years ago

hildersantos commented 10 years ago

Hi,

Everytime i try to use relative_assets = true on my config.rb file (currently using Netbeans 7.4, with --compass argument on sass), the system outputs the following:

Syntax error: different prefix: "" and "C:\\Users/Hilder/repos/bandcamarote/css" for `font-files'
        on line 17 of C:\Users\Hilder\repos\bandcamarote\scss\default.scss, in `font-face'
        from line 17 of C:\Users\Hilder\repos\bandcamarote\scss\default.scss
  Use --trace for backtrace.

Here it goes my current config.rb file:

http_path = "/"
css_dir = "css"
sass_dir = "scss"
images_dir = "img"
javascripts_dir = "js"

relative_assets = true

Using on localhost.

Tks!

chriseppstein commented 10 years ago

can you try this with compass 1.0.0.alpha.17 and see if it still exists? (gem install compass --pre)

hildersantos commented 10 years ago

Yes, it still happens, unfortunately.

chriseppstein commented 10 years ago

Can you please provide the smallest possible sass stylesheet that causes this error?

hildersantos commented 10 years ago

Here it goes.

Tks!

/* Resetando o CSS */
@import "compass/reset";
@import "compass/css3";

/* INÍCIO DO CSS */

/**************************************
* FONTES
**************************************/

/* Code */
@include font-face("code bold", font-files("code_bold-webfont.woff", woff, "code_bold-webfont.ttf", ttf,  "code_bold-webfont.svg", svg), "code_bold-webfont.eot", "bold", 'normal');
@include font-face("code", font-files("code_light-webfont.woff", "code_light-webfont.ttf", "code_light-webfont.svg"), "code_light-webfont.eot", "normal", 'normal');

/* Nexa */
@include font-face("nexa bold", font-files("nexa_bold-webfont.woff", "nexa_bold-webfont.ttf", "nexa_bold-webfont.svg#nexa_boldregular"), "nexa_bold-webfont.eot", "bold", 'normal');
@include font-face("nexa", font-files("nexa_light-webfont.woff", "nexa_light-webfont.ttf", "nexa_light-webfont.svg#nexa_lightregular"), "nexa_light-webfont.eot", "normal", 'normal');