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 - Import problem with phpdoc @var
Summary: Import problem with phpdoc @var
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: BlueJ (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-14 11:20 UTC by bombelq
Modified: 2012-09-14 11:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (39.35 KB, text/plain)
2012-09-14 11:20 UTC, bombelq
Details

Note You need to log in before you can comment on or make changes to this bug.
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