haf / expecto

A smooth testing lib for F#. APIs made for humans! Strong testing methodologies for everyone!
Apache License 2.0
663 stars 96 forks source link

Null ref from coloured output #343

Closed haf closed 4 years ago

haf commented 4 years ago
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.FSharp.Control.AsyncPrimitives.Start@938-1.Invoke(ExceptionDispatchInfo edi)
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction)
   at <StartupCode$FSharp-Core>.$Async.AwaitWaitHandle@1421-3.Invoke(Object _arg5, Boolean timeOut)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()System.NullReferenceException: Object reference not set to an instance of an object.
   at Expecto.Logging.ANSIOutputWriter.clo@1057.Invoke(Tuple`2 tupledArg) in C:\Users\Anthony Lloyd\src\expecto\Expecto\Logging.fs:line 1059
   at Microsoft.FSharp.Primitives.Basics.List.iter[T](FSharpFunc`2 f, FSharpList`1 x)
   at Expecto.Logging.ANSIOutputWriter.action@1-2(T this, Boolean fromSysConsole, Boolean autoFlush, FSharpList`1 parts, Unit _arg2) in C:\Users\Anthony Lloyd\src\expecto\Expecto\unknown:line 1057
   at Expecto.Logging.ANSIOutputWriter.T.prettyPrintInner(Boolean autoFlush, Boolean fromSysConsole, FSharpList`1 parts) in C:\Users\Anthony Lloyd\src\expecto\Expecto\Logging.fs:line 1037
   at Expecto.Logging.ANSIOutputWriter.T.prettyPrint(Boolean autoFlush, FSharpList`1 parts) in C:\Users\Anthony Lloyd\src\expecto\Expecto\Logging.fs:line 1126
   at Expecto.Logging.ANSIOutputWriter.prettyPrint@1157.Invoke(FSharpList`1 arg10) in C:\Users\Anthony Lloyd\src\expecto\Expecto\Logging.fs:line 1157
   at Expecto.Logging.LiterateConsoleTarget.writeColourisedThenNewLine(Message message) in C:\Users\Anthony Lloyd\src\expecto\Expecto\Logging.fs:line 1176
   at <StartupCode$Expecto>.$Logging.Expecto-Logging-Logger-log@1203.Invoke(Unit unitVar) in C:\Users\Anthony Lloyd\src\expecto\Expecto\Logging.fs:line 1203
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult]

and so on repeated for a long time...