Simon@Visual Micro wrote on Sep 9
th, 2022 at 2:44pm:
Can you try the latest release available below, and let us know if this improves the situation?
Can you confirm if you have the English Language pack installed in Visual Studio? (Tools > Get Tools and Features > Language Packs)
I have installed the latest version and updated boards and libraries. I do have the English language pack installed.
My problem is not resolved, but after more than 20 hours of investigation I do have some additional information.
Here's what I have done:
- Uninstalled Visual Micro
- Uninstalled all versions of visual studio
- Ran the VS InstallCleanup.exe
- Removed nearly every registry entry related to visual studio
- Installed all pending windows updates
- Reviewed and resolved all EventLog issues of all types.
- Multiple reboots including full power off & rest cycles.
Then I reinstalled Visual Studio 2022 version 17.0.32014.148, including only the desktop C++ and desktop .net framework solution paks. I unselected the newly bundled boost test and google test adaptors.
- Tested existing c# solutions => OK
- Tested existing c++ solutions => OK
- Tested existing arduino-style solutions => they open and browse normally (I can't compile without VM).
- Made a new C# "empty" winforms solution => OK
Installed the most current version of visual micro
Now the following problem arises: If I first open visual studio 2022 (devenv.exe), I can subsequently use the File/Open command to locate and open any of the above solution files, and the VS GUI behaves normally.
However, if I use explorer to double-click on
any of the above solution files (even the new c# solution that contains only a single empty form) then the visual studio UX opens slowly before failing to respond in a stereotypical manner:
First, I see only the VS top menu with a blank area in the workspace. If I click on any menu entry, the solution explorer appears and the last active file appears but is missing most of its content. Clicking other files does not open them. The first time I click on a menu entry one of the menus does show its drop menu but (1) it's not the same menu entry that I had clicked, and (2) it's displayed in the left upper corner of my screen, nowhere near the parent window, and (3) I cannot interact with that menu. Subsequently clicking menu entries causes them to display a highlight but no further drop menus appear and nothing else happens in the entire UX.
Disabling visual micro makes the problems go away.
Re-enabling it makes them reappear.
This can be repeated ad infinitum.
Since the problem appears in a newly created "empty" c# winforms solution, that seems like the best repro scenario because visual micro should be doing almost nothing in that setting.
I have my antivirus disabled (though it makes no difference).
I have no network drives or mapped drives.
There are no other extensions installed.
One other thing I do notice is that if I run visual studio and browse to the sln file to open it, things do seem to run normally (I can build and upload) -- however, I am getting a half-dozen messages that the Visual Micro extension stopped responding for 10-15 seconds. In the past those have been very rare.
I ran procmon watching the solution directory and I really don't see much of anything different when visual micro is disabled (everything runs normally) vs when visual micro is enabled (nothing in the gui works). I do see devenv looking for a (nonexistent) .ino file when vm is enabled, but not much else, so I think we can rule out file contention.
Upon enabling the VisualMicro extension, a handful of errors appear in the Event log. I will attach a file showing these errors. They seem to involve
- a missing (perhaps obsolete version) function used in tests and
- a missing Gui cookie.
If the problem is not occurring for you or anybody else, there must be something in my environment that's triggering it, but after blowing away my dev environment so completely and reinstalling from scratch, I can't imagine what it could be.
I guess the next step is either to hook up a debugger to the devenv.exe process and try to break when it's not responding properly, or perhaps force a dump -- but without symbols that will be a long process. Maybe a performance trace using ETW would be a better next step...
At this point I would be grateful for anything you can suggest.