sass / libsass-net

A lightweight wrapper around libsass
MIT License
94 stars 35 forks source link

SassCompiler.Compile crashes #21

Closed Untit1ed closed 9 years ago

Untit1ed commented 9 years ago

My app crashes every time I try to compile anything with SassCompiler.Compile (CompileFile works fine).

Here is what I get when I pass "body{}" as an input string into Compile: image

Just tried with the latest LibSass - still the same problem.

aviatrix commented 9 years ago

This should be fixed with the upcoming nuget package release, however if you download & compile the source & reference it manually, it will work ( unless i'm totally misreading the issue at hand)

Untit1ed commented 9 years ago

I wasn't even aware there's a nuget package. I was using a compiled master code when it happened.

aviatrix commented 9 years ago

Can you provide some more info about this ? if you can upload the test project iil take a look at it and see what's going on.

Untit1ed commented 9 years ago

There's not much to show, it's basically just:

var inputString = "body{}";
SassCompiler compiler = new SassCompiler();
string result = compiler.Compile(inputString);

I added a test project https://github.com/Untit1ed/libsass-net/blob/master/Test/Program.cs

IDDesigns commented 9 years ago

This still appears to be a problem in version 3.2.4.

using:

styleSheet = _compiler.Compile("@import \"theme.scss\";" + Environment.NewLine, OutputStyle.Compressed, false, 5, new[] { baseTheme }) + Environment.NewLine + styleSheet;

results in

One or more arguments are invalid (Exception from HRESULT: 0x80000003)

This works fine when running against 3.1.0.

darrenkopp commented 9 years ago

This should be resolved now with the latest version on nuget (3.2.4.1)