ScriptCS REPL crashes with StackOverflowException
This bunch of lines make Chocolatey-zed ScriptCS (v. 0.8.1) crash. Nightly build v.0.9.0.alpha is immune. This looks like an issue of the output system (probably self-references?).
| > #r "System.Windows.Forms" | > var f = new System.Windows.Forms.Form(); | > f
Thanks for reporting this.
This looks like the issue related to the JSON serializer we were using which did not prevent cycles. We recently committed to use JSON.NET which does use cycle management. Did you try out the dev branch?
Yes, this is definitely a SS.Text issue and is fixed with the #525 PR (and thus not reproducible in the dev branch/nigtlies). The JSON.Net serializer is set to ignore cycles (that's why you're seing #528, I think that is less intrusive. We can try to force the serialization by setting ReferenceLoopHandling.Serialize, but I'm not sure about the implications.
Yeah this works on the dev branch.