Skip to content
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

TypeError: Cannot read properties of undefined (reading 'and') #219

Open
vedanta28 opened this issue Oct 2, 2023 · 8 comments
Open

TypeError: Cannot read properties of undefined (reading 'and') #219

vedanta28 opened this issue Oct 2, 2023 · 8 comments
Labels
possible bug Could be a bug

Comments

@vedanta28
Copy link

I tried using generate valid input for Rule. But, I keep getting this error. The rest of the functionality works in the extension. But, I am not able to get this to work. Any help would be appreciated.

image
@mike-lischke mike-lischke added the possible bug Could be a bug label Oct 3, 2023
@mike-lischke
Copy link
Owner

Can you please attach a grammar which reproduces this behavior?

@vedanta28
Copy link
Author

CPP14Lexer.txt
CPP14Parser.txt
These ones. They had .g4 extension, I changed it to .txt for uploading it.

@mike-lischke
Copy link
Owner

Ah, these are the ones from the grammar repo? Thanks!

@vedanta28
Copy link
Author

Yes

@mike-lischke
Copy link
Owner

mike-lischke commented Nov 26, 2023

Seems to be fixed already. I get normal output. What version of the extension are you using?

@vedanta28
Copy link
Author

I am using 2.4.2 version. I tried it just now, and I am getting a different error this time around. I am not sure if just selecting the rule and asking it to generate a valid example is the right way to go about it.

image

@mike-lischke
Copy link
Owner

OK, that might be related to a different problem (which has been reported here already). I plan to release a new version soon. Can you please test with that and see if your problem still exists?

@vedanta28
Copy link
Author

Sure thing. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
possible bug Could be a bug
Projects
None yet
Development

No branches or pull requests

2 participants