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

Groovy plugin (4.27), Eclipse (2023-3): no support for record, and possibly other Groovy 4.x features #1463

Closed
bsdooby opened this issue Mar 23, 2023 · 9 comments

Comments

@bsdooby
Copy link

bsdooby commented Mar 23, 2023

Still no support for records, et. al in Eclipse 2023-3:
record Vec2(float x, float y) {}
Errors: Groovy:invalid use of declaration inside method call.

@eric-milles
Copy link
Member

I, in fact, worked very hard on record support:

You need to enable the newer parser for this:

The new antlr4-based Parrot Parser is disabled by default. To enable it, add -Dgroovy.antlr4=true to your eclipse.ini file after the -vmargs line or add a compiler config script to your project with configuration.pluginFactory = org.codehaus.groovy.control.ParserPluginFactory.antlr4(). Please note that parser recovery is not implemented for the Parrot Parser, so your editing experience may be sub-par in this mode.

@bsdooby
Copy link
Author

bsdooby commented Mar 24, 2023

That sounds great, indeed. I will check this, and report back.

@bsdooby
Copy link
Author

bsdooby commented Apr 2, 2023

Hi, I tested it, and it works. Great job; However, I do not understand what it means that for the Parrot Parser, the recovery is not implemented...

@eric-milles
Copy link
Member

eric-milles commented Apr 3, 2023 via email

@bsdooby
Copy link
Author

bsdooby commented May 22, 2023 via email

@eric-milles
Copy link
Member

eric-milles commented May 23, 2023 via email

@bsdooby
Copy link
Author

bsdooby commented May 23, 2023 via email

@eric-milles
Copy link
Member

eric-milles commented May 23, 2023 via email

@bsdooby
Copy link
Author

bsdooby commented May 23, 2023 via email

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

No branches or pull requests

2 participants