Closed SystemsModelling closed 5 years ago
This one is a odd one, and I've had this pop up a couple of times myself. At this point I'm not sure what exactly the "file" that VBA is referring to is. My best guess is that is it related to 1 (or more) of 3 things:
Assembly.LoadFile
to load libraries at run-time. Probably the most unlikely of the 3 unless it's interacting with on of the others.I've only had this issue in Excel, and only with .xlsm files (although I don't really use .xls files enough have run into it with the binary formats).
This seems to be caused be the same problem as in #2845. The exception is thrown by the VBE itself, which seems to be unable to read the project file stream for some reason.
I've hit this a few times with .XLSM & .XLTM files in the last week or two. I just chalked it up to our flaky network. I'll be sure to grab a log next time it happens, just in case there's something useful in there.
Here's some errors, I don't know if they relate to this
2017-03-20 18:43:04.8488;ERROR-2.0.13.32288;Rubberduck.Parsing.VBA.ComponentParseTask;Exception thrown in thread 10, ParseTaskID 82c534a5-225e-4cd4-9abf-0a4032150fbf.;System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
at System.String.Substring(Int32 startIndex, Int32 length)
at Rubberduck.Parsing.Preprocessing.LivelinessExpression.MarkAsDead(String code) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\Preprocessing\LivelinessExpression.cs:line 26
at Rubberduck.Parsing.Preprocessing.LivelinessExpression.Evaluate() in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\Preprocessing\LivelinessExpression.cs:line 21
at Rubberduck.Parsing.Preprocessing.ConditionalCompilationIfExpression.Evaluate() in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\Preprocessing\ConditionalCompilationIfExpression.cs:line 48
at Rubberduck.Parsing.Preprocessing.ConditionalCompilationBlockExpression.<>c.<Evaluate>b__2_0(IExpression child) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\Preprocessing\ConditionalCompilationBlockExpression.cs:line 17
at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
at System.String.Join(String separator, IEnumerable`1 values)
at Rubberduck.Parsing.Preprocessing.ConditionalCompilationBlockExpression.Evaluate() in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\Preprocessing\ConditionalCompilationBlockExpression.cs:line 17
at Rubberduck.Parsing.Preprocessing.VBAPreprocessor.Execute(String moduleName, String unprocessedCode, CancellationToken token) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\Preprocessing\VBAPreprocessor.cs:line 24
at Rubberduck.Parsing.VBA.ComponentParseTask.RewriteAndPreprocess(CancellationToken token) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\VBA\ComponentParseTask.cs:line 184
at Rubberduck.Parsing.VBA.ComponentParseTask.Start(CancellationToken token) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\VBA\ComponentParseTask.cs:line 51
2017-03-20 18:43:04.9168;TRACE-2.0.13.32288;Rubberduck.Parsing.VBA.ComponentParseTask;Starting ParseTaskID c82d793c-fc8b-48a2-9992-1a7f87d4103a on thread 15.;
2017-03-20 18:43:04.9508;DEBUG-2.0.13.32288;Rubberduck.Parsing.VBA.RubberduckParserState;Module 'frmSMSurveyList' state is changing to 'Error' (thread 10);
2017-03-20 18:43:04.9658;DEBUG-2.0.13.32288;Rubberduck.Parsing.VBA.RubberduckParserState;RubberduckParserState raised StateChanged (Error);
2017-03-20 19:06:48.3555;DEBUG-2.0.13.32288;Rubberduck.Parsing.VBA.RubberduckParserState;RubberduckParserState raised StateChanged (ResolverError);
2017-03-20 19:06:48.4250;ERROR-2.0.13.32288;Rubberduck.Parsing.VBA.ParseCoordinator;Unexpected exception thrown in parsing run. (thread 10).;System.AggregateException: One or more errors occurred. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Concurrent.ConcurrentDictionary`2.get_Item(TKey key)
at Rubberduck.Parsing.VBA.ParseCoordinator.AddModuleToModuleReferences(DeclarationFinder finder, QualifiedModuleName referencedModule) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 638
at Rubberduck.Parsing.VBA.ParseCoordinator.<>c__DisplayClass48_0.<AddModuleToModuleReferences>b__0(Int32 index) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 622
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(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.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body)
at Rubberduck.Parsing.VBA.ParseCoordinator.AddModuleToModuleReferences(DeclarationFinder finder, CancellationToken token) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 632
at Rubberduck.Parsing.VBA.ParseCoordinator.ResolveAllReferences(ICollection`1 toResolve, CancellationToken token) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 0
at Rubberduck.Parsing.VBA.ParseCoordinator.ExecuteCommonParseActivities(ICollection`1 toParse, CancellationToken token) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 243
at Rubberduck.Parsing.VBA.ParseCoordinator.ParseAllInternal(Object requestor, CancellationToken token) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 749
at Rubberduck.Parsing.VBA.ParseCoordinator.ParseAll(Object requestor, CancellationToken token) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 682
---> (Inner Exception #0) System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Concurrent.ConcurrentDictionary`2.get_Item(TKey key)
at Rubberduck.Parsing.VBA.ParseCoordinator.AddModuleToModuleReferences(DeclarationFinder finder, QualifiedModuleName referencedModule) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 638
at Rubberduck.Parsing.VBA.ParseCoordinator.<>c__DisplayClass48_0.<AddModuleToModuleReferences>b__0(Int32 index) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 622
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )<---
---> (Inner Exception #1) System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Concurrent.ConcurrentDictionary`2.get_Item(TKey key)
at Rubberduck.Parsing.VBA.ParseCoordinator.AddModuleToModuleReferences(DeclarationFinder finder, QualifiedModuleName referencedModule) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 638
at Rubberduck.Parsing.VBA.ParseCoordinator.<>c__DisplayClass48_0.<AddModuleToModuleReferences>b__0(Int32 index) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 622
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )<---
---> (Inner Exception #2) System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Concurrent.ConcurrentDictionary`2.get_Item(TKey key)
at Rubberduck.Parsing.VBA.ParseCoordinator.AddModuleToModuleReferences(DeclarationFinder finder, QualifiedModuleName referencedModule) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 638
at Rubberduck.Parsing.VBA.ParseCoordinator.<>c__DisplayClass48_0.<AddModuleToModuleReferences>b__0(Int32 index) in C:\Users\Mathieu\Documents\GitHub\Rubberduck (main)\Rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 622
at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )<---
2017-03-20 19:06:48.4250;DEBUG-2.0.13.32288;Rubberduck.Parsing.VBA.RubberduckParserState;RubberduckParserState raised StateChanged (Error);
@SystemsModelling Please check out the changes I made to this (and a lot of other) comment(s) of yours. Formatting the exception (and everything else, too) in a consistent and readable manner makes things significantly easier for the team to read and understand and helps us tremendously.
While we do have the ability to edit your comments, it's less hassle for all involved if you format it right in the first place 😄 Thanks
FWIW - in a project, our developers ran into a weird issue where the temp directory wouldn't be consistent, especially in a RDP environment. That is, calling %TEMP%
may return one path ending with ...\Temp\01
then next time it's now ...\Temp\02
. Thus it can be a mistake to assume that the %TEMP%
won't change within a session. Just throwing this out in case this is relevant given that the parsers are using temporary directories.
seems the error might not be related to the file system at all - This is from VBE6 and Access 2000, but it suggests that the error relates to a compile error:
Without getting into the mundane details, the basis of the problem is a conflict between Access 2000 and version 6.3.91.8 of the Vbe6.dll. This conflict prevents certain code modules from compiling and running. The failure of the code results in the seemingly unrelated error message.
And this article suggests that the error might be because the VBA project might be corrupted.
http://kb.palisade.com/index.php?pg=kb.page&id=355
I wonder if this error is only occurring on files that have been saved after Rubberduck processing, and that are later re-opened? Could it be that the export/import process is occurring too fast for the VBE to keep up, or possibly before the project is ready to export, and Rubberduck inadvertently corrupts the project?
Or maybe the file fails on first load because RD is trying to Export, but doesn't fail on 2nd load, because RD already (and mistakenly) has a cache, and doesn't try to export/import?
Or maybe the file is corrupt, and we're assuming the message is because of something RD is doing? Maybe the message is appearing because the file is corrupt, and would have appeared whether RD was loaded or not?
This SO answer suggests that the file can be recovered.
http://stackoverflow.com/a/41689709/5757159
I just came across this error, using the option to "Open and Repair" from the drop-down on the button on Excel's "Open" dialog fixed it for me.
Thunderframe, It's certainly possible a file can be corrupt, although usually I see a blank Error 400 when that happens rather than a network error. That's why I repeated the test after removing the RD addin, to verify that there was no error. There are a number of MS forum reports about network errors (Document not saved) so there might be some bug in Excel that nobody has pinned down yet. I don't know the RD code, but those discussions about race conditions between RD and the VBE sound like a possible cause to me.
Vogel612, AFAICS from the grey background you formatted the dump as code. So if I click the "Insert code" <> button before pasting I should get something like this:
formatted the dump as code
Ah, that inserts backticks. Somebody else told me about that too, I must remember it. On my keyboard I have to press backtick twice and then delete the second, because it's an accent key. That <> button might be easier.
Actually, I'd prefer not to be pasting long error reports into messages, it makes the thread less readable, Is there an option to attach the Rubberducklog.txt file, or should I simply email it directly to Mat or somebody else?
@SystemsModelling you can just drag & drop a file to attach it to the current comment. It doesn't work for all filetypes, but txts should work just fine. Usually I go around and extract the stacktraces from logs for simplicity anyways ...
Note that you can press the little stylus on the top right of your comments to edit them. This allows seeing the actual markdown itself. for the codeblocks I used to use the four-space-indent as it was common on StackExchange, but github uses "fences" like this -> ```
Before I blow away my log file, I just replicated this, and this is what logged:
2017-03-21 21:03:38.8850;DEBUG-2.0.13.37890;Rubberduck.Parsing.VBA.RubberduckParserState;Project '-766805486' was added.;
2017-03-21 21:03:38.8850;DEBUG-2.0.13.37890;Rubberduck.Parsing.VBA.ParseCoordinator;Parsing run started. (thread 5).;
2017-03-21 21:03:38.9879;ERROR-2.0.13.37890;Rubberduck.Parsing.VBA.ParseCoordinator;Unexpected exception thrown in parsing run. (thread 5).;System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at Microsoft.Vbe.Interop._VBComponent.get_CodeModule()
at Rubberduck.VBEditor.SafeComWrappers.VBA.VBComponent.get_CodeModule() in C:\Dev\Rubberduck\Rubberduck.VBEEditor\SafeComWrappers\VBA\VBComponent.cs:line 25
at Rubberduck.VBEditor.QualifiedModuleName..ctor(IVBComponent component) in C:\Dev\Rubberduck\Rubberduck.VBEEditor\QualifiedModuleName.cs:line 54
at Rubberduck.Parsing.VBA.RubberduckParserState.IsNewOrModified(IVBComponent component) in C:\Dev\Rubberduck\Rubberduck.Parsing\VBA\RubberduckParserState.cs:line 975
at Rubberduck.Parsing.VBA.ParseCoordinator.<ParseAllInternal>b__53_1(IVBComponent component) in C:\Dev\Rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 726
at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
at System.Collections.Generic.HashSet`1.UnionWith(IEnumerable`1 other)
at System.Collections.Generic.HashSet`1..ctor(IEnumerable`1 collection, IEqualityComparer`1 comparer)
at System.Collections.Generic.HashSet`1..ctor(IEnumerable`1 collection)
at Rubberduck.Parsing.VBA.EnumerableExtensions.ToHashSet[T](IEnumerable`1 source) in C:\Dev\Rubberduck\Rubberduck.Parsing\VBA\EnumerableExtensions.cs:line 26
at Rubberduck.Parsing.VBA.ParseCoordinator.ParseAllInternal(Object requestor, CancellationToken token) in C:\Dev\Rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 726
at Rubberduck.Parsing.VBA.ParseCoordinator.ParseAll(Object requestor, CancellationToken token) in C:\Dev\Rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 680
2017-03-21 21:03:39.0995;DEBUG-2.0.13.37890;Rubberduck.Parsing.VBA.RubberduckParserState;RubberduckParserState raised StateChanged (Error);
2017-03-21 21:03:39.1964;DEBUG-2.0.13.37890;Rubberduck.Parsing.VBA.ParseCoordinator;Parsing run finished after 0s. (thread 5).
I'm using Excel 2010 and now read this:
Order matters. Open the workbook first, Alt+F11, OK. Start Excel blank workbook, Alt+F11, then open workbook, get these three repeatedly until I kill Excel: Error accessing file. Network connection may have been lost. Automation error Out of Memory
Pinging @SystemsModelling - is this still an issue now?
Just catching up now with 2.4.1.4881. Not seen this behaviour yet, thanks. However, when I open first a .xlsm then a big .xlsx (say 200MB) I get the hourglass flickering and the VBEIDE shows "Resolving declarations" for VBProject.Module1 which does not exist. Then when I close it it starts again on the original .xlsm I opened. Could we have RD only do something when I tell it to?
Thanks for reporting back! Since this seems to be no longer an issue, I'll close the issue. Your other question seems better addressed in #3041.
I'm seeing this error again in:
Version 2.5.0.5244
OS: Microsoft Windows NT 10.0.18363.0, x64
Host Product: Microsoft Office x64
Host Version: 16.0.11328.20492
Host Executable: MSACCESS.EXE
It began after I let the code inspection window add some MemberAttributes:
'@MemberAttribute VB_VarHelpID, -1
Now when I hit parse I get a compile error:
Followed by the network error:
NOTE: I uninstalled RD and this problem went away.
Here is a log from today. The project was loaded locally from C:\temp so it's not a network error.
2020-01-16 09:58:51.6766;WARN-2.5.0.5288;Rubberduck.Common.LogLevelHelper;
Rubberduck version 2.5.0.5288 loading:
Operating System: Microsoft Windows NT 10.0.18363.0 x64
Host Product: Microsoft Office x64
Host Version: 16.0.11328.20492
Host Executable: MSACCESS.EXE;
2020-01-16 09:59:18.1118;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.Parsing.TokenStreamParserBase;SLL mode failed while parsing the CodePaneCode version of module modReport at symbol
at L73C32. Retrying using LL.;
2020-01-16 09:59:18.4388;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.Parsing.TokenStreamParserBase;SLL mode failed while parsing the AttributesCode version of module modReport at symbol
at L74C32. Retrying using LL.;
2020-01-16 09:59:20.7808;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.7808;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.7808;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.7808;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8018;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8018;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8098;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8098;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8098;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8098;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8098;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8098;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8098;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8288;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8288;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8288;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8288;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8288;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8288;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8288;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8418;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8418;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8418;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8418;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8418;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8418;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8418;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8418;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8678;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8678;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8678;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8898;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:20.8898;WARN-2.5.0.5288;Rubberduck.Parsing.VBA.ReferenceManagement.IdentifierReferenceResolver;Type Context: Failed to resolve Object. Binding as much as we can.;
2020-01-16 09:59:21.2928;WARN-2.5.0.5288;Rubberduck.Inspections.Rubberduck.Inspections.Inspector;System.InvalidCastException: Unable to cast object of type 'Rubberduck.Parsing.Symbols.VariableDeclaration' to type 'Rubberduck.Parsing.Symbols.ModuleBodyElementDeclaration'.
at Rubberduck.Inspections.Concrete.ImplementedInterfaceMemberInspection.<>c.<DoGetInspectionResults>b__1_4(Declaration member) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\ImplementedInterfaceMemberInspection.cs:line 56
at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)
at Rubberduck.Inspections.Abstract.InspectionBase.GetInspectionResults(CancellationToken token) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Abstract\InspectionBase.cs:line 111
at Rubberduck.Inspections.Rubberduck.Inspections.Inspector.RunInspection(IInspection inspection, ConcurrentBag`1 allIssues, CancellationToken token) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Inspector.cs:line 179;System.InvalidCastException: Unable to cast object of type 'Rubberduck.Parsing.Symbols.VariableDeclaration' to type 'Rubberduck.Parsing.Symbols.ModuleBodyElementDeclaration'.
at Rubberduck.Inspections.Concrete.ImplementedInterfaceMemberInspection.<>c.<DoGetInspectionResults>b__1_4(Declaration member) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\ImplementedInterfaceMemberInspection.cs:line 56
at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
at System.Linq.Enumerable.<SelectManyIterator>d__17`2.MoveNext()
at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)
at Rubberduck.Inspections.Abstract.InspectionBase.GetInspectionResults(CancellationToken token) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Abstract\InspectionBase.cs:line 111
at Rubberduck.Inspections.Rubberduck.Inspections.Inspector.RunInspection(IInspection inspection, ConcurrentBag`1 allIssues, CancellationToken token) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Inspector.cs:line 179
2020-01-16 09:59:21.4798;WARN-2.5.0.5288;Rubberduck.Inspections.Rubberduck.Inspections.Inspector;System.NullReferenceException: Object reference not set to an instance of an object.
at Rubberduck.Inspections.Concrete.UnreachableCaseInspection.UnreachableCaseInspection.GetIdentifierReferenceForContext(ParserRuleContext context, RubberduckParserState state) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\UnreachableCaseInspection\UnreachableCaseInspection.cs:line 204
at Rubberduck.Inspections.Concrete.UnreachableCaseInspection.ParseTreeValueVisitor.TryGetIdentifierReferenceForContext(ParserRuleContext context, IdentifierReference& idRef) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\UnreachableCaseInspection\ParseTreeValueVisitor.cs:line 366
at Rubberduck.Inspections.Concrete.UnreachableCaseInspection.ParseTreeValueVisitor.Visit(LExprContext context) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\UnreachableCaseInspection\ParseTreeValueVisitor.cs:line 145
at Rubberduck.Inspections.Concrete.UnreachableCaseInspection.ParseTreeValueVisitor.VisitChildren(ParserRuleContext context) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\UnreachableCaseInspection\ParseTreeValueVisitor.cs:line 250
at Rubberduck.Inspections.Concrete.UnreachableCaseInspection.ParseTreeValueVisitor.VisitUnaryResultContext(ParserRuleContext parserRuleContext) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\UnreachableCaseInspection\ParseTreeValueVisitor.cs:line 235
at Rubberduck.Inspections.Concrete.UnreachableCaseInspection.ParseTreeValueVisitor.Visit(IParseTree tree) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\UnreachableCaseInspection\ParseTreeValueVisitor.cs:line 59
at Rubberduck.Inspections.Concrete.UnreachableCaseInspection.ParseTreeValueVisitor.VisitChildren(IRuleNode node) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\UnreachableCaseInspection\ParseTreeValueVisitor.cs:line 70
at Rubberduck.Inspections.Concrete.UnreachableCaseInspection.UnreachableCaseInspection.DoGetInspectionResults() in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\UnreachableCaseInspection\UnreachableCaseInspection.cs:line 153
at Rubberduck.Inspections.Abstract.InspectionBase.GetInspectionResults(CancellationToken token) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Abstract\InspectionBase.cs:line 108
at Rubberduck.Inspections.Rubberduck.Inspections.Inspector.RunInspection(IInspection inspection, ConcurrentBag`1 allIssues, CancellationToken token) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Inspector.cs:line 179;System.NullReferenceException: Object reference not set to an instance of an object.
at Rubberduck.Inspections.Concrete.UnreachableCaseInspection.UnreachableCaseInspection.GetIdentifierReferenceForContext(ParserRuleContext context, RubberduckParserState state) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\UnreachableCaseInspection\UnreachableCaseInspection.cs:line 204
at Rubberduck.Inspections.Concrete.UnreachableCaseInspection.ParseTreeValueVisitor.TryGetIdentifierReferenceForContext(ParserRuleContext context, IdentifierReference& idRef) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\UnreachableCaseInspection\ParseTreeValueVisitor.cs:line 366
at Rubberduck.Inspections.Concrete.UnreachableCaseInspection.ParseTreeValueVisitor.Visit(LExprContext context) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\UnreachableCaseInspection\ParseTreeValueVisitor.cs:line 145
at Rubberduck.Inspections.Concrete.UnreachableCaseInspection.ParseTreeValueVisitor.VisitChildren(ParserRuleContext context) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\UnreachableCaseInspection\ParseTreeValueVisitor.cs:line 250
at Rubberduck.Inspections.Concrete.UnreachableCaseInspection.ParseTreeValueVisitor.VisitUnaryResultContext(ParserRuleContext parserRuleContext) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\UnreachableCaseInspection\ParseTreeValueVisitor.cs:line 235
at Rubberduck.Inspections.Concrete.UnreachableCaseInspection.ParseTreeValueVisitor.Visit(IParseTree tree) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\UnreachableCaseInspection\ParseTreeValueVisitor.cs:line 59
at Rubberduck.Inspections.Concrete.UnreachableCaseInspection.ParseTreeValueVisitor.VisitChildren(IRuleNode node) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\UnreachableCaseInspection\ParseTreeValueVisitor.cs:line 70
at Rubberduck.Inspections.Concrete.UnreachableCaseInspection.UnreachableCaseInspection.DoGetInspectionResults() in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Concrete\UnreachableCaseInspection\UnreachableCaseInspection.cs:line 153
at Rubberduck.Inspections.Abstract.InspectionBase.GetInspectionResults(CancellationToken token) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Abstract\InspectionBase.cs:line 108
at Rubberduck.Inspections.Rubberduck.Inspections.Inspector.RunInspection(IInspection inspection, ConcurrentBag`1 allIssues, CancellationToken token) in C:\projects\rubberduck\Rubberduck.CodeAnalysis\Inspections\Inspector.cs:line 179
2020-01-16 09:59:25.4444;ERROR-2.5.0.5288;Rubberduck.Parsing.VBA.ParseCoordinator;Unexpected exception thrown in parsing run. (thread 22).;System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at Microsoft.Vbe.Interop._VBComponent.get_CodeModule()
at Rubberduck.VBEditor.SafeComWrappers.VBA.VBComponent.get_CodeModule() in C:\projects\rubberduck\Rubberduck.VBEditor.VBA\SafeComWrappers\VB\VBComponent.cs:line 23
at Rubberduck.VBEditor.SafeComWrappers.VBA.VBComponent.ContentHash() in C:\projects\rubberduck\Rubberduck.VBEditor.VBA\SafeComWrappers\VB\VBComponent.cs:line 257
at Rubberduck.Parsing.VBA.RubberduckParserState.IsNewOrModified(QualifiedModuleName key) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\RubberduckParserState.cs:line 1003
at Rubberduck.Parsing.VBA.ParseCoordinator.<ParseAllInternal>b__34_3(QualifiedModuleName module) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 521
at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
at System.Collections.Generic.HashSet`1.UnionWith(IEnumerable`1 other)
at System.Collections.Generic.HashSet`1..ctor(IEnumerable`1 collection, IEqualityComparer`1 comparer)
at Rubberduck.Parsing.VBA.ParseCoordinator.ParseAllInternal(Object requestor, CancellationToken token) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 521
at Rubberduck.Parsing.VBA.ParseCoordinator.ParseAll(Object requestor) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 471
2020-01-16 09:59:27.1542;ERROR-2.5.0.5288;Rubberduck.Parsing.VBA.ParseCoordinator;Unexpected exception thrown in parsing run. (thread 27).;System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at Microsoft.Vbe.Interop._VBComponent.get_CodeModule()
at Rubberduck.VBEditor.SafeComWrappers.VBA.VBComponent.get_CodeModule() in C:\projects\rubberduck\Rubberduck.VBEditor.VBA\SafeComWrappers\VB\VBComponent.cs:line 23
at Rubberduck.VBEditor.SafeComWrappers.VBA.VBComponent.ContentHash() in C:\projects\rubberduck\Rubberduck.VBEditor.VBA\SafeComWrappers\VB\VBComponent.cs:line 257
at Rubberduck.Parsing.VBA.RubberduckParserState.IsNewOrModified(QualifiedModuleName key) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\RubberduckParserState.cs:line 1003
at Rubberduck.Parsing.VBA.ParseCoordinator.<ParseAllInternal>b__34_3(QualifiedModuleName module) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 521
at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
at System.Collections.Generic.HashSet`1.UnionWith(IEnumerable`1 other)
at System.Collections.Generic.HashSet`1..ctor(IEnumerable`1 collection, IEqualityComparer`1 comparer)
at Rubberduck.Parsing.VBA.ParseCoordinator.ParseAllInternal(Object requestor, CancellationToken token) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 521
at Rubberduck.Parsing.VBA.ParseCoordinator.ParseAll(Object requestor) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 471
2020-01-16 09:59:28.1985;ERROR-2.5.0.5288;Rubberduck.Parsing.VBA.ParseCoordinator;Unexpected exception thrown in parsing run. (thread 26).;System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at Microsoft.Vbe.Interop._VBComponent.get_CodeModule()
at Rubberduck.VBEditor.SafeComWrappers.VBA.VBComponent.get_CodeModule() in C:\projects\rubberduck\Rubberduck.VBEditor.VBA\SafeComWrappers\VB\VBComponent.cs:line 23
at Rubberduck.VBEditor.SafeComWrappers.VBA.VBComponent.ContentHash() in C:\projects\rubberduck\Rubberduck.VBEditor.VBA\SafeComWrappers\VB\VBComponent.cs:line 257
at Rubberduck.Parsing.VBA.RubberduckParserState.IsNewOrModified(QualifiedModuleName key) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\RubberduckParserState.cs:line 1003
at Rubberduck.Parsing.VBA.ParseCoordinator.<ParseAllInternal>b__34_3(QualifiedModuleName module) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 521
at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
at System.Collections.Generic.HashSet`1.UnionWith(IEnumerable`1 other)
at System.Collections.Generic.HashSet`1..ctor(IEnumerable`1 collection, IEqualityComparer`1 comparer)
at Rubberduck.Parsing.VBA.ParseCoordinator.ParseAllInternal(Object requestor, CancellationToken token) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 521
at Rubberduck.Parsing.VBA.ParseCoordinator.ParseAll(Object requestor) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 471
2020-01-16 09:59:29.3445;ERROR-2.5.0.5288;Rubberduck.Parsing.VBA.ParseCoordinator;Unexpected exception thrown in parsing run. (thread 29).;System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at Microsoft.Vbe.Interop._VBComponent.get_CodeModule()
at Rubberduck.VBEditor.SafeComWrappers.VBA.VBComponent.get_CodeModule() in C:\projects\rubberduck\Rubberduck.VBEditor.VBA\SafeComWrappers\VB\VBComponent.cs:line 23
at Rubberduck.VBEditor.SafeComWrappers.VBA.VBComponent.ContentHash() in C:\projects\rubberduck\Rubberduck.VBEditor.VBA\SafeComWrappers\VB\VBComponent.cs:line 257
at Rubberduck.Parsing.VBA.RubberduckParserState.IsNewOrModified(QualifiedModuleName key) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\RubberduckParserState.cs:line 1003
at Rubberduck.Parsing.VBA.ParseCoordinator.<ParseAllInternal>b__34_3(QualifiedModuleName module) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 521
at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
at System.Collections.Generic.HashSet`1.UnionWith(IEnumerable`1 other)
at System.Collections.Generic.HashSet`1..ctor(IEnumerable`1 collection, IEqualityComparer`1 comparer)
at Rubberduck.Parsing.VBA.ParseCoordinator.ParseAllInternal(Object requestor, CancellationToken token) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 521
at Rubberduck.Parsing.VBA.ParseCoordinator.ParseAll(Object requestor) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 471
2020-01-16 09:59:30.7699;ERROR-2.5.0.5288;Rubberduck.Parsing.VBA.ParseCoordinator;Unexpected exception thrown in parsing run. (thread 4).;System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.
at Microsoft.Vbe.Interop._VBComponent.get_CodeModule()
at Rubberduck.VBEditor.SafeComWrappers.VBA.VBComponent.get_CodeModule() in C:\projects\rubberduck\Rubberduck.VBEditor.VBA\SafeComWrappers\VB\VBComponent.cs:line 23
at Rubberduck.VBEditor.SafeComWrappers.VBA.VBComponent.ContentHash() in C:\projects\rubberduck\Rubberduck.VBEditor.VBA\SafeComWrappers\VB\VBComponent.cs:line 257
at Rubberduck.Parsing.VBA.RubberduckParserState.IsNewOrModified(QualifiedModuleName key) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\RubberduckParserState.cs:line 1003
at Rubberduck.Parsing.VBA.ParseCoordinator.<ParseAllInternal>b__34_3(QualifiedModuleName module) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 521
at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
at System.Collections.Generic.HashSet`1.UnionWith(IEnumerable`1 other)
at System.Collections.Generic.HashSet`1..ctor(IEnumerable`1 collection, IEqualityComparer`1 comparer)
at Rubberduck.Parsing.VBA.ParseCoordinator.ParseAllInternal(Object requestor, CancellationToken token) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 521
at Rubberduck.Parsing.VBA.ParseCoordinator.ParseAll(Object requestor) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\ParseCoordinator.cs:line 471
If I crank the log up to TRACE the only additional information that seems interesting is this:
2020-01-16 10:10:14.0697;DEBUG-2.5.0.5288;Rubberduck.Parsing.VBA.Parsing.TokenStreamParserBase;Rubberduck.Parsing.VBA.Parsing.ParsingExceptions.MainParseSyntaxErrorException: extraneous input '\r\n' expecting {'=', WS, LINE_CONTINUATION}
at Rubberduck.Parsing.VBA.Parsing.ParsingExceptions.MainParseExceptionErrorListener.SyntaxError(IRecognizer recognizer, IToken offendingSymbol, Int32 line, Int32 charPositionInLine, String msg, RecognitionException e) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\Parsing\ParsingExceptions\MainParseExceptionErrorListener.cs:line 14
at Antlr4.Runtime.ProxyErrorListener`1.SyntaxError(IRecognizer recognizer, Symbol offendingSymbol, Int32 line, Int32 charPositionInLine, String msg, RecognitionException e)
at Antlr4.Runtime.Parser.NotifyErrorListeners(IToken offendingToken, String msg, RecognitionException e)
at Antlr4.Runtime.DefaultErrorStrategy.SingleTokenDeletion(Parser recognizer)
at Antlr4.Runtime.DefaultErrorStrategy.Sync(Parser recognizer)
at Rubberduck.Parsing.Grammar.VBAParser.lsetStmt() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 9973
at Rubberduck.Parsing.Grammar.VBAParser.mainBlockStmt() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 2819
at Rubberduck.Parsing.Grammar.VBAParser.blockStmt() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 2535
at Rubberduck.Parsing.Grammar.VBAParser.block() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 2377
at Rubberduck.Parsing.Grammar.VBAParser.ifStmt() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 8881
at Rubberduck.Parsing.Grammar.VBAParser.mainBlockStmt() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 2784
at Rubberduck.Parsing.Grammar.VBAParser.blockStmt() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 2535
at Rubberduck.Parsing.Grammar.VBAParser.block() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 2377
at Rubberduck.Parsing.Grammar.VBAParser.subStmt() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 12709
at Rubberduck.Parsing.Grammar.VBAParser.moduleBodyElement() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 2312
at Rubberduck.Parsing.Grammar.VBAParser.moduleBody() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 2216
at Rubberduck.Parsing.Grammar.VBAParser.module() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 448
at Rubberduck.Parsing.Grammar.VBAParser.startRule() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 336
at Rubberduck.Parsing.VBA.Parsing.TokenStreamParserBase.ParseSll(String moduleName, ITokenStream tokenStream, CodeKind codeKind) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\Parsing\TokenStreamParserBase.cs:line 86
at Rubberduck.Parsing.VBA.Parsing.TokenStreamParserBase.ParseWithFallBack(String moduleName, CommonTokenStream tokenStream, CodeKind codeKind) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\Parsing\TokenStreamParserBase.cs:line 47
Token:
at L73C32
Kind of parsed code: CodePaneCode
Component: modReport (code pane version)
ParseType: Main parse;Rubberduck.Parsing.VBA.Parsing.ParsingExceptions.MainParseSyntaxErrorException: extraneous input '\r\n' expecting {'=', WS, LINE_CONTINUATION}
at Rubberduck.Parsing.VBA.Parsing.ParsingExceptions.MainParseExceptionErrorListener.SyntaxError(IRecognizer recognizer, IToken offendingSymbol, Int32 line, Int32 charPositionInLine, String msg, RecognitionException e) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\Parsing\ParsingExceptions\MainParseExceptionErrorListener.cs:line 14
at Antlr4.Runtime.ProxyErrorListener`1.SyntaxError(IRecognizer recognizer, Symbol offendingSymbol, Int32 line, Int32 charPositionInLine, String msg, RecognitionException e)
at Antlr4.Runtime.Parser.NotifyErrorListeners(IToken offendingToken, String msg, RecognitionException e)
at Antlr4.Runtime.DefaultErrorStrategy.SingleTokenDeletion(Parser recognizer)
at Antlr4.Runtime.DefaultErrorStrategy.Sync(Parser recognizer)
at Rubberduck.Parsing.Grammar.VBAParser.lsetStmt() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 9973
at Rubberduck.Parsing.Grammar.VBAParser.mainBlockStmt() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 2819
at Rubberduck.Parsing.Grammar.VBAParser.blockStmt() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 2535
at Rubberduck.Parsing.Grammar.VBAParser.block() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 2377
at Rubberduck.Parsing.Grammar.VBAParser.ifStmt() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 8881
at Rubberduck.Parsing.Grammar.VBAParser.mainBlockStmt() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 2784
at Rubberduck.Parsing.Grammar.VBAParser.blockStmt() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 2535
at Rubberduck.Parsing.Grammar.VBAParser.block() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 2377
at Rubberduck.Parsing.Grammar.VBAParser.subStmt() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 12709
at Rubberduck.Parsing.Grammar.VBAParser.moduleBodyElement() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 2312
at Rubberduck.Parsing.Grammar.VBAParser.moduleBody() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 2216
at Rubberduck.Parsing.Grammar.VBAParser.module() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 448
at Rubberduck.Parsing.Grammar.VBAParser.startRule() in C:\projects\rubberduck\Rubberduck.Parsing\obj\Release\net46\VBAParser.cs:line 336
at Rubberduck.Parsing.VBA.Parsing.TokenStreamParserBase.ParseSll(String moduleName, ITokenStream tokenStream, CodeKind codeKind) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\Parsing\TokenStreamParserBase.cs:line 86
at Rubberduck.Parsing.VBA.Parsing.TokenStreamParserBase.ParseWithFallBack(String moduleName, CommonTokenStream tokenStream, CodeKind codeKind) in C:\projects\rubberduck\Rubberduck.Parsing\VBA\Parsing\TokenStreamParserBase.cs:line 47
Token:
at L73C32
Kind of parsed code: CodePaneCode
Component: modReport (code pane version)
ParseType: Main parse
Open a workbook with VBA, Alt+F11, RD splash, OK. Open another large workbook. Get VBA msgbox "Error accessing file. Network connection may have been lost." Nothing specific being named. There are no missing references. Add-In manager, uncheck RD, restart Excel. Repeat test above, no error.