-
Notifications
You must be signed in to change notification settings - Fork 295
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
Parser bug #1022
Comments
Yea, looks like its the same as #861. I have Open statements right before this. Should I attach sample code here? |
The colon is tripping the parser here:
This would fix it:
Annoying, I know. The good news is that it's fixed in the current parser, so next release will see a fix for this bug. Closing as a duplicate of #861. |
In my case, for 1.4.3.27555 version
Doesn't help. I have no colons now before line in error. So, may be this is yet another issue. |
@sshikov 1.4.3 is not receiving updates or parser fixes. If you want to benefit from the latest fixes and features (and bugs), then you'll need to build from the GitHub source. |
@sshikov we've knocked down the last known grammar issue just yesterday, if you can post more sample code, would be great we could confirm it fixed for 2.0 :-) |
I mean, I have no repro on 1.4.3 with this code:
Parses fine; the problem has to be elsewhere. |
Here is vba code with issue. |
@sshikov It looks like your code has non-ascii characters in your comments. I don't think 1.4 can handle that. |
@ThunderFrame the comments don't get to the parser, and IIRC the lexer rule for comments doesn't care whether they're ASCII characters or not. Anyway, I can't get the module to parse with v1.4.3, even after getting the code to compile, adding an early-bound reference to the Scripting library, changing all one-line declaration+assignment into two-liners, and removing all comments. It's complaining about extraneous input 'With', and if I remove it, it complains about the I'm saving that workbook into my dropbox and will let the 2.0 parser have a shot at it tonight. 2.0 can't release if it can't parse this code - yet I'm confident we've already fixed whatever the problem is. I'll update tonight. |
Okay... so I pasted the module into my VBE, as-is. The non-ASCII comments turned into gibberish like this:
But the parser didn't blow up, and everything works. In other words: I'm confirming that next release will handle your code without any issues! 😃 |
I can confirm that everything works fine when build from next branch. |
When trying to open Code Explorer, I'm getting error message instead:
VBAProject.VBE(51,9): extraneous input 'For' expecting NEWLINE.
Here is line 51 (last one):
The text was updated successfully, but these errors were encountered: