This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 218355

Summary: Import problem with phpdoc @var
Product: ide Reporter: bombelq
Component: BlueJAssignee: issues@ide <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description bombelq 2012-09-14 11:20:45 UTC
Product Version = NetBeans IDE 7.2 (Build 201207171143)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_33
Runtime = Java HotSpot(TM) Client VM 20.8-b03

When having for example:
$bar = $this -> uglyGet('bar'); /* @var $bar /Foo/Bar */ 
then i click ctrl+shift+i and "use" block is added:

use Foo/Bar;
[........]
$bar = $this -> uglyGet('bar'); /* @var $bar Bar */

seems OK. but "use Foo/Bar" is shown as unused import in efect when i click ctrl+shift+i again it is removed
and when i click ctr+shift+i again it is added back

my temporary fix is adding: /** @global Bar $ */ but its only temporary i hope :)

Sory if raport is wrong this is my first isue raport if im not wrong.
Comment 1 bombelq 2012-09-14 11:20:52 UTC
Created attachment 124355 [details]
IDE log