Project: aptanastudio
Issue APSTUD-4706: ClassCastException when indexing JavaScript files
# Clear your log file # Check out https://github.com/aptana/studio3-sdk into your workspace # Check your log file. If no messages appear, try Project > Clean on that project You should see the following (sample--the file itself may differ and there will be more than one): {code} !ENTRY com.aptana.buildpath.core 4 0 2012-04-23 09:44:58.124 !MESSAGE (Build 3.1.0.qualifier) [ERROR] Error indexing L/Dojo_Aptana_Test/portal/sample/resources/configurations.js !STACK 0 java.lang.ClassCastException: com.aptana.editor.js.parsing.ast.JSInvokeNode cannot be cast to com.aptana.editor.js.parsing.ast.JSFunctionNode com.aptana.editor.js.inferencing.JSTypeUtil.applyDocumentation(JSTypeUtil.java:103) com.aptana.editor.js.inferencing.JSTypeUtil.applyDocumentation(JSTypeUtil.java:152) com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.applyDocumentation(JSSymbolTypeInferrer.java:168) com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getSymbolPropertyElement(JSSymbolTypeInferrer.java:367) com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getSymbolPropertyElement(JSSymbolTypeInferrer.java:389) com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getScopeProperties(JSSymbolTypeInferrer.java:292) com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.processParseResults(JSFileIndexingParticipant.java:216) com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.index(JSFileIndexingParticipant.java:104) com.aptana.core.internal.build.IndexBuildParticipant.buildFile(IndexBuildParticipant.java:83) com.aptana.core.internal.build.LazyBuildParticipant.buildFile(LazyBuildParticipant.java:72) com.aptana.core.build.UnifiedBuilder.buildFile(UnifiedBuilder.java:518) com.aptana.core.build.UnifiedBuilder.doBuildFiles(UnifiedBuilder.java:431) com.aptana.core.build.UnifiedBuilder.buildFiles(UnifiedBuilder.java:408) com.aptana.core.build.UnifiedBuilder.fullBuild(UnifiedBuilder.java:302) com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:148) 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) {code}
Story points: 3