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 257972

Summary: Runtime exception running console --xml option is no longer valid
Product: php Reporter: cyuste
Component: SymfonyAssignee: Tomas Mysik <tmysik>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description cyuste 2016-02-13 16:01:23 UTC
When I create a new symfony project using netbeans and symfony installer, after everything is downloaded I try to use Symfony2/Run Command... but I get the following error:

"C:\wamp\bin\php\php5.5.12\php.exe" "D:\wamp\www\qtpc\bin\console" "--ansi" "list" "--xml"

                                                          
  [Symfony\Component\Console\Exception\RuntimeException]  
  The "--xml" option does not exist.

It looks like the correct way to make this call is now

"C:\wamp\bin\php\php5.5.12\php.exe" "D:\wamp\www\qtpc\bin\console" "--ansi" "list" "--format xml"

I have tried to modify the console.php script to accept the other way, adding this lines:

if( isset($argv[2]) && $argv[2] == 'list' && 
    isset($argv[3]) && $argv[3] == '--xml' ) {
    $argv[3] = '--format=xml';
    $_SERVER['argv'] = $argv;
}

but the resultant xml is not parsed by netbeans and the run command console is empty.
Comment 1 Tomas Mysik 2016-02-15 07:14:18 UTC
You are using Symfony 3.

Thanks for reporting.

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