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
Parse Errors during late binding and early binding #3034
Comments
The installer requires admin rights to correctly register COM APIs during installation. A non-admin end user can still use it though, but then because VBE add-in keys are created under HKCU additional steps must be taken to register Rubberduck as a VBE add-in for that user. Can you confirm that the installer ran with admin rights? |
The installer ran with admin rights.
|
Might have something to do with using the COM API / running a parse from VBA code in a unit test setting... does it work with a test that doesn't create a |
Infact in the attached image you may see that Rubberduck.ParserState object is created successfully (in Late Binding mode), but rd.UserDeclarations cannot be iterated using a For each loop, error "Variable uses an Automation type not supported in Visual basic” is produced. Please let me know: I want to use ParserState Object api in my production code inside corporate environment. Is it stable enough or still in experimental state. At present if I am able to iterate rd.UserDeclarations in some way would suffice my need. |
@ishita799 FWIW the reflection-api has not even been mentioned in the release notes to date. As cleared in #2885 the COM API is currently highly experimental
|
But #2043 shows that the same code is working with for each loop, then why is it not working in my case. Any clue? |
@ishita799 the ultimate goal is to offer a rich COM API that essentially allows writing reflection code in VBA... API work isn't a very complicated feature to work on, but priority is given to inspections/refactorings, source control, and the unit testing API. Contributions welcome! |
Installed Rubberduck 2.0.13 with Excel 2013 on machine with Non admin rights.
Following code gives error both with early binding and late binding
Early Binding: Adding RubberDuck.tlb in references results in Rubberduck parse Error(with empty results).
TestExplorer allows to run the test only once producing error “Library not registered”, then everything gets disabled and tests cannot be run
Log_Earlybinding.txt
Late Binding : On running the following test , error is produced “Variable uses an Automation type not supported in Visual basic” on line “ For Each decl In rd.UserDeclarations()”
Log_lateBinding.txt
The text was updated successfully, but these errors were encountered: