rubberduck-vba / Rubberduck

Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).
https://rubberduckvba.com
GNU General Public License v3.0
1.92k stars 302 forks source link

can´t get Rubberduck 2.0.1a-pre working in Access #1552

Closed woxovvoxow closed 7 years ago

woxovvoxow commented 8 years ago

Hi,

I'm very interested in your Project providing an up-to-date VBE! Everything I've seen so far looks very promising.

My environment is the following:

(obviously both 32bit and 64bit .NET Framework)

Rubberduck was installed with lokal Admin-Rights

when I open Access-VBE the following Error occurs:

image

The Details show following information:

See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. \ Exception Text ** System.Runtime.InteropServices.COMException (0x8002801D): Bibliothek nicht registriert. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) at Microsoft.Vbe.Interop.Reference.get_FullPath() at Rubberduck.Parsing.VBA.RubberduckParser.<>cDisplayClass9.b8(VBProject project) in c:\Users\Mathieu\Documents\GitHub\Rubberduck\Rubberduck.Parsing\VBA\RubberduckParser.cs:line 211 at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func2 predicate) at Rubberduck.Parsing.VBA.RubberduckParser.GetReferenceProjectId(Reference reference, IReadOnlyList1 projects) in c:\Users\Mathieu\Documents\GitHub\Rubberduck\Rubberduck.Parsing\VBA\RubberduckParser.cs:line 207 at Rubberduck.Parsing.VBA.RubberduckParser.SyncComReferences(IReadOnlyList1 projects) in c:\Users\Mathieu\Documents\GitHub\Rubberduck\Rubberduck.Parsing\VBA\RubberduckParser.cs:line 235 at Rubberduck.Parsing.VBA.RubberduckParser.AddBuiltInDeclarations(IReadOnlyList`1 projects) in c:\Users\Mathieu\Documents\GitHub\Rubberduck\Rubberduck.Parsing\VBA\RubberduckParser.cs:line 171 at Rubberduck.Parsing.VBA.RubberduckParser.ParseAll() in c:\Users\Mathieu\Documents\GitHub\Rubberduck\Rubberduck.Parsing\VBA\RubberduckParser.cs:line 140 at Rubberduck.Parsing.VBA.RubberduckParser.ReparseRequested(Object sender, ParseRequestEventArgs e) in c:\Users\Mathieu\Documents\GitHub\Rubberduck\Rubberduck.Parsing\VBA\RubberduckParser.cs:line 77 at Rubberduck.Parsing.VBA.RubberduckParserState.OnParseRequested(Object requestor, VBComponent component) in c:\Users\Mathieu\Documents\GitHub\Rubberduck\Rubberduck.Parsing\VBA\RubberduckParserState.cs:line 534 at Rubberduck.App.b1() in c:\Users\Mathieu\Documents\GitHub\Rubberduck\RetailCoder.VBE\App.cs:line 139 at Rubberduck.UI.Command.MenuItems.UiDispatcher.<>cDisplayClass1.b__0(Object x) in c:\Users\Mathieu\Documents\GitHub\Rubberduck\RetailCoder.VBE\UI\Command\MenuItems\UiDispatcher.cs:line 28

I already tried your hin "Troubleshooting: Rubberduck Add-In could not be loaded" and succeeded in registering Rubberduck.dll - but nothing changed.

after clicking un "Continue" i can start for example the Test-Explorer, but nothing is working properly.

Closing Access it crashes.

any Ideas?

Hosch250 commented 8 years ago

Please check out the beta. We fixed a bunch of bugs since the alpha release, and this may well be one of them.

woxovvoxow commented 8 years ago

Hi,

I tried the version 2.0.b, 2.0.1b and 2.0.2b now. The behaviour changed a bit in that way, that there's no Error-message any more, but It is still not working. Starting for the first time the addin is loading, but for exaple the test-explorer does'nt recognize its tests:

image

The menu Code-Inspection is not working as well - it is showing no results at all. At least every 2.nd time Access is not closed properly - I have to kill the MSACCESS-process in Task-Manager.

for me it looks like I still have an issue with no proper installation / registration or so.

any help appriciated - I was dreaming to have a VBE like this (at least what I can see from your Site) and now it is not installabe properly on my machine... :-(

woxovvoxow commented 8 years ago

...closed accidentially..

Hosch250 commented 8 years ago

Looks like it is not parsing. The Code Inspections, Test Explorer, Code Explorer, and Todo Explorer all require there be a successful parse and resolve to work. If you have a very large project, it could take a while--what does the status bar say? The host app not closing properly is a known issue being addressed.

pywzdbg

woxovvoxow commented 8 years ago

You are right, it is obviously not parsing. The project is just a Test for the Addin - only 2 Modules - so there should be no performance issue.

image

The status bar displays "Referenzen werden geladen" (resolving).

so it seems to be the same issue as #1843.

Vogel612 commented 8 years ago

Actually that's not quite correct. The status bar says "loading references..." which is different from resolving. #1843 is not related

woxovvoxow commented 8 years ago

Meanwhile I installed 2.0.3b.

I found out that code-Inspection seems to be ok (loading references - parsing - ready) as long as I dont add a reference on Rubbeduck.tlb (for Unit-Testing). Once I add the reference, close Access and reopen it, Rubberduck gets stuck in "loadin references". Sometimes a click on the refresch button next to the status starts a proper parsing (stops with ready) sometimes not...

Hosch250 commented 8 years ago

OK, thanks for the updates.

woxovvoxow commented 8 years ago

unfortunately no change with 2.0_RC1 here... :-(

Trying to add a test-Procedure Rubberduck crashes with the hint to send the logfile. Where can I find the log? The only file i found "Rubberduck.App.log" has a change-Date in Mai...

retailcoder commented 8 years ago

Is it just Access, or Excel doesn't work either? You can get to the logs via the settings dialog; from there you can also set minimum log level to 'Trace' to log everything. Hopefully something gets logged.. what version of Access are you using?

retailcoder commented 8 years ago

Nevermind, saw Access 2010 in the original post

woxovvoxow commented 8 years ago

OK, thanks - I switched Logging to "Debugging". Attached you can find what happens, when I try to add a Test-Method:

(renamed rubberduck.log to rubberduck.txt for Upload)

rubberduck.txt

Hosch250 commented 8 years ago

Looks like a failing First call. I wonder what's up there.

Hosch250 commented 8 years ago

I just changed this to do nothing in this case. I'm not even sure why this even happens (the commands should be disabled...)