Here's a sample:
div {
@warn "Herp Derp";
}
Generates the error below on compile.
I happened to be looking in Reflector at where you execute the sass compiler for entirely different purposes and noticed that each call to Compile() you dispose of the old _error stream and construct a new one, but you never assign the new error stream to the script engine...
Sass compiler error in S:\Dev\CDIS\Dev\CDIS\src\CdisWeb\jsmvc\cdis\widgets\window_controller\views\window_controller.scss. Message:
Bad file descriptor
Sass compiler backtrace:
\sass\lib/sass/../sass/util.rb:308:in `warn'
\sass\lib/sass/../sass/util.rb:308:in `sass_warn'
\sass\lib/sass/../sass/tree/visitors/perform.rb:253:in `visit_warn'
\sass\lib/sass/../sass/tree/visitors/base.rb:34:in `send'
\sass\lib/sass/../sass/tree/visitors/base.rb:34:in `visit'
\sass\lib/sass/../sass/tree/visitors/perform.rb:17:in `visit'
\sass\lib/sass/../sass/tree/visitors/base.rb:53:in `visit_children'
\sass\lib/sass/../sass/tree/visitors/base.rb:52:in `map'
\sass\lib/sass/../sass/tree/visitors/base.rb:52:in `visit_children'
\sass\lib/sass/../sass/tree/visitors/perform.rb:26:in `visit_children'
\sass\lib/sass/../sass/tree/visitors/perform.rb:37:in `with_environment'
\sass\lib/sass/../sass/tree/visitors/perform.rb:25:in `visit_children'
\sass\lib/sass/../sass/tree/visitors/base.rb:37:in `visit'
\sass\lib/sass/../sass/tree/visitors/perform.rb:230:in `visit_rule'
\sass\lib/sass/../sass/tree/visitors/base.rb:34:in `send'
\sass\lib/sass/../sass/tree/visitors/base.rb:34:in `visit'
\sass\lib/sass/../sass/tree/visitors/perform.rb:17:in `visit'
\sass\lib/sass/../sass/tree/visitors/base.rb:53:in `visit_children'
\sass\lib/sass/../sass/tree/visitors/base.rb:52:in `map'
\sass\lib/sass/../sass/tree/visitors/base.rb:52:in `visit_children'
\sass\lib/sass/../sass/tree/visitors/perform.rb:26:in `visit_children'
\sass\lib/sass/../sass/tree/visitors/perform.rb:37:in `with_environment'
\sass\lib/sass/../sass/tree/visitors/perform.rb:25:in `visit_children'
\sass\lib/sass/../sass/tree/visitors/base.rb:37:in `visit'
\sass\lib/sass/../sass/tree/visitors/perform.rb:47:in `visit_root'
\sass\lib/sass/../sass/tree/visitors/base.rb:34:in `send'
\sass\lib/sass/../sass/tree/visitors/base.rb:34:in `visit'
\sass\lib/sass/../sass/tree/visitors/perform.rb:17:in `visit'
\sass\lib/sass/../sass/tree/visitors/perform.rb:7:in `send'
\sass\lib/sass/../sass/tree/visitors/perform.rb:7:in `visit'
\sass\lib/sass/../sass/tree/root_node.rb:20:in `render'
\sass\lib/sass/../sass/engine.rb:291:in `_render'
\sass\lib/sass/../sass/engine.rb:238:in `render'
\sass\lib\sass.rb:33:in `compile'
(eval):0
Mindscape.WebWorkbench.Integration.10:0:in `Compile'
Mindscape.WebWorkbench.Integration.10:0:in `Compile'
Mindscape.WebWorkbench.Integration.10:0:in `<Compile>b__8'
Mindscape.WebWorkbench.Integration.10:0:in `ConsumerProc'
mscorlib:0:in `ThreadStart_Context'
mscorlib:0:in `Run'
mscorlib:0:in `Run'
mscorlib:0:in `ThreadStart'
CLR exception details:
IronRuby.Builtins.BadFileDescriptorError (0x80004005): Bad file descriptor
at ℑℜ:visit:17:408:C:\Users\brandon.wallace\AppData\Local\Microsoft\VisualStudio\10.0\Extensions\Mindscape\Mindscape Web Workbench\3.0.38.19767\CustomTool\Sass\sass\lib/sass/../sass/tree/visitors/perform.rb(Closure , Object , Proc , Object )
at Microsoft.Scripting.Interpreter.LightLambda.Run3[T0,T1,T2,TRet](T0 arg0, T1 arg1, T2 arg2)
at IronRuby.Runtime.Calls.RubyObjectMethodDispatcherWithScope`1.Invoke[TScope](CallSite callSite, TScope scope, Object self, T0 arg0)
at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at IronRuby.Runtime.Calls.RubyObjectMethodDispatcherWithScope`1.Invoke[TScope](CallSite callSite, TScope scope, Object self, T0 arg0)
at IronRuby.Builtins.KernelOps.SendMessage(RubyScope scope, Object self, String methodName, Object arg1)
at Microsoft.Scripting.Interpreter.FuncCallInstruction`5.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run5[T0,T1,T2,T3,T4,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
at Microsoft.Scripting.Interpreter.DynamicInstruction`5.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
at Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
at Microsoft.Scripting.Interpreter.DynamicInstruction`4.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
at IronRuby.Runtime.Calls.RubyObjectMethodDispatcherWithScope.Invoke[TScope](CallSite callSite, TScope scope, Object self)
at Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
at IronRuby.Runtime.Calls.RubyObjectMethodDispatcherWithScope.Invoke[TScope](CallSite callSite, TScope scope, Object self)
at Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
at IronRuby.Runtime.Calls.RubyObjectMethodDispatcherWithScope.Invoke[TScope](CallSite callSite, TScope scope, Object self)
at Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run4[T0,T1,T2,T3,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3)
at Microsoft.Scripting.Interpreter.FuncCallInstruction`6.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run5[T0,T1,T2,T3,T4,TRet](T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
at System.Dynamic.UpdateDelegates.UpdateAndExecute4[T0,T1,T2,T3,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3)
at Microsoft.Scripting.Interpreter.DynamicInstruction`5.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
at IronRuby.Runtime.RubyScriptCode.Run(Scope scope, Boolean bindGlobals)
at IronRuby.Runtime.RubyScriptCode.Run(Scope scope)
at Microsoft.Scripting.SourceUnit.Execute(Scope scope, ErrorSink errorSink)
at Microsoft.Scripting.Hosting.ScriptSource.Execute(ScriptScope scope)
at Microsoft.Scripting.Hosting.ScriptEngine.Execute(String expression, ScriptScope scope)
at Mindscape.VisualSass.Integration.Compilation.ScssCompiler.Compile(String scss, String sourceFilePath, FileSettings settings, CompilationResult result)