-
Notifications
You must be signed in to change notification settings - Fork 193
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
With eclispe groovy plugin 3.x we can't compile our project anymore #737
Comments
Do you have a snippet of the Groovy code that has the error? Accessing a public static final field should be no problem. I can't tell from the submission if you are static importing the field, importing the type or referring to the type by name from the same package. |
Is it possible you have an extra ".app" in "de.effectivecompany.app.app.OpCaldocitemtypeType"? |
The package names are all fine. It seems something different. It was not possible to isolate the problem, so I zip you the complete project. You can download the project here: https://drive.google.com/file/d/1zWgTUoJjrSyHlgC2DV98yh10HdPyZU06/view?usp=sharing |
Thanks for the project archive. You may want to remove it from online now. Not sure if you meant to make it public. |
Here is what I know so far:
A couple additional notes:
|
You are right, I corrected it. But still some wired things are goning on. The updated project: |
Can you give some details on what you mean by "wierd"? |
Well, for example the SvBoDocNewImpl.groovy, There the plugin says OptionTools import is missing. The quick fix want's to add the import "import de.effectivecompany.util.OptionTools" but it is already there, nothing happens. Adding a ";" behind the "import de.effectivecompany.util.OptionTools", or change something different and save the file, a lot of errors disappears, only one missing method. |
- a type name that is not resolvable in one module may be in another
Ready for test |
We try to switch our project to the Eclipse-Groovy 3.x plugin. But the project now has errors ;-(. There seems some strange problems perhaps in the area CompileStatic in combination with Java, no clue. The code is correct, it runs and compile fine with the old Eclipse-Groovy plugin.
The groovy code is CompileStatic and uses a java class of the type:
Referencing such a class in groovy with:
OpCaldocitemtypeType.BOM_ITEM
creates an error: Groovy:[Static type checking] - The variable [OpCaldocitemtypeType] is undeclared.
But thats wrong, the include is available, the quick fix to import the class is not functioning.
I only see in the error log:
Regards, Marcel
The text was updated successfully, but these errors were encountered: