Aptana Studio
  1. Aptana Studio
  2. APSTUD-3849

Invalid comment characters are used for php editor

    Details

      Description

      ctrl+/ and ctrl+shift+/ combinations begins to insert html style comments instead of php after some updates. Don't know when exactly.

      Example inside php file:

      $update = $layout->getUpdate();

      after pressing ctrl+/:
      <!-- $update = $layout->getUpdate(); -->

        Issue Links

          Activity

          Hide
          Ingo Muschenetz added a comment -

          I can't reproduce.

          Pasted this into a blank PHP file:

          <?php
          
          $update = $layout->getUpdate();
          
          ?>
          

          Selected the $update line and press Ctrl + /. I get the following:

          <?php
          
          // $update = $layout->getUpdate();
          
          ?>
          
          Show
          Ingo Muschenetz added a comment - I can't reproduce. Pasted this into a blank PHP file: <?php $update = $layout->getUpdate(); ?> Selected the $update line and press Ctrl + /. I get the following: <?php // $update = $layout->getUpdate(); ?>
          Hide
          Vova Yatsyuk added a comment -

          Don't know why I'm getting this error. Bu I found that my scope is html inside php file:
          TM_FILENAME: Readable.php
          TM_CURRENT_SCOPE: text.html.basic source.php.embedded.block.html
          TM_SCOPE: text.html.basic source.php.embedded.block.html
          TM_COMMENT_START: <!--
          TM_COMMENT_END: -->

          Maybe you can give me some advice on that? I've already tried to flush bundle caches, but this didn't help me.

          Window->Preferences->General->Editors->FileAssociations
          Php Source editor is set for php and phtml files.

          Full ENV inforamtion:

          TM_FILENAME: Readable.php
          USERPROFILE: C:\Users\User
          TERM: cygwin
          PROGRAMDATA: C:\ProgramData
          TM_DIRECTORY: D:\www\htdocs\axis.com\library\Axis\HumanUri\Adapter
          TM_PROJECT_DIRECTORY: D:\www\htdocs\axis.com
          COMMONPROGRAMFILES: C:\Program Files\Common Files
          PROCESSOR_REVISION: 170a
          USERDOMAIN: USER
          TM_BUNDLE_PATH: C:\Users\User\AppData\Local\Aptana Studio 3\configuration\org.eclipse.osgi\bundles\873\1\.cp\bundles\bundle-development.ruble
          ALLUSERSPROFILE: C:\ProgramData
          AMDAPPSDKROOT: C:\Program Files\AMD APP\
          !::: ::\
          SESSIONNAME: Console
          PSMODULEPATH: C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
          LOGONSERVER:
          USER
          PATH: C:/Users/User/AppData/Local/Aptana Studio 3/jre/bin/client;C:/Users/User/AppData/Local/Aptana Studio 3/jre/bin;C:/Users/User/AppData/Local/Aptana Studio 3/jre/lib/i386;C:\Program Files\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;"D:\www\Zend\ZendServer\bin";"D:\www\Zend\ZendServer\share\ZendFramework\bin";D:\www\Zend\Mysql\bin;C:\Program Files\TortoiseHg\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\QuickTime\QTSystem\;C:\Ruby192\bin;C:\Program Files\OpenVPN\bin;C:\Users\User\AppData\Local\Aptana Studio 3;
          APTANA_VERSION: 3.0.7.201111151549
          TM_CARET_LINE_NUMBER: 1
          PROCESSOR_LEVEL: 6
          TM_BUNDLE_SUPPORT: C:\Users\User\AppData\Local\Aptana Studio 3\configuration\org.eclipse.osgi\bundles\873\1\.cp\bundles\bundle-development.ruble/lib
          TM_CARET_LINE_TEXT: <?php
          TM_COMMENT_END_3: */
          LOCALAPPDATA: C:\Users\User\AppData\Local
          COMPUTERNAME: USER
          USERNAME: User
          ASL.LOG: Destination=file
          TM_SELECTED_FILE: D:\www\htdocs\axis.com\library\Axis\HumanUri\Adapter\Readable.php
          TM_TAB_SIZE: 4
          WINDIR: C:\Windows
          APPDATA: C:\Users\User\AppData\Roaming
          PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
          SHLVL: 1
          TM_LINE_INDEX: 5
          TEMP: /tmp
          TM_COMMAND_NAME: Show ENV
          TM_COLUMN_NUMBER: 6
          TM_FULLNAME: User
          HOMEDRIVE: C:
          TM_COMMAND_PATH: C:\Users\User\AppData\Local\Aptana Studio 3\configuration\org.eclipse.osgi\bundles\873\1\.cp\bundles\bundle-development.ruble\commands\env.rb
          TM_CURRENT_LINE: <?php
          TM_COMMENT_START_3: /*
          SYSTEMDRIVE: C:
          TM_COMMENT_START: <!--
          INVOKED_VIA: key_binding
          QTJAVA: C:\Program Files\Java\jre6\lib\ext\QTJava.zip
          TM_SELECTED_FILES: 'D:\www\htdocs\axis.com\library\Axis\HumanUri\Adapter\Readable.php'
          PROCESSOR_IDENTIFIER: x86 Family 6 Model 23 Stepping 10, GenuineIntel
          TM_SOFT_TABS: YES
          TM_HTML_EMPTY_TAGS: area|base|basefont|br|col|frame|hr|img|input|isindex|link|meta|param
          INPUT_TYPE: none
          TM_CARET_OFFSET: 5
          CLASSPATH: .;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
          PROCESSOR_ARCHITECTURE: x86
          TM_CURRENT_SCOPE: text.html.basic source.php.embedded.block.html
          OS: Windows_NT
          FP_NO_HOST_CHECK: NO
          TM_SCOPE: text.html.basic source.php.embedded.block.html
          HOMEPATH: \Users\User
          COMSPEC: C:\Windows\system32\cmd.exe
          PROGRAMFILES: C:\Program Files
          HOME: C:\Users\User
          TM_LINE_NUMBER: 1
          TM_FILEPATH: D:\www\htdocs\axis.com\library\Axis\HumanUri\Adapter\Readable.php
          TM_PROJECT_NAME: axis
          NUMBER_OF_PROCESSORS: 2
          SYSTEMROOT: C:\Windows
          PUBLIC: C:\Users\Public
          TM_CURRENT_WORD: php
          TM_COMMENT_END: -->

          Show
          Vova Yatsyuk added a comment - Don't know why I'm getting this error. Bu I found that my scope is html inside php file: TM_FILENAME: Readable.php TM_CURRENT_SCOPE: text.html.basic source.php.embedded.block.html TM_SCOPE: text.html.basic source.php.embedded.block.html TM_COMMENT_START: <!-- TM_COMMENT_END: --> Maybe you can give me some advice on that? I've already tried to flush bundle caches, but this didn't help me. Window->Preferences->General->Editors->FileAssociations Php Source editor is set for php and phtml files. Full ENV inforamtion: TM_FILENAME: Readable.php USERPROFILE: C:\Users\User TERM: cygwin PROGRAMDATA: C:\ProgramData TM_DIRECTORY: D:\www\htdocs\axis.com\library\Axis\HumanUri\Adapter TM_PROJECT_DIRECTORY: D:\www\htdocs\axis.com COMMONPROGRAMFILES: C:\Program Files\Common Files PROCESSOR_REVISION: 170a USERDOMAIN: USER TM_BUNDLE_PATH: C:\Users\User\AppData\Local\Aptana Studio 3\configuration\org.eclipse.osgi\bundles\873\1\.cp\bundles\bundle-development.ruble ALLUSERSPROFILE: C:\ProgramData AMDAPPSDKROOT: C:\Program Files\AMD APP\ !::: ::\ SESSIONNAME: Console PSMODULEPATH: C:\Windows\system32\WindowsPowerShell\v1.0\Modules\ LOGONSERVER: USER PATH: C:/Users/User/AppData/Local/Aptana Studio 3/jre/bin/client;C:/Users/User/AppData/Local/Aptana Studio 3/jre/bin;C:/Users/User/AppData/Local/Aptana Studio 3/jre/lib/i386;C:\Program Files\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;"D:\www\Zend\ZendServer\bin";"D:\www\Zend\ZendServer\share\ZendFramework\bin";D:\www\Zend\Mysql\bin;C:\Program Files\TortoiseHg\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\QuickTime\QTSystem\;C:\Ruby192\bin;C:\Program Files\OpenVPN\bin;C:\Users\User\AppData\Local\Aptana Studio 3; APTANA_VERSION: 3.0.7.201111151549 TM_CARET_LINE_NUMBER: 1 PROCESSOR_LEVEL: 6 TM_BUNDLE_SUPPORT: C:\Users\User\AppData\Local\Aptana Studio 3\configuration\org.eclipse.osgi\bundles\873\1\.cp\bundles\bundle-development.ruble/lib TM_CARET_LINE_TEXT: <?php TM_COMMENT_END_3: */ LOCALAPPDATA: C:\Users\User\AppData\Local COMPUTERNAME: USER USERNAME: User ASL.LOG: Destination=file TM_SELECTED_FILE: D:\www\htdocs\axis.com\library\Axis\HumanUri\Adapter\Readable.php TM_TAB_SIZE: 4 WINDIR: C:\Windows APPDATA: C:\Users\User\AppData\Roaming PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC SHLVL: 1 TM_LINE_INDEX: 5 TEMP: /tmp TM_COMMAND_NAME: Show ENV TM_COLUMN_NUMBER: 6 TM_FULLNAME: User HOMEDRIVE: C: TM_COMMAND_PATH: C:\Users\User\AppData\Local\Aptana Studio 3\configuration\org.eclipse.osgi\bundles\873\1\.cp\bundles\bundle-development.ruble\commands\env.rb TM_CURRENT_LINE: <?php TM_COMMENT_START_3: /* SYSTEMDRIVE: C: TM_COMMENT_START: <!-- INVOKED_VIA: key_binding QTJAVA: C:\Program Files\Java\jre6\lib\ext\QTJava.zip TM_SELECTED_FILES: 'D:\www\htdocs\axis.com\library\Axis\HumanUri\Adapter\Readable.php' PROCESSOR_IDENTIFIER: x86 Family 6 Model 23 Stepping 10, GenuineIntel TM_SOFT_TABS: YES TM_HTML_EMPTY_TAGS: area|base|basefont|br|col|frame|hr|img|input|isindex|link|meta|param INPUT_TYPE: none TM_CARET_OFFSET: 5 CLASSPATH: .;C:\Program Files\Java\jre6\lib\ext\QTJava.zip PROCESSOR_ARCHITECTURE: x86 TM_CURRENT_SCOPE: text.html.basic source.php.embedded.block.html OS: Windows_NT FP_NO_HOST_CHECK: NO TM_SCOPE: text.html.basic source.php.embedded.block.html HOMEPATH: \Users\User COMSPEC: C:\Windows\system32\cmd.exe PROGRAMFILES: C:\Program Files HOME: C:\Users\User TM_LINE_NUMBER: 1 TM_FILEPATH: D:\www\htdocs\axis.com\library\Axis\HumanUri\Adapter\Readable.php TM_PROJECT_NAME: axis NUMBER_OF_PROCESSORS: 2 SYSTEMROOT: C:\Windows PUBLIC: C:\Users\Public TM_CURRENT_WORD: php TM_COMMENT_END: -->
          Hide
          Marinko Tarlac added a comment -

          I have the same problem

          <?php
          $update = $layout->getUpdate();
          ?>

          When I select
          $update = $layout->getUpdate();
          and press Ctrl+/ I get

          <?php
          <!-- $update = $layout->getUpdate(); -->
          ?>

          Blank file created... Aptana 3.0.7.201111081705

          Show
          Marinko Tarlac added a comment - I have the same problem <?php $update = $layout->getUpdate(); ?> When I select $update = $layout->getUpdate(); and press Ctrl+/ I get <?php <!-- $update = $layout->getUpdate(); --> ?> Blank file created... Aptana 3.0.7.201111081705
          Hide
          Ingo Muschenetz added a comment -

          Do you happen to have a copy of any rubles in your ruble folder?

          Show
          Ingo Muschenetz added a comment - Do you happen to have a copy of any rubles in your ruble folder?
          Hide
          Michael Irey added a comment -

          I am also having this same exact issue, please let me know if I can help troubleshoot.

          Show
          Michael Irey added a comment - I am also having this same exact issue, please let me know if I can help troubleshoot.
          Hide
          Vova Yatsyuk added a comment -

          No. Only my ruble is inside c:\Users\User\Aptana Rubles\

          Show
          Vova Yatsyuk added a comment - No. Only my ruble is inside c:\Users\User\Aptana Rubles\
          Hide
          Chris Williams added a comment -

          Pushed fix and unit test to both 'release' and 'development'.

          Show
          Chris Williams added a comment - Pushed fix and unit test to both 'release' and 'development'.
          Hide
          Marinko Tarlac added a comment -

          I tried with 3.0.7.201111171815 and it works fine.

          Thanks

          Show
          Marinko Tarlac added a comment - I tried with 3.0.7.201111171815 and it works fine. Thanks
          Hide
          Joel Witt (Inactive) added a comment -

          Aptana Studio 3, build: 3.0.7.201111182245
          Ubuntu 11.10
          Virtual Machine with Windows XP

          Confirmed PHP commenting works as expected in current version (please see capture at http://screencast.com/t/4ekhFMoz810).

          Show
          Joel Witt (Inactive) added a comment - Aptana Studio 3, build: 3.0.7.201111182245 Ubuntu 11.10 Virtual Machine with Windows XP Confirmed PHP commenting works as expected in current version (please see capture at http://screencast.com/t/4ekhFMoz810 ).

            People

            • Assignee:
              Chris Williams
              Reporter:
              Vova Yatsyuk
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development