dotnet / interactive

.NET Interactive combines the power of .NET with many other languages to create notebooks, REPLs, and embedded coding experiences. Share code, explore data, write, and learn across your apps in ways you couldn't before.
MIT License
2.88k stars 382 forks source link

Executing a cell with FsCheck outputs a long block #952

Closed kurt-mueller-osumc closed 1 year ago

kurt-mueller-osumc commented 3 years ago

Describe the bug

Executing a cell with the following code creates very long output.

#r "nuget: FsCheck"

open FsCheck

let revRevIsOrig (xs:list<int>) = List.rev(List.rev xs) = xs
Check.Quick revRevIsOrig

https://user-images.githubusercontent.com/66080261/103019338-a7189280-4514-11eb-89c1-e289ec562a5a.mov

Please complete the following:

Which version of .NET Interactive are you using? There are a few ways to find this out:

Version: 1.0.160901+a5db2e2c034eb03ecb446220826ca6aacaa4cb84

Build date: 2020-12-09T16:07:16.0000000Z
bisen2 commented 3 years ago

It looks like this is probably a symptom of the same issue as #799 (along with #879 and #951). FsCheck has a few places that format together a long sequence of mostly empty strings to get their desired output, but each of those "%s" formats is getting wrapped in newlines due to #799.