Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-1572

Unable to format titanium.js file generated by Titanium Mobile Web project

    Details

    • Story Points:
      8

      Description

      The file is generated when you package a Titanium mobile web project as a new project in the workspace. The generated project should have a titanium.js file. When I try to format the file I get the following error:

      !ENTRY com.aptana.editor.js.formatter 4 0 2012-04-19 15:36:03.866
      !MESSAGE (Build 3.0.3.1334796284) [ERROR] com.aptana.formatter.epl/debug Cannot recover from the syntax error
      !STACK 0
      beaver.Parser$Exception: Cannot recover from the syntax error
      at beaver.Parser.recoverFromError(Parser.java:697)
      at com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:623)
      at beaver.Parser.parse(Parser.java:498)
      at beaver.Parser.parse(Parser.java:439)
      at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:447)
      at com.aptana.editor.js.formatter.JSFormatter.equalContent(JSFormatter.java:295)
      at com.aptana.editor.js.formatter.JSFormatter.format(JSFormatter.java:246)
      at com.aptana.formatter.ScriptFormattingStrategy.doFormat(ScriptFormattingStrategy.java:185)
      at com.aptana.formatter.ScriptFormattingStrategy$1.run(ScriptFormattingStrategy.java:115)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      at com.aptana.formatter.ScriptFormattingStrategy.format(ScriptFormattingStrategy.java:111)
      at org.eclipse.jface.text.formatter.MultiPassContentFormatter.formatMaster(MultiPassContentFormatter.java:193)
      at org.eclipse.jface.text.formatter.MultiPassContentFormatter.format(MultiPassContentFormatter.java:135)

      !ENTRY com.aptana.formatter.epl 4 0 2012-04-19 15:36:03.870
      !MESSAGE (Build 3.0.0.1332346421) [ERROR] com.aptana.formatter.epl/debug 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.

        Attachments

          Activity

            People

            • Assignee:
              sgibly Shalom Gibly
              Reporter:
              nle Nam Le (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: