I get that error (not quite always, but nearly) when opening an external workbook via VBA. Specifically when using Workbooks.Open(filename). This started occuring immediately after installing the new Rubberduck 2.0 Alpha Preview (hotfix 1). The external workbooks contain their own code/Macros.
Update: Also observed when opening workbooks manually and opening workbooks that do not contain their own code/macros.
Update: Also triggered when renaming the project name in the properties window (with no other open projects).
Clicking Continue allows the code to finish executing and doesn't appear to cause any other adverse effects. It only occurs once per execution (despite multiple workbook openings).
Full error paste:
"Unhandled exception has occured in a component in your application. If you click Continue, the
application will ignore this error and attempt to continue.
Exception from HRESULT: 0x800A01A8"
Details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
\ Exception Text **
System.Runtime.InteropServices.COMException (0x800A01A8): Exception from HRESULT: 0x800A01A8
at Microsoft.Vbe.Interop.VBProjectClass.get_Name()
at Rubberduck.Parsing.Symbols.DeclarationFinder.<.ctor>b__6(Declaration declaration) in c:\Users\Mathieu\Documents\GitHub\Rubberduck\Rubberduck.Parsing\Symbols\DeclarationFinder.cs:line 26
at System.Linq.Lookup2.Create[TSource](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) at System.Linq.GroupedEnumerable3.GetEnumerator()
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer)
at Rubberduck.Parsing.Symbols.DeclarationFinder..ctor(IReadOnlyList1 declarations, IEnumerable1 comments, IEnumerable1 annotations) in c:\Users\Mathieu\Documents\GitHub\Rubberduck\Rubberduck.Parsing\Symbols\DeclarationFinder.cs:line 26 at Rubberduck.Parsing.VBA.RubberduckParser.AddBuiltInDeclarations(IReadOnlyList1 projects) in c:\Users\Mathieu\Documents\GitHub\Rubberduck\Rubberduck.Parsing\VBA\RubberduckParser.cs:line 171
at Rubberduck.Parsing.VBA.RubberduckParser.ParseAll() in c:\Users\Mathieu\Documents\GitHub\Rubberduck\Rubberduck.Parsing\VBA\RubberduckParser.cs:line 140
at Rubberduck.Parsing.VBA.RubberduckParser.ReparseRequested(Object sender, ParseRequestEventArgs e) in c:\Users\Mathieu\Documents\GitHub\Rubberduck\Rubberduck.Parsing\VBA\RubberduckParser.cs:line 77
at Rubberduck.Parsing.VBA.RubberduckParserState.OnParseRequested(Object requestor, VBComponent component) in c:\Users\Mathieu\Documents\GitHub\Rubberduck\Rubberduck.Parsing\VBA\RubberduckParserState.cs:line 534
at Rubberduck.App.d4.MoveNext() in c:\Users\Mathieu\Documents\GitHub\Rubberduck\RetailCoder.VBE\App.cs:line 203
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.b0(Object state)
\ JIT Debugging **
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
I get that error (not quite always, but nearly) when opening an external workbook via VBA. Specifically when using
Workbooks.Open(filename)
. This started occuring immediately after installing the new Rubberduck 2.0 Alpha Preview (hotfix 1). The external workbooks contain their own code/Macros.Update: Also observed when opening workbooks manually and opening workbooks that do not contain their own code/macros.
Update: Also triggered when renaming the project name in the properties window (with no other open projects).
Clicking Continue allows the code to finish executing and doesn't appear to cause any other adverse effects. It only occurs once per execution (despite multiple workbook openings).
Full error paste: