libsass icon indicating copy to clipboard operation
libsass copied to clipboard

Error: malformed URL

Open Taritsyn opened this issue 6 years ago • 5 comments

Problem appeared after upgrading to version 3.5.3.

input.sass

@import url(http://fonts.googleapis.com/css?family=Limelight&subset=latin,latin-ext)

Actual results

The following error occurs:

Error: malformed URL
        on line 1 of ../../../../SharedFiles/import/sass/input.sass
>> @import url(http://fonts.googleapis.com/css?family=Limelight&subset=latin,"l
   --------^

This error is caused by presence of comma in the URL and is typical only for indented syntax.

Expected result

@import url(http://fonts.googleapis.com/css?family=Limelight&subset=latin,latin-ext);

Taritsyn avatar Apr 24 '18 18:04 Taritsyn

Looks like it may be related to the sass2scss bump in https://github.com/sass/libsass/commit/ca89d73e84616a87e64febb93afaa0bd70ef181d Not sure, just looked through the 3.5.2 to 3.5.3 diff and it seems to be the only thing related. Appears only to be an indented syntax issue

nschonni avatar Apr 25 '18 02:04 nschonni

cc @mgreter

On Wed., 25 Apr. 2018, 12:35 pm Nick Schonning, [email protected] wrote:

Looks like it may be related to the sass2scss bump in ca89d73 https://github.com/sass/libsass/commit/ca89d73e84616a87e64febb93afaa0bd70ef181d Not sure, just looked through the 3.5.2 to 3.5.3 diff and it seems to be the only thing related. Appears only to be an indented syntax issue

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sass/libsass/issues/2637#issuecomment-384142621, or mute the thread https://github.com/notifications/unsubscribe-auth/AAjZWOZ7b4Y0Ukb6k8pPZ9slp__U_2Uaks5tr-D4gaJpZM4TiLB3 .

xzyfer avatar Apr 25 '18 03:04 xzyfer

As a work around I've released 3.5.4 which the sass2scss bump reverted since we need to get the node-sass release out.

xzyfer avatar Apr 25 '18 05:04 xzyfer

This error is again relevant in version 3.6.0.

Taritsyn avatar May 19 '19 18:05 Taritsyn

I created the PR with fixes for this error in the sass2scss repository.

Taritsyn avatar Jun 25 '19 15:06 Taritsyn