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

!in Operator marked as error #1508

Closed
injecteer opened this issue Aug 28, 2023 · 1 comment
Closed

!in Operator marked as error #1508

injecteer opened this issue Aug 28, 2023 · 1 comment
Assignees

Comments

@injecteer
Copy link

Using freshly installed Eclipse:

Version: 2023-06 (4.28.0)
Build id: 20230608-1333

and

Eclipse Groovy Development Tools 5.0.0.v202306301519-e2306

with Groovy Compiler Version set to 3.0.18

the code

if( methodNode.code !in BlockStatement ) return false

produces an Error marker:

Ns5BP

Needless to say, that the code compiles and runs just fine.

See also the SO question: https://stackoverflow.com/questions/76992821/groovy-eclipse-in-operator-marked-as-error

@eric-milles eric-milles self-assigned this Aug 28, 2023
@eric-milles
Copy link
Member

See #1011 and the release notes:

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.

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

No branches or pull requests

2 participants