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

Improve handling of "Failed to parse" for Validation

    Details

    • Story Points:
      8

      Description

      Found in a log file. It appears to happen when a file is edited outside Eclipse, "refreshing workspace" is turned off, and we attempt to build

      !ENTRY com.aptana.editor.html 4 0 2012-04-19 00:48:26.619
      !MESSAGE (Build 3.0.3.1333512634) [ERROR]  Failed to parse for HTML Parse Error Validation
      !STACK 1
      org.eclipse.core.internal.resources.ResourceException: Resource is out of sync with the file system: '/Humansoul/prive/contenu/item_rss_plugin.html'.
      	at org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceManager.java:793)
      	at org.eclipse.core.internal.resources.File.getContents(File.java:289)
      	at org.eclipse.core.internal.resources.File.getContents(File.java:278)
      	at com.aptana.index.core.build.BuildContext.openInputStream(BuildContext.java:259)
      	at com.aptana.index.core.build.BuildContext.getContents(BuildContext.java:154)
      	at com.aptana.editor.html.validator.HTMLParserValidator.buildFile(HTMLParserValidator.java:60)
      	at com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72)
      	at com.aptana.core.build.UnifiedBuilder.buildFile(UnifiedBuilder.java:509)
      	at com.aptana.core.build.UnifiedBuilder.doBuildFiles(UnifiedBuilder.java:426)
      	at com.aptana.core.build.UnifiedBuilder.buildFiles(UnifiedBuilder.java:403)
      	at com.aptana.core.build.UnifiedBuilder.incrementalBuild(UnifiedBuilder.java:231)
      	at com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:167)
      	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
      	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
      	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
      	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
      	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
      	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
      	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      !SUBENTRY 1 org.eclipse.core.resources 4 274 2012-04-19 00:48:26.619
      !MESSAGE Resource is out of sync with the file system: '/Humansoul/prive/contenu/item_rss_plugin.html'.
      

      Suggested approach:

      1. Catch the specific exception
      2. Call refresh of the resource
      3. Try again
      4. If it still fails, alert the user (similar to how search fails)
      5. Write out this message as an [WARNING] to the log

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sgibly Shalom Gibly
                Reporter:
                ingo Ingo Muschenetz
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Integration