veged / borschik

Main repository moved to https://github.com/bem/borschik. Extendable builder for text-based file formats.
http://bem.info/articles/borschik/
94 stars 0 forks source link

Borschik throws an error when processing absolute URL in CSS file #55

Closed ruslankerimov closed 11 years ago

ruslankerimov commented 11 years ago

b-showcase__browser-update.ie6.css:

.b-showcase__browser-update .b-link
{
    background: none;
  filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://yandex.st/lego/_/PhHTjJXKovljV4SIW-wp1OlsXww.png',sizingMethod=crop);
}

.borschik:

{
    "paths" : {
        "./": "//yandex.st/auto2/{{DEBIAN_VERSION}}/",
        "freeze/": "//yandex.st/auto2/_/"
    },

    "freeze_paths" : {
        "./": "freeze/"
    }
}

error:

Error
    at /home/orion/www/auto2/node_modules/borschik/lib/freeze.js:65:49
    at Object.processImage (/home/orion/www/auto2/node_modules/borschik/lib/freeze.js:22:12)
    at [object Object].processLink (/home/orion/www/auto2/node_modules/borschik/lib/techs/css-base.js:29:37)
    at [object Object].process (/home/orion/www/auto2/node_modules/borschik/lib/tech.js:70:54)
    at SpecificTranslator.$borschik [as borschik] (/home/orion/www/auto2/node_modules/borschik/lib/techs/css.ometajs.js:169:24)
    at SpecificTranslator.invoke (/home/orion/www/auto2/node_modules/borschik/node_modules/ometajs/lib/ometajs/core/grammar.js:162:17)
    at SpecificTranslator.cache [as _cache] (/home/orion/www/auto2/node_modules/borschik/node_modules/ometajs/lib/ometajs/core/parser.js:123:16)
    at SpecificTranslator._invoke (/home/orion/www/auto2/node_modules/borschik/node_modules/ometajs/lib/ometajs/core/grammar.js:168:17)
    at SpecificTranslator.rule [as _rule] (/home/orion/www/auto2/node_modules/borschik/node_modules/ometajs/lib/ometajs/core/grammar.js:269:16)
    at SpecificTranslator.<anonymous> (/home/orion/www/auto2/node_modules/borschik/lib/techs/css.ometajs.js:157:21)
From previous event:
    at Cmd._do (/home/orion/www/auto2/node_modules/borschik/node_modules/coa/lib/cmd.js:424:14)
    at Cmd.do (/home/orion/www/auto2/node_modules/borschik/node_modules/coa/lib/cmd.js:471:17)
    at Cmd.run (/home/orion/www/auto2/node_modules/borschik/node_modules/coa/lib/cmd.js:459:21)
    at Object.<anonymous> (/home/orion/www/auto2/node_modules/borschik/bin/borschik:3:23)
arikon commented 11 years ago

Could you please provide full error message, not just stack trace?

ruslankerimov commented 11 years ago

There isn't message. https://github.com/veged/borschik/blob/master/lib/freeze.js#L65

arikon commented 11 years ago

@afelix Have a look at this, please

Flackus commented 11 years ago

Ping.

arikon commented 11 years ago

@afelix Have a look at this

29.12.2012, 14:46, "Alexey Rybakov" notifications@github.com:

Ping.

          —

          Reply to this email directly or view it on GitHub.

Отправлено из мобильной Яндекс.Почты: http://m.ya.ru/ymail

afelix commented 11 years ago

Я занимаюсь этой проблемой, сегодня будет костыльный фикс. После него именно эта бага будет исправлена. Сам же issue не закрывайте, проблема глубже.

afelix commented 11 years ago

Fixed in 0.2.6.