Intellij IDEA-Grails GDSL Not Working

I tried to use GDSL Scripts for my grails project in IDEA.
I tried things as shown in the Guide: GDSL Guide
The Steps I followed were:

  1. Created a myDef.gdsl file in my project home(i.e. in the folder
    that containg grails-app, web-app etc)
  2. In that file i added this code:

    def ctx2 = context(ctype: "com.myPackage.MyClass")
    
    contributor(ctx2) {
        method(name: 'withLock', type: 'void', params: [closure: { }])
    }
    
  3. Clicked on Activate.

But it still does not show any autocomplete or recognise when i do:

Myclass m = new MyClass()
m.withLock() //This is not recognised

Anything i am doing wrong??? :(
Details:

  • Idea Version: 107.535

.

Please sign in to leave a comment.