Closed daFreeMan closed 9 years ago
This is a bug with the resolver, here's a quick repro:
Class1
Public Sub DoSomething()
Dim c As New Class2
Debug.Print c.Foo
Debug.Print c!Foo 'not picked up as a reference (well that's a new one!)
Dim x As New Application
Debug.Print x.ActiveCell.Address
Debug.Print x!ActiveCell.Address '"freezes" code explorer and crashes code inspections
End Sub
Class2
Public Property Get Foo() As String
End Property
Fix is in progress.
Turns out this:
Debug.Print c!Foo 'not picked up as a reference (well that's a new one!)
Is yet another bug in the grammar. the procedure call Debug.Print
has an ArgContext
, but that context only includes c!
, where the !
is picked up as a type hint (which fires up a false positive with the type hint inspection).
I'm opening another issue.
When I open an existing Excel workbook, then open the Code Inspections window in RD, I get the following NRE:
Once I close the NRE error window, I can click the CI
refresh
button, and it will parse with no error.This happens when the Code Inspections window is the first RD window opened in the IDE. If I open Code Explorer first, then open CI, I don't get the error until I click the
refresh
button, then I'll get the NRE. I can then clickrefresh
again, and it will properly parse.