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.
This would be very useful to have a PHAR support in Netbeans. * When included with inline code (include "my.phar", require "my.phar.gz"), The editor should parse the PHAR content for autocomplete <= major enhancement * When in the "Project" (inside a project directory, or the include path) the PHAR should appear like a directory (with a specific icon?) that contains the PHAR files and then be used for autocomplete. All the structure is described in the archive manifest. Right click on the "foldered phar", there is a specific command "Show stub" that open a editor tab with the stub content (with no more __HALT_COMPILER() parsing error) That would work with compressed phar.
Is there any new updates regarding this issue? A few days ago I tried phpStorm IDE and this PHAR integration feature works like a charm.
(In reply to dimi11 from comment #1) > A few days ago I tried phpStorm IDE and this PHAR integration feature works > like a charm. Can you please describe what features exactly? Thanks.
As a resond to https://netbeans.org/bugzilla/show_bug.cgi?id=206592#c2 I would like to include some PHAR library in my php code and after that being able to get autocomplete options from that PHAR lib. The current situations is that I may include some phar lib but I do not see any functionalities from that lib. Now, when I open phar lib from Projects panel I see its "binary" content which is not useful at all. Also I would like to be able to browse content of phar library in Projects tree panel. This link is a good reference how to make PHAR support really useful: http://blog.jetbrains.com/phpstorm/2013/05/working-with-phar-packages-in-phpstorm/
I would also like to have PHAR support because of PHPUnit code completion ...
(In reply to sallyx from comment #4) > I would also like to have PHAR support because of PHPUnit code completion ... add your vote, by pressing (vote) next to the priority :)
(In reply to sallyx from comment #4) > I would also like to have PHAR support because of PHPUnit code completion ... An easy workaround could be to add PHPUnit to your project via Composer - Composer should download PHPUnit sources so then NetBeans can properly scan & index them (so code completion works then). Note: You would likely want to select project specific PHPUnit in Project Properties dialog in this case.
phar support was added by the netbeans plugin, you can try it out. http://plugins.netbeans.org/plugin/58816/nbphar maybe plugin could be integrated into the netbeans by default.