Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Groovy-Grails Tool Suite (GGTS) content assist not recognizing basic groovy

I have installed GGTS, on ubuntu and am trying to edit .Groovy files with the built in editor.

The autocomplete is extremely annoying because while it will recognize my domain objects i.e. my User class etc.. It doesn't recognize basic groovy, for instance I start typing "def" to define a variable then hit space and it will autocomplete to "Default", similarly if I try to type in "return" it autocompletes to "RETURN" while I am typing as soon as I hit space, which is very annoying.

Like i said it will recognize classes, so if I type def u = new User(), the User part will complete ok, but the problem is that the variable u I defined earlier isn't recgonized later in the code.

I hope you guys get my meaning... No idea how to fix it, short of not using the groovy editor and treating it as plain text. I even tried disabling content assist, but that didn't seem to work for some reason

like image 657
Emmesk Dosk Avatar asked Aug 28 '13 15:08

Emmesk Dosk


1 Answers

I was having this problem in GGTS 3.4.0.RELEASE today, and getting very angry with the situation.

Somehow my workspace had the "Auto activation triggers for Java" set to "_.abcd....z" (all the lowercase letters)

Window -> Preferences Java -> Editor -> Content Assist "Auto activation triggers for Java" set to just "."

This seems to have helped dramatically.

I'm still not sure what caused my workspace to have this setting.

like image 156
Jeremy D. Young Avatar answered Nov 16 '22 14:11

Jeremy D. Young