@autodaug Thank you for finding all this out. It makes sense in the context of the reasons they redirected it. I haven't seen the garbage text you mention but I really haven't used the Core console much, just mainly for running NUnit in CADtest. I haven't ran a long session of Core Console, or even AutoCAD with a System.Console allocated, and see if it spits out the same garbage so I haven't noticed that issue.
Redirecting the garbage calls separately would have been the correct way to fix it I bet they are wildly inconsistent (such is the nature of very mature, giant code bases). By redirecting everything they seem to have thrown the baby out with the bath water and then swept it all under the carpet. Perhaps they could just have redirected stderr, assuming all the Trace etc. calls go there and not to stdout ??
In the long term I want that to present CADtest's results in a GUI anyway so the Core Console's content will be irrelevant at that stage. Looking into NUnit v3's code I think that subclassing NUnitLite.Runner.TextUI and calling that from NUnitLite.Runner.AutoRun.Execute(); to write to the Editor rather than the Console could be a way but the GUI idea may be a better use of my time. I would be (lpleasantly) shocked if the text in the Editor was coloured.
@autodaug wrote:
As for the slow output and messed up long line scrolling, those are being tracked as bugs, and we've shown some partial workarounds. The good news is that the work on AcCoreConsole is affected by external developer feedback, contrary to what I implied a few posts ago..
Yes, this is not your Grandfather's Autodesk. Just for the record, I have noticed a real and solid change in the way Autodesk deals with developers, even insignificant ones like me. In days of old support requests would just vanish into a black hole when there was no easy pre-scripted answer for an outsourced "consultant" to regurgitate, and annual releases seemed to be thrown over a soundrpoof wall. Many years ago I complained about it quite loudly and Shaan Hurley pinged me for it, I was rude but I wasn't wrong. This thread (and things like annual Dev days, ADN on Github etc ) is a great example of this is definitely not the case these days, far from it. Well, ok, I'm still rude and often wrong but Autodesk is much better to deal with these days.
It would be nice to see the redirection issue with the Core Console resolved in a more flexible manner. I also understand how resources are not an infinte resource.
Thanks again for all your time and effort looking into this.
cheeers
Ewen
CAD bloke
- - - - - - -
working on all sorts of things including www.tvCAD.tv & www.CADreplace.com