cassette icon indicating copy to clipboard operation
cassette copied to clipboard

Certain CSS errors produce "Illegal Characters in Path" exception

Open RossWilliams opened this issue 12 years ago • 5 comments

To reproduce in the Website Project: modify 'buy.css' line 2, add line background: transparent url(("/assets/styles/images/andrew-davey.jpg")) repeat-x; notice the double parenthesis. Run with debug false. Observe exception in web browser. reducing the added line to a single set of parenthesis eliminates the exception.

RossWilliams avatar Feb 16 '12 14:02 RossWilliams

I think having double parenthesis is invalid CSS syntax http://www.w3.org/TR/CSS21/syndata.html#uri

Cassette could be enhance to throw an better exception, providing the file and line number of the error.

There is also scope to make Cassette simply ignore invalid CSS. It already ignores missing image file referenced from CSS (tracing a warning message only).

andrewdavey avatar Feb 18 '12 11:02 andrewdavey

Is there a way I can make cassette ignore the check? I have fixed all my image paths but I am still stuck.

robasta avatar Mar 27 '12 09:03 robasta

I'm having the same problem. But how to identify where the error is in my files .scss / .coffee? I used the package Cassette.MSBuild I posted this question on Stackoverflow: http://stackoverflow.com/questions/14757521/cassette-error-illegal-characters-in-path

Ridermansb avatar Feb 07 '13 18:02 Ridermansb

Same issue, any plans to fix it?

otakusid avatar May 23 '14 12:05 otakusid

in casstte you must check your bundles string and remove Illegal chars. for example in this code * is Illegal char and you must remove that: bundles.Add<ScriptBundle>("~/Scripts/Core", new[] { "~/Scripts/jquery-*",
...});

roya-h77 avatar Dec 03 '14 06:12 roya-h77