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

Red exclamation mark on build.gradle files #266

Closed
mnlipp opened this issue Feb 16, 2017 · 10 comments
Closed

Red exclamation mark on build.gradle files #266

mnlipp opened this issue Feb 16, 2017 · 10 comments
Assignees

Comments

@mnlipp
Copy link

mnlipp commented Feb 16, 2017

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.)

@eric-milles
Copy link
Member

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:

  1. Remove .gradle from the Groovy source content type for your project or workspace
  2. Add the Groovy nature to your project

@tobias-jenkner
Copy link

tobias-jenkner commented Apr 19, 2017

This does not work for me:

  1. this does not work for me since the content types are locked in my eclipse (I cannot change the gradle/groovy association).
  2. I do not want to add the groovy nature only because I have a gradle build. (But I like the syntax highlighting for groovy files :-))

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.

@eric-milles
Copy link
Member

eric-milles commented Apr 19, 2017 via email

@tobias-jenkner
Copy link

Exactly I have Groovy-Eclipse installed and not Buildship (I do not find Buildship very convincing at the moment).

My projects just look like in the following screenshots since I have a lot of gradle files:
2017-04-19 17_21_51-smart_subversive2 - java - eclipse

If there are so many red exclamation marks this is a bit disturbing to me, since the red exclamation marks appear usually in a situation where there is really a build problem in my java projects.

@eric-milles
Copy link
Member

eric-milles commented Apr 19, 2017 via email

@eric-milles
Copy link
Member

Here is what it looks like in my project:
script-filters

@eric-milles
Copy link
Member

You can also add the Groovy Nature without the Java Builder. You mention that Gradle handles the builds.

@tobias-jenkner
Copy link

tobias-jenkner commented May 11, 2017

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 ?).

@eric-milles
Copy link
Member

eric-milles commented May 11, 2017 via email

@tobias-jenkner
Copy link

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.
Again: Thank you very much!

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

3 participants