-
Notifications
You must be signed in to change notification settings - Fork 302
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
Possible Parser bug; leading commas in Access DoCmd #5440
Comments
I was able to parse this line just fine. Can you please try in a new Access file, with only that code and try to parse that? I don't think that is the whole story. |
@bclothier I made a new test DB. I made a single form with a single button. Inside that form it does only this:
The parser throws 4 exceptions. Two of them correctly cite this line
While two of the exceptions cite Line 13, which does not exist. There are only 6 lines in this module. It says something about "Exported Version" which might mean something more to you than it does to me.
This exception doesn't crash RD and the VBE like what is happening in my larger file. So, alas, this may not be the cause of the crash. It's still an unexpected exception, no? |
NOTE: When RD\VBE does hang the parse appears to complete successfully. The icon returns to "Ready" state and does not display an error yet the VBE is unresponsive and must be forcibly closed. Meanwhile the Microsoft Access process is contantly blasting 42% CPU like it's running a marathon. |
Ok, I have a failing unit test now and I will have to find out what exactly is going wrong here. Moreover, something seems to be wrong with the error reporting in forms. |
Rubberduck version information
Rubberduck version 2.5.0.5384 loading:
Operating System: Microsoft Windows NT 10.0.18363.0 x64
Host Product: Microsoft Office x64
Host Version: 16.0.11929.20648
Host Executable: MSACCESS.EXE;
Description
RD Parser can't handle leading comma in an Acces
DoCmd
.To Reproduce
Steps to reproduce the behavior:
DoCmd.GoToRecord , , acGoTo, thisRecord
Expected behavior
The code is valid, it both compiles and runs. I would not expect this to throw exceptions in the RD parser.
Screenshots
If applicable, add screenshots to help explain your problem.
Logfile
https://github.com/rubberduck-vba/Rubberduck/files/4356946/RubberduckLogREDACTED.txt
Additional context
THIS EXCEPTION:
CAUSED BY THIS LINE:
DoCmd.GoToRecord , , acGoTo, thisRecord
The text was updated successfully, but these errors were encountered: