Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-3426

Error in PHP code formatting (via Source->format)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: Aptana Studio 3.0.4
    • Fix Version/s: Aptana Studio 3.0.5
    • Component/s: None
    • Labels:
    • Environment:

      Gentoo Linux x86 32bit
      Eclipse Version: 3.5.1

      Description

      Gentoo Linux, Eclipse Version: 3.5.1 with Aptana Studio 3 Version: 3.0.4.201108101432 installed as Eclipse plugin.

      Error details from Eclipse's eror log:

      eclipse.buildId=M20090917-0800
      java.version=1.6.0_20
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
      Framework arguments:
      Command-line arguments: -os linux -ws gtk -arch x86

      Error
      Wed Sep 07 17:31:33 MSD 2011
      Error while formatting the code in your editor.Please submit a bug report through Studio's support and include the relevant code which triggered this error.

      How to reproduce:

      This error apears when formatting following chunk of code (standard Symfony 1.x autogenerated snippet for task):

      <?php
       
      $this->addOptions(array(
      new sfCommandOption('application', null, sfCommandOption::PARAMETER_REQUIRED, 'The application name'),
      new sfCommandOption('env', null, sfCommandOption::PARAMETER_REQUIRED, 'The environment', 'dev'),
      new sfCommandOption('connection', null, sfCommandOption::PARAMETER_REQUIRED, 'The connection name', 'propel'),
      // add your own options here
      ));
       
      ?>
      

      As I figured out the problem causes this error to appear is a commented line. This code without that line will be formatted without errors.

        Attachments

          Activity

            People

            • Assignee:
              sgibly Shalom Gibly
              Reporter:
              tlod_snake Igor F. Zinkovsky
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code