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

Remove logging of JavaScript parse errors to log file

    Details

      Description

      Given the code below, add and remove the missing () after the first alertMsg:

      <html>
      <head>
      <script type="text/javascript">
      function alertMsg(){alert("Popup");}
      </script>
      </head>
      <body>
      <form>
      <input type="button" value="Show alert box"
      onclick="alertMsg()" />
      </form>
      </body>
      </html>
      

      You will see the following in the log file:

      (Build 3.0.3.qualifier) [ERROR]  Failed to parse the content
      beaver.Parser$Exception: Cannot recover from the syntax error
      	at beaver.Parser.recoverFromError(Parser.java:686)
      	at com.aptana.editor.js.parsing.JSParser.recoverFromError(JSParser.java:596)
      	at beaver.Parser.parse(Parser.java:487)
      	at beaver.Parser.parse(Parser.java:428)
      	at com.aptana.editor.js.parsing.JSParser.parse(JSParser.java:428)
      	at com.aptana.parsing.ParserPoolFactory.doParse(ParserPoolFactory.java:271)
      	at com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:229)
      	at com.aptana.editor.js.contentassist.JSContentAssistProcessor.getActiveASTNode(JSContentAssistProcessor.java:584)
      	at com.aptana.editor.js.contentassist.JSContentAssistProcessor.getArgumentsNode(JSContentAssistProcessor.java:647)
      	at com.aptana.editor.js.contentassist.JSContentAssistProcessor.getFunctionElement(JSContentAssistProcessor.java:685)
      	at com.aptana.editor.js.contentassist.JSContentAssistProcessor.computeContextInformation(JSContentAssistProcessor.java:436)
      	at com.aptana.editor.common.contentassist.ContentAssistant.computeContextInformation(ContentAssistant.java:2245)
      

      This related to messing with the problems view error we were chatting about before (Adding/removing () after the first alertMsg in the text below). I get it every time I edit.

        Attachments

          Activity

            People

            • Assignee:
              klindsey Kevin Lindsey
              Reporter:
              ingo Ingo Muschenetz
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration