title: Netbeans 7.2 autocomplete for namespace class
body: <p><strong>Edit:</strong> Bug reported, accepted and patched <a href="http://netbeans.org/bugzilla/show_bug.cgi?id=225062" rel="nofollow noreferrer">http://netbeans.org/bugzilla/show_bug.cgi?id=225062</a></p>
  
  <p>Since a day or two my Netbeans IDE stopped hinting class arguments and autocompletion does not work for namespaced classes, and I'm simply wondering what I might have done to break the autocompletion/hinting - or if this is a known bug. This reproduces on Ubuntu 12.10 and Windows 7 using Netbeans 7.2 and also with Netbeans 7.3 beta 2.</p>
  
  <p>This would be strange if it is a known bug because I'm almost certain it was working a couple of days ago.</p>
  
  <p>Scenario;<br>
  Class <em>HostNameRoute</em> exists within the <em>Router\Route</em> namespace, the constructor takes two arguments <em>$route</em> and <em>$action</em>.</p>
  
  <pre><code>namespace Router\Route;
  class HostNameRoute {}
  </code></pre>
  
  <p>From the root namespace I used to be able to get hints and autocomplete by typing:</p>
  
  <pre><code>new HostNam[Ctrl+Space]  ::  Suggests HostNameRoute($route, $action)  :: [Enter]
  
  Would produce
  new \Router\Route\HostNameRoute(&lt;$route&gt;, &lt;$action&gt;);
  </code></pre>
  
  <p>But now the IDE just hints the qualified name but does not show argument documentation nor does it autocomplete. It does however spawn a static strange box over the class name (not interactive).</p>
  
  <p>However, the hinting and autocompletion still works for classes in the root namespace:</p>
  
  <pre><code>new Te[Ctrl+Space]  :: Suggests Test($arg) :: [Enter]
  
  Produces
  new Test(&lt;$arg&gt;);
  </code></pre>
  
  <hr>
  
  <p><strong>Works for root namespace</strong><br>
  <img src="https://i.stack.imgur.com/ySAJr.png" alt="Autocomplete works"></p>
  
  <hr>
  
  <p><strong>Does not work for namespaced class</strong>
  <img src="https://i.stack.imgur.com/RDNX7.png" alt="No autocomplete"></p>