MBulli / SmartCommandlineArgs

A Visual Studio Extension which aims to provide a better UI to manage your command line arguments
GNU General Public License v2.0
99 stars 35 forks source link

Hang on Startup #87

Open CelestialPanda42 opened 5 years ago

CelestialPanda42 commented 5 years ago

If SmartCommandArgs window is tabbed (in my case it's part of the output/ symbols etc tab) then on startup it may hang. Was able to pull the following from ActivityLog.xml. Also using VisualAssist and PlasticSCM plugins.

`

164
<time>2019/08/23 12:49:52.191</time>
<type>Error</type>
<source>VisualStudio</source>
<description>Construction of frame content failed.&#x000D;&#x000A;Frame identifier: ST:0:0:{a21b35ed-5c13-4d55-a3d2-71054c4e9540}&#x000D;&#x000A;Frame caption: Command Line Arguments&#x000D;&#x000A;Exception details:&#x000D;&#x000A;System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))&#x000D;&#x000A;   at Microsoft.VisualStudio.Shell.Interop.IVsShell5.LoadPackageWithContext(Guid&amp; packageGuid, Int32 reason, Guid&amp; context)&#x000D;&#x000A;   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.GetPackage()&#x000D;&#x000A;   at Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()</description>

`

MBulli commented 5 years ago

Which exact version of VS are you using? Does this error occur all the time? Did you try to create a new blank project (without SCM)?

Some people write on the internet that running VS as administrator once could fix this exception. Of course not in the context with our extension ;) So maybe give it a try.

CelestialPanda42 commented 5 years ago

Running VS 2017 V.15.6.1.

This error occurs all the time under the following conditions: Any project, if I double click the .sln file and SmartCmdArgs window was visible/ docked as part of my preferences then this issue occurs. This issue does not occur if I open VS/ devenv.exe and then File->Open a Project or Solution. If SmartCmdArgs is enabled in extensions but not a visible window then there is no issue.

Running VS and opening Solutions as Admin does not fix issue.

It's an odd one for sure!