title: Intellij IDEA-Grails GDSL Not Working
body: <p>I tried to use GDSL Scripts for my grails project in IDEA.</p>
  
  <p>I tried things as shown in the Guide: <a href="http://confluence.jetbrains.net/display/GRVY/Scripting+IDE+for+DSL+awareness" rel="nofollow">GDSL Guide</a>. The Steps I followed were: </p>
  
  <ol>
  <li>Created a myDef.gdsl file in my project home(i.e. in the folder<br>
  that containg grails-app, web-app etc) </li>
  <li><p>In that file i added this code:</p>
  
  <pre><code>def ctx2 = context(ctype: "com.myPackage.MyClass")
  
  contributor(ctx2) {
      method(name: 'withLock', type: 'void', params: [closure: { }])
  }
  </code></pre></li>
  <li><p>Clicked on Activate.</p></li>
  </ol>
  
  <p>But it still does not show any autocomplete or recognise when I do:</p>
  
  <pre><code>Myclass m = new MyClass()
  m.withLock() //This is not recognised
  </code></pre>
  
  <p>What am I doing wrong??? :(</p>
  
  <p>Details:</p>
  
  <ul>
  <li><strong>Idea Series:</strong> Ultimate </li>
  <li><strong>Idea Version:</strong> 107.535</li>
  </ul>