codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.89k stars 356 forks source link

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

Open 22878 opened 2 years ago

22878 commented 2 years ago

Environment

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
codecadwallader commented 2 years ago

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.

22878 commented 2 years ago

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.

codecadwallader commented 2 years ago

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!

22878 commented 2 years ago

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.

codecadwallader commented 2 years ago

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.