Project: aptanastudio
Issue APSTUD-7393: StackOverflowError parsing big file (with fast parser)
Having a python file with 2000 lines just repeating: class Spam(object): pass is giving a stack overflow error: {code} java.lang.RuntimeException: java.lang.StackOverflowError org.python.pydev.parser.fastparser.FastDefinitionsParser.parse(FastDefinitionsParser.java:641) org.python.pydev.parser.fastparser.FastDefinitionsParser.parse(FastDefinitionsParser.java:631) org.python.pydev.parser.fastparser.FastDefinitionsParser.parse(FastDefinitionsParser.java:622) com.python.pydev.analysis.builder.AnalysisBuilderVisitor$1.call(AnalysisBuilderVisitor.java:103) com.python.pydev.analysis.builder.AnalysisBuilderVisitor$1.call(AnalysisBuilderVisitor.java:1) com.python.pydev.analysis.builder.AnalysisBuilderRunnable.doAnalysis(AnalysisBuilderRunnable.java:190) com.python.pydev.analysis.builder.AbstractAnalysisBuilderRunnable.run(AbstractAnalysisBuilderRunnable.java:152) com.python.pydev.analysis.builder.AnalysisBuilderVisitor.execRunnable(AnalysisBuilderVisitor.java:184) com.python.pydev.analysis.builder.AnalysisBuilderVisitor.doVisitChangedResource(AnalysisBuilderVisitor.java:175) com.python.pydev.analysis.builder.AnalysisBuilderVisitor.visitChangedResource(AnalysisBuilderVisitor.java:117) com.python.pydev.analysis.builder.AnalysisBuilderVisitor.visitChangedResource(AnalysisBuilderVisitor.java:45) org.python.pydev.builder.PyDevBuilderVisitor.visitAddedResource(PyDevBuilderVisitor.java:281) org.python.pydev.builder.PyDevBuilder.buildResources(PyDevBuilder.java:314) org.python.pydev.builder.PyDevBuilder.performFullBuild(PyDevBuilder.java:190) org.python.pydev.builder.PyDevBuilder.build(PyDevBuilder.java:84) 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: 5