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

Editor could not be initialized when opening some php/ctp files

    Details

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

      Windows 7 Professional x64

      Description

      After installing Aptana Studio 3, build: 3.0.3.201106241312 getting Could not open the editor: Editor could not be initialized error while trying to open some ctp/php files (using Web perspective, project is of PHP nature).

      Below related log entries:

      !ENTRY org.eclipse.ui 4 0 2011-06-27 12:00:16.793
      !MESSAGE Unable to create editor ID com.aptana.editor.php: Editor could not be initialized.
      !STACK 0
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.AbstractStringBuilder.setLength(Unknown Source)
      at java.lang.StringBuilder.setLength(Unknown Source)
      at com.aptana.editor.common.text.rules.CollectingCharacterScanner.unread(CollectingCharacterScanner.java:67)
      at com.aptana.editor.common.text.rules.PrefixedCharacterScanner.unread(PrefixedCharacterScanner.java:61)
      at org.eclipse.jface.text.rules.PatternRule.endSequenceDetected(PatternRule.java:268)
      at org.eclipse.jface.text.rules.PatternRule.doEvaluate(PatternRule.java:195)
      at org.eclipse.jface.text.rules.PatternRule.evaluate(PatternRule.java:308)
      at org.eclipse.jface.text.rules.PatternRule.evaluate(PatternRule.java:209)
      at com.aptana.editor.common.text.rules.TagRule.endSequenceDetected(TagRule.java:108)
      at org.eclipse.jface.text.rules.PatternRule.doEvaluate(PatternRule.java:187)
      at com.aptana.editor.common.text.rules.TagRule.doEvaluate(TagRule.java:85)
      at org.eclipse.jface.text.rules.PatternRule.evaluate(PatternRule.java:308)
      at com.aptana.editor.common.text.rules.CompositePartitionScanner.doResumeContentType(CompositePartitionScanner.java:210)
      at com.aptana.editor.common.text.rules.CompositePartitionScanner.nextToken(CompositePartitionScanner.java:182)
      at org.eclipse.jface.text.rules.FastPartitioner.initialize(FastPartitioner.java:176)
      at org.eclipse.jface.text.rules.FastPartitioner.checkInitialization(FastPartitioner.java:151)
      at org.eclipse.jface.text.rules.FastPartitioner.connect(FastPartitioner.java:143)
      at org.eclipse.jface.text.rules.FastPartitioner.connect(FastPartitioner.java:125)
      at com.aptana.editor.common.CompositeDocumentProvider.connect(CompositeDocumentProvider.java:53)
      at com.aptana.editor.php.internal.ui.editor.PHPDocumentProvider.connect(PHPDocumentProvider.java:38)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mstepanov Max Stepanov
                Reporter:
                wbx Wojciech Bajcar
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code