-
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
Red exclamation mark on build.gradle files #266
Comments
The ! overlay is an indication that the file type is recognized as Groovy, but the Groovy nature is not present on your project. There are at least 2 ways to go from here:
|
This does not work for me:
With a previous version of eclipse-groovy the red exclamation marks did not appear for gradle files. I would like to have that as default behaviour again. |
Am I understanding correctly that you have Groovy-Eclipse installed, but not Buildship (Gradle)?
I have been undergoing an effort to refresh the icons for Groovy-Eclipse. To that end, I have been reducing the surface area by using base JDT icons in some situations. The build.gradle file is one of those situatioins. When a project is not configured with the Groovy nature and contains a file under the Groovy content type, an indicator is added to tell the user that the build path does not apply to files. In earlier versions of Groovy-Eclipse, there was an icon for this that has been replaced with the exclamation mark decoration.
To sum up, the build path indication on build.gradle, et al. is not new. It is just more clear using the current iconography.
|
If you add Groovy script filters (that is, non-compiled file patterns), the exclamation may not be displayed -- not sure if this meshes with your exclusion of the Groovy Nature. This can be done by selecting Properties from the project's context menu, selecting Groovy Compiler from list, checking 'Enable project specific settings' and 'Enable script folder support'. Then click Add and enter '**/*.gradle'.
|
You can also add the Groovy Nature without the Java Builder. You mention that Gradle handles the builds. |
Thanks a lot for your comments. This works for me, but nevertheless I think that the default behaviour of having these big red exclamation marks in projects that are not groovy projects on gradle files is not very good. If I added the groovy nature then it would make sense to me (basically the opposite of the proposal in your last comment ?). |
I have a plan to set *.gradle as a script exclusion by default. I'm trying to pick away at the problems a little at a time. There is a lot of stuff that was setup before my time.
|
Excellent. Thank you very much for your work! I am really happy that you provide groovy tooling for eclipse. When I criticize some points (like above), I just want to improve your product. |
Since I have installed eclipse-groovy (neon snapshot), I have red exclamation marks on all gradle related files (build.gradle, settings.gradle). Things still work, but I'd like to have my project "problem free". Is there any way to get rid of the exclamation marks?
(I did search the web. But I found nothing.)
The text was updated successfully, but these errors were encountered: