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.91k stars 359 forks source link

Exception on Cleanup #143

Closed gdosborne closed 9 years ago

gdosborne commented 9 years ago

[CodeMaid Handled Exception 09:15:21 AM] Unable to build code model for '[somefilename]': System.AggregateException: One or more errors occurred. ---> System.ArgumentNullException: Value cannot be null. Parameter name: pNativeData at System.Runtime.InteropServices.CustomMarshalers.EnumeratorToEnumVariantMarshaler.MarshalNativeToManaged(IntPtr pNativeData) at System.Collections.IEnumerator.get_Current() at System.Linq.Enumerable.d11.MoveNext() at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerable.GrabChunk_Buffered(KeyValuePair2[] destArray, Int32 requestedChunkSize, Int32& actualNumElementsGrabbed) at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerator.GrabNextChunk(Int32 requestedChunkSize) at System.Collections.Concurrent.Partitioner.DynamicPartitionEnumerator_Abstract`2.MoveNext() at System.Threading.Tasks.Parallel.<>cDisplayClass272.<PartitionerForEachWorker>b__29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object ) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner1 source, ParallelOptions parallelOptions, Action1 simpleBody, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action1 body) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsFromElements(SetCodeItems codeItems, CodeElements codeElements) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveAllCodeItems(Document document) at SteveCadwallader.CodeMaid.Model.CodeModelManager.BuildCodeItems(CodeModel codeModel) ---> (Inner Exception #0) System.ArgumentNullException: Value cannot be null. Parameter name: pNativeData at System.Runtime.InteropServices.CustomMarshalers.EnumeratorToEnumVariantMarshaler.MarshalNativeToManaged(IntPtr pNativeData) at System.Collections.IEnumerator.get_Current() at System.Linq.Enumerable.<OfTypeIterator>d__11.MoveNext() at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerable.GrabChunk_Buffered(KeyValuePair2[] destArray, Int32 requestedChunkSize, Int32& actualNumElementsGrabbed) at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerator.GrabNextChunk(Int32 requestedChunkSize) at System.Collections.Concurrent.Partitioner.DynamicPartitionEnumerator_Abstract2.MoveNext() at System.Threading.Tasks.Parallel.<>cDisplayClass27`2.b29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>cDisplayClass0.b1(Object )<---

codecadwallader commented 9 years ago

There is not enough information available to investigate this issue. Some helpful information to provide:

gdosborne commented 9 years ago

VS 2013 Code Maid 0.8.1 C# Was working with previous version Happens every time with all files

[CodeMaid Handled Exception 04:03:56 PM] Unable to build code model for 'C:\Users\Greg\Source\Workspaces\Domaination\OSControls\OSControls\OSControls\AnalogClockView.cs': System.AggregateException: One or more errors occurred. ---> System.Runtime.InteropServices.COMException: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) at EnvDTE.TextPoint.get_Line() at SteveCadwallader.CodeMaid.Model.CodeItems.CodeItemUsingStatement.RefreshCachedPositionAndName() at SteveCadwallader.CodeMaid.Model.CodeItems.FactoryCodeItems.CreateCodeItemElement(CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>cDisplayClass8_0.b0(CodeElement child) at System.Threading.Tasks.Parallel.<>cDisplayClass272.<PartitionerForEachWorker>b__29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object ) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner1 source, ParallelOptions parallelOptions, Action1 simpleBody, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action`1 body) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsFromElements(SetCodeItems codeItems, CodeElements codeElements) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveAllCodeItems(Document document) at SteveCadwallader.CodeMaid.Model.CodeModelManager.BuildCodeItems(CodeModel codeModel) ---> (Inner Exception #0) System.Runtime.InteropServices.COMException (0x8002801D): Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) at EnvDTE.TextPoint.get_Line() at SteveCadwallader.CodeMaid.Model.CodeItems.CodeItemUsingStatement.RefreshCachedPositionAndName() at SteveCadwallader.CodeMaid.Model.CodeItems.FactoryCodeItems.CreateCodeItemElement(CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>cDisplayClass8_0.b0(CodeElement child) at System.Threading.Tasks.Parallel.<>cDisplayClass272.<PartitionerForEachWorker>b__29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )<--- ---> (Inner Exception #1) System.Runtime.InteropServices.COMException (0x8002801D): Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) at EnvDTE.TextPoint.get_AbsoluteCharOffset() at SteveCadwallader.CodeMaid.Model.CodeItems.CodeItemUsingStatement.RefreshCachedPositionAndName() at SteveCadwallader.CodeMaid.Model.CodeItems.FactoryCodeItems.CreateCodeItemElement(CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>c__DisplayClass8_0.<RetrieveCodeItemsFromElements>b__0(CodeElement child) at System.Threading.Tasks.Parallel.<>c__DisplayClass272.b29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>cDisplayClass0.b1(Object )<--- ---> (Inner Exception #2) System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.ArgumentNullException: Value cannot be null. Parameter name: pNativeData at System.Runtime.InteropServices.CustomMarshalers.EnumeratorToEnumVariantMarshaler.MarshalNativeToManaged(IntPtr pNativeData) at System.Collections.IEnumerator.MoveNext() at System.Linq.Enumerable.d11.MoveNext() at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerable.GrabChunk_Buffered(KeyValuePair2[] destArray, Int32 requestedChunkSize, Int32& actualNumElementsGrabbed) at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerator.GrabNextChunk(Int32 requestedChunkSize) at System.Collections.Concurrent.Partitioner.DynamicPartitionEnumerator_Abstract2.MoveNext() at System.Threading.Tasks.Parallel.<>c__DisplayClass272.b29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>cDisplayClass0.b1(Object ) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner1 source, ParallelOptions parallelOptions, Action1 simpleBody, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action1 body) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsFromElements(SetCodeItems codeItems, CodeElements codeElements) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>cDisplayClass8_0.b0(CodeElement child) at System.Threading.Tasks.Parallel.<>cDisplayClass272.<PartitionerForEachWorker>b__29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object ) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner1 source, ParallelOptions parallelOptions, Action1 simpleBody, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action1 body) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsFromElements(SetCodeItems codeItems, CodeElements codeElements) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>c__DisplayClass8_0.<RetrieveCodeItemsFromElements>b__0(CodeElement child) at System.Threading.Tasks.Parallel.<>c__DisplayClass272.b29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>cDisplayClass0.b1(Object ) ---> (Inner Exception #0) System.AggregateException: One or more errors occurred. ---> System.ArgumentNullException: Value cannot be null. Parameter name: pNativeData at System.Runtime.InteropServices.CustomMarshalers.EnumeratorToEnumVariantMarshaler.MarshalNativeToManaged(IntPtr pNativeData) at System.Collections.IEnumerator.MoveNext() at System.Linq.Enumerable.d11.MoveNext() at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerable.GrabChunk_Buffered(KeyValuePair2[] destArray, Int32 requestedChunkSize, Int32& actualNumElementsGrabbed) at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerator.GrabNextChunk(Int32 requestedChunkSize) at System.Collections.Concurrent.Partitioner.DynamicPartitionEnumerator_Abstract2.MoveNext() at System.Threading.Tasks.Parallel.<>c__DisplayClass272.b29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>cDisplayClass0.b1(Object ) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner1 source, ParallelOptions parallelOptions, Action1 simpleBody, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action1 body) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsFromElements(SetCodeItems codeItems, CodeElements codeElements) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>cDisplayClass8_0.b0(CodeElement child) at System.Threading.Tasks.Parallel.<>cDisplayClass272.<PartitionerForEachWorker>b__29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object ) ---> (Inner Exception #0) System.ArgumentNullException: Value cannot be null. Parameter name: pNativeData at System.Runtime.InteropServices.CustomMarshalers.EnumeratorToEnumVariantMarshaler.MarshalNativeToManaged(IntPtr pNativeData) at System.Collections.IEnumerator.MoveNext() at System.Linq.Enumerable.<OfTypeIterator>d__11.MoveNext() at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerable.GrabChunk_Buffered(KeyValuePair2[] destArray, Int32 requestedChunkSize, Int32& actualNumElementsGrabbed) at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerator.GrabNextChunk(Int32 requestedChunkSize) at System.Collections.Concurrent.Partitioner.DynamicPartitionEnumerator_Abstract2.MoveNext() at System.Threading.Tasks.Parallel.<>cDisplayClass27`2.b29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>cDisplayClass0.b1(Object )<--- ---> (Inner Exception #1) System.AggregateException: One or more errors occurred. ---> System.Runtime.InteropServices.COMException: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) at System.Runtime.InteropServices.ComTypes.IEnumerator.MoveNext() at System.Collections.IEnumerator.MoveNext() at System.Linq.Enumerable.d11.MoveNext() at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerable.GrabChunk_Buffered(KeyValuePair2[] destArray, Int32 requestedChunkSize, Int32& actualNumElementsGrabbed) at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerator.GrabNextChunk(Int32 requestedChunkSize) at System.Collections.Concurrent.Partitioner.DynamicPartitionEnumerator_Abstract`2.MoveNext() at System.Threading.Tasks.Parallel.<>cDisplayClass272.<PartitionerForEachWorker>b__29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object ) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner1 source, ParallelOptions parallelOptions, Action1 simpleBody, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action1 body) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsFromElements(SetCodeItems codeItems, CodeElements codeElements) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>c__DisplayClass8_0.<RetrieveCodeItemsFromElements>b__0(CodeElement child) at System.Threading.Tasks.Parallel.<>c__DisplayClass272.b29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>cDisplayClass0.b1(Object ) ---> (Inner Exception #0) System.Runtime.InteropServices.COMException (0x8002801D): Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) at System.Runtime.InteropServices.ComTypes.IEnumerator.MoveNext() at System.Collections.IEnumerator.MoveNext() at System.Linq.Enumerable.d11.MoveNext() at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerable.GrabChunk_Buffered(KeyValuePair2[] destArray, Int32 requestedChunkSize, Int32& actualNumElementsGrabbed) at System.Collections.Concurrent.Partitioner.DynamicPartitionerForIEnumerable1.InternalPartitionEnumerator.GrabNextChunk(Int32 requestedChunkSize) at System.Collections.Concurrent.Partitioner.DynamicPartitionEnumerator_Abstract2.MoveNext() at System.Threading.Tasks.Parallel.<>c__DisplayClass272.b29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>cDisplayClass0.b1(Object )<--- <--- <--- <--- [CodeMaid Handled Exception 04:03:56 PM] Unable to build code model for 'C:\Users\Greg\Source\Workspaces\Domaination\OSControls\OSControls\OSControls\AnalogClockView.cs': System.AggregateException: One or more errors occurred. ---> System.Runtime.InteropServices.COMException: Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) at EnvDTE.TextPoint.get_AbsoluteCharOffset() at SteveCadwallader.CodeMaid.Model.CodeItems.CodeItemUsingStatement.RefreshCachedPositionAndName() at SteveCadwallader.CodeMaid.Model.CodeItems.FactoryCodeItems.CreateCodeItemElement(CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>c__DisplayClass8_0.b0(CodeElement child) at System.Threading.Tasks.Parallel.<>cDisplayClass27`2.b29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>cDisplayClass0.b1(Object ) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait() at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner1 source, ParallelOptions parallelOptions, Action1 simpleBody, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action1 body) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsFromElements(SetCodeItems codeItems, CodeElements codeElements) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveAllCodeItems(Document document) at SteveCadwallader.CodeMaid.Model.CodeModelManager.BuildCodeItems(CodeModel codeModel) ---> (Inner Exception #0) System.Runtime.InteropServices.COMException (0x8002801D): Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) at EnvDTE.TextPoint.get_AbsoluteCharOffset() at SteveCadwallader.CodeMaid.Model.CodeItems.CodeItemUsingStatement.RefreshCachedPositionAndName() at SteveCadwallader.CodeMaid.Model.CodeItems.FactoryCodeItems.CreateCodeItemElement(CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>cDisplayClass8_0.b0(CodeElement child) at System.Threading.Tasks.Parallel.<>cDisplayClass27`2.b29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>cDisplayClass0.b__1(Object )<--- ---> (Inner Exception #1) System.Runtime.InteropServices.COMException (0x8002801D): Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) at EnvDTE.CodeElement.get_Kind() at SteveCadwallader.CodeMaid.Model.CodeItems.FactoryCodeItems.CreateCodeItemElement(CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>cDisplayClass8_0.b0(CodeElement child) at System.Threading.Tasks.Parallel.<>cDisplayClass272.<PartitionerForEachWorker>b__29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass0.<ExecuteSelfReplicating>b__1(Object )<--- ---> (Inner Exception #2) System.Runtime.InteropServices.COMException (0x8002801D): Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) at EnvDTE.CodeElement.get_Children() at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.RetrieveCodeItemsRecursively(SetCodeItems codeItems, CodeElement codeElement) at SteveCadwallader.CodeMaid.Model.CodeModelBuilder.<>c__DisplayClass8_0.<RetrieveCodeItemsFromElements>b__0(CodeElement child) at System.Threading.Tasks.Parallel.<>c__DisplayClass272.b29() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>cDisplayClass0.b__1(Object )<---

--------- Original Message --------- Subject: Re: [codemaid] Exception on Cleanup (#143) From: "Steve Cadwallader" notifications@github.com Date: 8/20/15 3:34 pm To: "codecadwallader/codemaid" codemaid@noreply.github.com Cc: "gdosborne" greg@gdosborne.com

There is not enough information available to investigate this issue. Some helpful information to provide:

codecadwallader commented 9 years ago

Can you provide your CodeMaid settings?

gdosborne commented 9 years ago

<?xml version="1.0" encoding="utf-8"?>

True True True True False False 500 True using System;||using System.Collections;||using System.Collections.Generic;||using System.Linq; 0 0 False False False False True Constructors||1||Constructors Methods||3||Methods Properties||8||Properties Enums||6||Enums Destructors||10||Destructors Delegates||2||Delegates Indexers||9||Indexers Classes||12||Classes Fields||5||Fields Structs||11||Structs Interfaces||7||Interfaces Events||4||Events

--------- Original Message --------- Subject: Re: [codemaid] Exception on Cleanup (#143) From: "Steve Cadwallader" notifications@github.com Date: 8/29/15 3:58 pm To: "codecadwallader/codemaid" codemaid@noreply.github.com Cc: "gdosborne" greg@gdosborne.com

Can you provide your CodeMaid settings?

Reply to this email directly or view it on GitHub.

codecadwallader commented 9 years ago

Please try disabling the performance option "Multithread operations". It works great on some systems, but it has been known to cause issues on some other systems.

gdosborne commented 9 years ago

Disabling the above setting took care of the issue

Sent from my iPhone

On Sep 5, 2015, at 6:07 AM, Steve Cadwallader notifications@github.com wrote:

Please try disabling the performance option "Multithread operations". It works great on some systems, but it has been known to cause issues on some other systems.

— Reply to this email directly or view it on GitHub.

codecadwallader commented 9 years ago

Glad to hear it, closing issue.