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 - Runtime exception running console --xml option is no longer valid
Summary: Runtime exception running console --xml option is no longer valid
Status: RESOLVED DUPLICATE of bug 257708
Alias: None
Product: php
Classification: Unclassified
Component: Symfony (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-13 16:01 UTC by cyuste
Modified: 2016-02-15 07:14 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 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 ***