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.91k stars 299 forks source link

Access crashes while writing in Code window #4154

Closed Gener4tor closed 6 years ago

Gener4tor commented 6 years ago

This is the log: RubberduckLog Crash.txt

I restarted access several times but I crashed every time I tried to write the "(".

After unloading Rubberduck access was not crashing anymore and I was able to write the line.

I loaded Rubberduck again, but the crash is not reproducible anymore...

Here is my version:

Version 2.2.0.3468 OS: Microsoft Windows NT 10.0.16299.0, x64 Host Product: Microsoft Office 2016 x86 Host Version: 16.0.4666.1000 Host Executable: MSACCESS.EXE

retailcoder commented 6 years ago

Linking #4141

There's a bug in the autocompletion (exact repro steps still not confirmed though) that makes inline completion crash the process (unhandled off-by-one error, most likely).

You can disable (, {, [ and " autocompletion to remove the possibility for this bug to happen.

retailcoder commented 6 years ago

Another work-around is to avoid Call altogether.

In fact, I've got the off-by-one under control, but a quirk of the VBE is literally preventing the insertion of the empty parentheses - they get "helpfully" removed as soon as they're inserted, making the ( keypress feel like it's simply not working.