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.
Summary: | Using PHP 5.3 namespaces: Aliasing/Importing | ||
---|---|---|---|
Product: | php | Reporter: | jozefh <jozefh> |
Component: | Editor | Assignee: | Ondrej Brejla <obrejla> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | beeboo, tmysik |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: |
no suggestion for alias
No suggestion for alias 2 |
Description
jozefh
2009-12-18 08:23:11 UTC
Created attachment 92762 [details]
No suggestion for alias 2
right, not implemented yet Will be done for NB 6.9+. Any news? Very important feature. Started: 1. phase implemented: http://hg.netbeans.org/web-main/rev/5a36d29b2309 #178861 - Using PHP 5.3 namespaces: Aliasing/Importing - started CC for aliased types - still missing: CC for functions and constants and type inference for aliases Code like: use My\Full\Classname as Another, My\Full\NSname; use My\Full\Function as Fnc, My\Full\NSname; Anothe| //works $obj = new Anothe|;//works $obj->| //doesn't work yet Fnc| //doesn't work yet known bugs: no CC for "new Another" in case Another doesn't have declared constructor CC for Classnam| should generate FQN The 1 part can be tested on build newer than #2129: http://bertram.netbeans.org/hudson/job/PHP-build/ Will be continued. Integrated into 'main-golden', will be available in build *201007310001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/5a36d29b2309 User: Radek Matous <rmatous@netbeans.org> Log: #178861 - Using PHP 5.3 namespaces: Aliasing/Importing - started CC for aliased types - still missing: CC for functions and constants and type inference for aliases Integrated into 'main-golden', will be available in build *201008050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/2ad2ba61b8e3 User: Radek Matous <rmatous@netbeans.org> Log: #178861 - Using PHP 5.3 namespaces: Aliasing/Importing - phase II Integrated into 'main-golden', will be available in build *201008100001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/33e54a70579f User: Radek Matous <rmatous@netbeans.org> Log: #178861 - Using PHP 5.3 namespaces: Aliasing/Importing - finished The support for namespace alias is not complete yet. "Go to Declaration" still does not make difference between full qualified class name and aliased one Screen shot: http://twitpic.com/2fcors/full -------- Product Version: NetBeans IDE Dev (Build 2010-08-11_15-32-39 ) Java: 1.6.0_21-ea; Java HotSpot(TM) Client VM 17.0-b15 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and Settings\Pcdinh\.netbeans\dev batch reassigning It would be very usefull if we have detection of unused imports (use statements) just like java. Is there any further updates to this? The items marked as 'not working' represent serious functionality breaks when working with heavily namespaced code (Symfony2 for example). Works properly for me in 7.2. |