-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ruberduck: compile only option #6167
Comments
IIUC what rubberduck does is literally call into the VBE to do that Debug > Compile before attempting to parse (assuming the setting is enabled). Why that would behave differently for RD instead of the VBE is beyond me. From a quick look at the code, we seem to be using a wrapper around the VBE typelib that returns a Rubberduck/Rubberduck.VBEEditor/ComManagement/TypeLibs/Public/TypeLibsAPI.cs Lines 16 to 34 in 22b5a72
This at least exposes the option of compiling via the same mechanism that Rubberduck uses, altough I'm not sure that helps you :/ |
I think this is a bit too niche; the going-in assumption is that Rubberduck is invoking exactly the same Debug/Compile command the VBIDE does - perhaps the assumption is wrong, but then we're in the dark as to what the difference might be... I think adding a "compile project" command would be confusing, since Rubberduck doesn't compile anything, and as far as we understand it, it would be a duplication of the existing IDE command. |
Rubberduck version information
Version 2.5.9.6296
OS: Microsoft Windows NT 10.0.22635.0, x64
Host Product: Microsoft Office x64
Host Version: 16.0.16827.20166
Host Executable: EXCEL.EXE
Description
There are occasions when Debug.Compile crashes the host application (I'm looking at you Excel). The same code may or may not allow a Rubberduck parse but the host application never seems crash when the Rubberduck compile before parse option is used.
It would be a useful enhancement to have a Rubberduck compile option which could report back on the offending lines in the same manner as Debug.Compile but which avoid the Host Application crashes. to which Debug.Compile is subject.
The Debug.Compile crash happens to me a lot with my current project. Once this happens the workaround is, to switch to RubberDuck code analysis. In a few cases Rubberduck can't parse and it has been necessary to export to twinBasic to see what errors are reported there (this last step this far has worked 100%, but is not a very elegant solution as you are correcting errors in VBA and twinbasic at the same time)
The text was updated successfully, but these errors were encountered: