Rubberduck: Parser & Resolver errors with VBA project using vbWatchDog

Created on 9 Feb 2017  路  7Comments  路  Source: rubberduck-vba/Rubberduck

If a VBA project contains modules from vbWatchDog ( http://www.everythingaccess.com/vbwatchdog.asp ), parser will fail to parse ErrEx_Helper which contains empty stubs for internal uses.

Even if I hand-edit the module to use line breaks instead of colon for breaking statements, the parse phase will succeed but it will fail with resolver error (and won't go into details why it failed.

bug parse-tree-preprocessing

Most helpful comment

It seems not a day goes by where this project doesn't make me go "Wait! That compiles!" :+1:

All 7 comments

Would #2301 seem familiar?

Can you post the code from the module?

Looking at the last comment on the linked issue, it seems possible that the parse might actually be failing in the module/procedure attributes pass. Are the line numbers off in the reported parse errors?

Thanks for posting this issue. I've had a few customers mention this to me. The issue appears to be due to the Attribute VB_Description appearing after the End Sub, which your parser doesn't seem to like:

Public Sub Foo(): End Sub
Attribute Foo.VB_Description = "Foo description"

Public Sub Bar()
End Sub

@WaynePhillipsEA Ooooh!! Indeed that would do it! The grammar we're using is assuming the procedure attributes are enclosed in the procedure's scope.. should be an easy fix, thanks a bunch!

It seems not a day goes by where this project doesn't make me go "Wait! That compiles!" :+1:

instruction separators strike again

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ThunderFrame picture ThunderFrame  路  3Comments

retailcoder picture retailcoder  路  3Comments

retailcoder picture retailcoder  路  4Comments

connerk picture connerk  路  3Comments

Gener4tor picture Gener4tor  路  3Comments