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 257783 - Symfony 3 commands
Summary: Symfony 3 commands
Status: RESOLVED DUPLICATE of bug 257708
Alias: None
Product: php
Classification: Unclassified
Component: Symfony (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-31 10:31 UTC by waldermort
Modified: 2016-02-01 09:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description waldermort 2016-01-31 10:31:32 UTC
I can get the IDE to recognize my project as Symfony3 by using the Symfony2 framework option and pointing it towards the 'bin' directory (which contains the console).

The biggest problem is when clicking 'Symfony2 > Run Command'. The IDE is no longer able to list the available commands. I understand this is probably related to the new directory structure of Symfony3 projects.

Can somebody in the know tell me how the IDE gathers those commands? I'm hoping, as a workaround until support is added, to place a .php file somewhere with enough code to allow the IDE to find the commands.
Comment 1 waldermort 2016-01-31 12:25:34 UTC
I tracked the problem down to a change in the Symfony core files. The IDE populates the commands by running 'php bin/console --ansi list --xml'. The '--xml' option has been dropped in favour of '--format=xml'.

A workaround is to add the '--xml' option back to the core file.

In 'Symfony\Component\Console\Command\ListCommand.php' add (line 71):
        if ($input->getOption('xml')) {
            $input->setOption('format', 'xml');
        }
and add (line 91):
        new InputOption('xml', null, InputOption::VALUE_NONE, 'To output xml command list'),

Considering the very subtle changes, I hope the netbeans crew will release a Symfony3 framework soon.
Comment 2 Tomas Mysik 2016-02-01 09:03:24 UTC
Yes, we would like to support Symfony 3 in the next release of NetBeans.

Thanks for reporting.

*** This bug has been marked as a duplicate of bug 257708 ***