Project: aptanastudio
Issue APSTUD-4763: Improve handling of "Failed to parse" for Validation
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 {code} !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'. org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceManager.java:793) org.eclipse.core.internal.resources.File.getContents(File.java:289) org.eclipse.core.internal.resources.File.getContents(File.java:278) com.aptana.index.core.build.BuildContext.openInputStream(BuildContext.java:259) com.aptana.index.core.build.BuildContext.getContents(BuildContext.java:154) com.aptana.editor.html.validator.HTMLParserValidator.buildFile(HTMLParserValidator.java:60) com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72) com.aptana.core.build.UnifiedBuilder.buildFile(UnifiedBuilder.java:509) com.aptana.core.build.UnifiedBuilder.doBuildFiles(UnifiedBuilder.java:426) com.aptana.core.build.UnifiedBuilder.buildFiles(UnifiedBuilder.java:403) com.aptana.core.build.UnifiedBuilder.incrementalBuild(UnifiedBuilder.java:231) com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:167) org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239) org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292) org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295) org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351) org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374) org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143) org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241) 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'. {code} Suggested approach: # Catch the specific exception # Call refresh of the resource # Try again # If it still fails, alert the user (similar to how search fails) # Write out this message as an [WARNING] to the log
Story points: 8