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 271448 - Netbeans fails to see variable type
Summary: Netbeans fails to see variable type
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P1 normal (vote)
Assignee: issues@php
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-08 10:20 UTC by antoniocs
Modified: 2017-09-08 10:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
var hint issue (31.13 KB, image/jpeg)
2017-09-08 10:20 UTC, antoniocs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description antoniocs 2017-09-08 10:20:14 UTC
Created attachment 165106 [details]
var hint issue

I have the following code:


/* @var $studentClass StudentsClass  */            
$studentClass = $event->getData();


The StudentsClass is defined as:

use AppBundle\Entity\StudentsClass;


But there is never any auto completion on the variable.
I have attached a screenshot of this happening (yes the code is in a lambda, still think netbeans should pick up the class definition)
Comment 1 antoniocs 2017-09-08 10:22:12 UTC
To note that I just tried with the full path:

/* @var $studentClass AppBundle\Entity\StudentsClass*/            
$studentClass = $event->getData();

And

/* @var $studentClass \AppBundle\Entity\StudentsClass*/            
$studentClass = $event->getData();

Still nothing!
Comment 2 antoniocs 2017-09-08 10:23:37 UTC
On another note, if I ctrl+click on the StudentsClass netbeans opens the entity file.

So it seems netbeans can get to the file it just can't auto complete the methods...