Eclipse Groovy and AutoComplete

I am using the current version of SpringSource Tool Suite with the Groovy / Grails plugin installed. I can understand that when defining and using "clean" groovy classes / objects, there are cases that make code auto-complete difficult.

But if I use Java classes in the groovy class, should the autocomplete function not work? For example, I'm trying to use "readFileToString" from the org.apache.commons.io.FileUtils class. Eclipse offers only groovy methods for this class; there is no static method in the list from the FileUtils class.

Is this a problem with my STS installation, or maybe autofill for pure Java classes is simply not supported in the groovy editor in STS?

+2
source share
1 answer

You can also make sure that you are in the latest and best version of the Groovy -Eclipse plugin. Over the past 6 months it has grown by leaps and bounds, and for each issue it has only improved. I had a similar problem with finding methods from the parent class, and it was solved after the update. I am picking up Groovy Eclipse via download in the SpringSource Tool Suite.

+2
source

Source: https://habr.com/ru/post/1538510/


All Articles