Update on Extension of Visual Studio for Mac

It is a long story, but I believe I enjoy the overall progress. So, let’s get started.

A few days ago, I was notified by a user that extension did not work quite well for him. So he needs the extension to be able to kick off the runner as 64 bit on Mac, which I achieved and reported my research result in a previous post. However, that only addressed part of the puzzle, and made F# test cases of Miguel de Icaza’s TensorFlowSharp project working. The C# test cases still failed miserably.

It took me a long while to locate the culprit, as this issue could not be reproduced under EASY_DEBUGGING mode (something specific to the extension code base). But I did find the cause, I also noticed that I could not provide the ultimate solution, as the source file BinaryMessage.cs was copied directly from MonoDevelop code base.

My temporarily workaround was to make a dirty hack to let things work, and in the meantime report the issue to Xamarin Bugzilla. Those guys responded quickly, and would deliver a better patch. So I would wait then.

No, the story did not end here, as Miguel himself still could not run the test cases successfully. I could not touch his machine obviously, so what could I do? So the following actions were in fact carried out by accident.

Remember that I have been using Rollbar for Jexus Manager and Obfuscar? A few hours ago I finally decided to apply it to this extension, so that if users such as Miguel experience miserable exceptions, at least more information can be collected from the scene.

So on my own machine I started to do a few experiments using existing bug reports, like this one (more than one year ago). It was an issue difficult to troubleshoot a while ago, but with Rollbar the call stack of that exception became so clear, that BinaryMessage.cs has another bug.

Well, my dirty hack came once again, and this time it also fixed another old issue.

One more piece of good news is that if the runner experiences some exceptions during execution, you can then see them displayed in Unit Tests panel instead of seeing nothing at all.

So, that’s the story for today, and why not download the latest build and enjoy unit testing with on Mac?

© Lex Li. All rights reserved. The code included is licensed under CC BY 4.0 unless otherwise noted.

© - Lex Li. All rights reserved.

Using the Chirpy theme for Jekyll.

Last updated on June 01, 2024