codemaid icon indicating copy to clipboard operation
codemaid copied to clipboard

Error HRESULT E_FAIL has been returned from a call to a COM component.

Open 22878 opened this issue 2 years ago • 5 comments

Environment

  • Visual Studio version: 2022 Community
  • CodeMaid version: 12.0
  • Code language: PHP

Description

This is the first time I have ever used CodeMaid. I simply right-clicked in a PHP document and clicked on CodeMaid > Cleanup Active Document. Should I just hang myself or what's going on?

Steps to recreate

  1. Right Click
  2. CodeMaid > Cleanup Active Document

22878 avatar Mar 11 '22 08:03 22878

Should I just hang myself

I would not recommend it.

Do you have a minimal solution you can share that exhibits the issue? Alternatively if you want to enable CodeMaid->Options->Diagnostics->Diagnostics mode this will generate some diagnostic logs into the Output tool window under the CodeMaid pane. Those may be helpful.

codecadwallader avatar Mar 11 '22 13:03 codecadwallader

Should I just hang myself

I would not recommend it.

Do you have a minimal solution you can share that exhibits the issue? Alternatively if you want to enable CodeMaid->Options->Diagnostics->Diagnostics mode this will generate some diagnostic logs into the Output tool window under the CodeMaid pane. Those may be helpful.

I enabled Diagnostics mode, but where do I see the output? In happens in every file I have tried so far. All files are from WP plugins.

22878 avatar Mar 13 '22 05:03 22878

There's an Output tool window that by default will by alongside the Error List. If it isn't there, I believe you can re-activate it through the View menu.

Once you have found that tool window there is a drop down of different panes (following the window metaphor) from different sources. One of those sources should(tm) be CodeMaid.

Hope it helps!

codecadwallader avatar Mar 14 '22 13:03 codecadwallader

There's an Output tool window that by default will by alongside the Error List. If it isn't there, I believe you can re-activate it through the View menu.

Once you have found that tool window there is a drop down of different panes (following the window metaphor) from different sources. One of those sources should(tm) be CodeMaid.

Hope it helps!

It's like I asked you for directions to some place and you said, "You go North for 1 mile then take a left, then about 2 blocks down you take a right, then it's right there on the left." Cool. So, like, where is the starting point? I mean, those directions mean absolutely nothing without knowing the starting point.

Oh, the error list, which is by the output tool, which is by the error list. Oh, now I know right where it's at, because I totally know where the error list is.

22878 avatar Mar 14 '22 17:03 22878

To activate the Output tool window select View->Output from the menu:

image

To see the CodeMaid pane select CodeMaid from the dropdown:

image

Hope it helps.

codecadwallader avatar Apr 12 '22 12:04 codecadwallader