nette-intellij / intellij-nette

Nette support in PhpStorm - Develop Nette with pleasure
http://plugins.jetbrains.com/plugin?pluginId=7231
75 stars 6 forks source link

Error log #1

Closed hrach closed 11 years ago

hrach commented 11 years ago
String index out of range: 0: String index out of range: 0
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    at java.lang.String.charAt(String.java:658)
    at nette.FieldFinder.lcfirst(FieldFinder.java:33)
    at nette.FieldFinder.findMagicFields(FieldFinder.java:24)
    at nette.NetteObjectFieldsTypeProvider.getType(NetteObjectFieldsTypeProvider.java:20)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:46)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:41)
    at com.intellij.openapi.util.Computable$NotNullCachedComputable.compute(Computable.java:52)
    at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:110)
    at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo.getType(PhpTypeInfo.java:41)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getInferredType(PhpTypeInferenceUtil.java:208)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getType(PhpTypeInferenceUtil.java:198)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getType(PhpTypeInferenceUtil.java:189)
    at com.jetbrains.php.lang.psi.elements.impl.FieldReferenceImpl.getType(FieldReferenceImpl.java:116)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeAnalyserVisitor.visitPhpArrayAccessExpression(PhpTypeAnalyserVisitor.java:218)
    at com.jetbrains.php.lang.psi.elements.impl.ArrayAccessExpressionImpl.accept(ArrayAccessExpressionImpl.java:64)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:51)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:41)
    at com.intellij.openapi.util.Computable$NotNullCachedComputable.compute(Computable.java:52)
    at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:110)
    at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo.getType(PhpTypeInfo.java:41)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getInferredType(PhpTypeInferenceUtil.java:208)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getType(PhpTypeInferenceUtil.java:198)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getType(PhpTypeInferenceUtil.java:189)
    at com.jetbrains.php.lang.psi.elements.impl.ArrayAccessExpressionImpl.getType(ArrayAccessExpressionImpl.java:41)
    at com.jetbrains.php.lang.psi.resolve.types.PhpType.add(PhpType.java:152)
    at com.jetbrains.php.lang.psi.elements.impl.FunctionImpl$3.visitPhpReturn(FunctionImpl.java:225)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReturnImpl.accept(PhpReturnImpl.java:19)
    at com.jetbrains.php.lang.psi.visitors.PhpRecursiveElementVisitor.visitElement(PhpRecursiveElementVisitor.java:29)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpElement(PhpElementVisitor.java:20)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpIf(PhpElementVisitor.java:87)
    at com.jetbrains.php.lang.psi.elements.impl.IfImpl.accept(IfImpl.java:43)
    at com.jetbrains.php.lang.psi.visitors.PhpRecursiveElementVisitor.visitElement(PhpRecursiveElementVisitor.java:29)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpElement(PhpElementVisitor.java:20)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpGroupStatement(PhpElementVisitor.java:200)
    at com.jetbrains.php.lang.psi.elements.impl.GroupStatementImpl.accept(GroupStatementImpl.java:60)
    at com.jetbrains.php.lang.psi.visitors.PhpRecursiveElementVisitor.visitElement(PhpRecursiveElementVisitor.java:29)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpElement(PhpElementVisitor.java:20)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpMethod(PhpElementVisitor.java:28)
    at com.jetbrains.php.lang.psi.elements.impl.MethodImpl.accept(MethodImpl.java:97)
    at com.jetbrains.php.lang.psi.elements.impl.FunctionImpl.getLocalType(FunctionImpl.java:211)
    at com.jetbrains.php.lang.psi.stubs.PhpMethodElementType.createStub(PhpMethodElementType.java:30)
    at com.jetbrains.php.lang.psi.stubs.PhpMethodElementType.createStub(PhpMethodElementType.java:20)
    at com.intellij.psi.stubs.DefaultStubBuilder.buildStubTreeFor(DefaultStubBuilder.java:59)
    at com.intellij.psi.stubs.DefaultStubBuilder.buildStubTree(DefaultStubBuilder.java:37)
    at com.intellij.psi.impl.source.PsiFileImpl.calcStubTree(PsiFileImpl.java:966)
    at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:45)
    at com.intellij.psi.stubs.StubIndexImpl$1.perform(StubIndexImpl.java:229)
    at com.intellij.psi.stubs.StubIndexImpl$1.perform(StubIndexImpl.java:221)
    at com.intellij.util.indexing.ValueContainer.forEach(ValueContainer.java:60)
    at com.intellij.psi.stubs.StubIndexImpl.process(StubIndexImpl.java:221)
    at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:194)
    at com.jetbrains.php.PhpIndexImpl.getClassesByNameInScope(PhpIndexImpl.java:257)
    at com.jetbrains.php.PhpIndexImpl.getClassesByName(PhpIndexImpl.java:251)
    at com.jetbrains.php.PhpIndexImpl.getClassesByFQN(PhpIndexImpl.java:466)
    at com.jetbrains.php.PhpIndexImpl.getAnyByFQN(PhpIndexImpl.java:511)
    at com.jetbrains.php.lang.psi.elements.impl.MemberReferenceImpl.resolveGlobal(MemberReferenceImpl.java:136)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReferenceImpl$1.resolve(PhpReferenceImpl.java:106)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReferenceImpl$1.resolve(PhpReferenceImpl.java:103)
    at com.intellij.psi.impl.source.resolve.ResolveCache$2.compute(ResolveCache.java:107)
    at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:110)
    at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:104)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:132)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:124)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReferenceImpl.multiResolve(PhpReferenceImpl.java:98)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReferenceImpl.resolve(PhpReferenceImpl.java:85)
    at com.jetbrains.php.lang.annotator.PhpAnnotatorVisitor.checkAccessModifiers(PhpAnnotatorVisitor.java:310)
    at com.jetbrains.php.lang.annotator.PhpAnnotatorVisitor.visitPhpMethodReference(PhpAnnotatorVisitor.java:293)
    at com.jetbrains.php.lang.psi.elements.impl.MethodReferenceImpl.accept(MethodReferenceImpl.java:31)
    at com.jetbrains.php.lang.annotator.PhpAnnotator.annotate(PhpAnnotator.java:17)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.runAnnotators(DefaultHighlightVisitor.java:160)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:103)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$10.run(GeneralHighlightingPass.java:644)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:757)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access$3500(GeneralHighlightingPass.java:83)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$12.run(GeneralHighlightingPass.java:763)
    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:87)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:760)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectHighlights(GeneralHighlightingPass.java:717)
    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:208)
    at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:58)
    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:62)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:357)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1182)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:348)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:226)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:345)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:321)
    at com.intellij.concurrency.JobLauncherImpl$3.call(JobLauncherImpl.java:145)
    at com.intellij.concurrency.JobLauncherImpl$3.call(JobLauncherImpl.java:142)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
    at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
    at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:113)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)

java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    at java.lang.String.charAt(String.java:658)
    at nette.FieldFinder.lcfirst(FieldFinder.java:33)
    at nette.FieldFinder.findMagicFields(FieldFinder.java:24)
    at nette.NetteObjectFieldsTypeProvider.getType(NetteObjectFieldsTypeProvider.java:20)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:46)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:41)
    at com.intellij.openapi.util.Computable$NotNullCachedComputable.compute(Computable.java:52)
    at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:110)
    at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo.getType(PhpTypeInfo.java:41)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getInferredType(PhpTypeInferenceUtil.java:208)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getType(PhpTypeInferenceUtil.java:198)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getType(PhpTypeInferenceUtil.java:189)
    at com.jetbrains.php.lang.psi.elements.impl.FieldReferenceImpl.getType(FieldReferenceImpl.java:116)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeAnalyserVisitor.visitPhpArrayAccessExpression(PhpTypeAnalyserVisitor.java:218)
    at com.jetbrains.php.lang.psi.elements.impl.ArrayAccessExpressionImpl.accept(ArrayAccessExpressionImpl.java:64)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:51)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:41)
    at com.intellij.openapi.util.Computable$NotNullCachedComputable.compute(Computable.java:52)
    at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:110)
    at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo.getType(PhpTypeInfo.java:41)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getInferredType(PhpTypeInferenceUtil.java:208)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getType(PhpTypeInferenceUtil.java:198)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getType(PhpTypeInferenceUtil.java:189)
    at com.jetbrains.php.lang.psi.elements.impl.ArrayAccessExpressionImpl.getType(ArrayAccessExpressionImpl.java:41)
    at com.jetbrains.php.lang.psi.resolve.types.PhpType.add(PhpType.java:152)
    at com.jetbrains.php.lang.psi.elements.impl.FunctionImpl$3.visitPhpReturn(FunctionImpl.java:225)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReturnImpl.accept(PhpReturnImpl.java:19)
    at com.jetbrains.php.lang.psi.visitors.PhpRecursiveElementVisitor.visitElement(PhpRecursiveElementVisitor.java:29)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpElement(PhpElementVisitor.java:20)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpIf(PhpElementVisitor.java:87)
    at com.jetbrains.php.lang.psi.elements.impl.IfImpl.accept(IfImpl.java:43)
    at com.jetbrains.php.lang.psi.visitors.PhpRecursiveElementVisitor.visitElement(PhpRecursiveElementVisitor.java:29)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpElement(PhpElementVisitor.java:20)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpGroupStatement(PhpElementVisitor.java:200)
    at com.jetbrains.php.lang.psi.elements.impl.GroupStatementImpl.accept(GroupStatementImpl.java:60)
    at com.jetbrains.php.lang.psi.visitors.PhpRecursiveElementVisitor.visitElement(PhpRecursiveElementVisitor.java:29)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpElement(PhpElementVisitor.java:20)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpMethod(PhpElementVisitor.java:28)
    at com.jetbrains.php.lang.psi.elements.impl.MethodImpl.accept(MethodImpl.java:97)
    at com.jetbrains.php.lang.psi.elements.impl.FunctionImpl.getLocalType(FunctionImpl.java:211)
    at com.jetbrains.php.lang.psi.stubs.PhpMethodElementType.createStub(PhpMethodElementType.java:30)
    at com.jetbrains.php.lang.psi.stubs.PhpMethodElementType.createStub(PhpMethodElementType.java:20)
    at com.intellij.psi.stubs.DefaultStubBuilder.buildStubTreeFor(DefaultStubBuilder.java:59)
    at com.intellij.psi.stubs.DefaultStubBuilder.buildStubTree(DefaultStubBuilder.java:37)
    at com.intellij.psi.impl.source.PsiFileImpl.calcStubTree(PsiFileImpl.java:966)
    at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:45)
    at com.intellij.psi.stubs.StubIndexImpl$1.perform(StubIndexImpl.java:229)
    at com.intellij.psi.stubs.StubIndexImpl$1.perform(StubIndexImpl.java:221)
    at com.intellij.util.indexing.ValueContainer.forEach(ValueContainer.java:60)
    at com.intellij.psi.stubs.StubIndexImpl.process(StubIndexImpl.java:221)
    at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:194)
    at com.jetbrains.php.PhpIndexImpl.getClassesByNameInScope(PhpIndexImpl.java:257)
    at com.jetbrains.php.PhpIndexImpl.getClassesByName(PhpIndexImpl.java:251)
    at com.jetbrains.php.PhpIndexImpl.getClassesByFQN(PhpIndexImpl.java:466)
    at com.jetbrains.php.PhpIndexImpl.getAnyByFQN(PhpIndexImpl.java:511)
    at com.jetbrains.php.lang.psi.elements.impl.MemberReferenceImpl.resolveGlobal(MemberReferenceImpl.java:136)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReferenceImpl$1.resolve(PhpReferenceImpl.java:106)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReferenceImpl$1.resolve(PhpReferenceImpl.java:103)
    at com.intellij.psi.impl.source.resolve.ResolveCache$2.compute(ResolveCache.java:107)
    at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:110)
    at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:104)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:132)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:124)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReferenceImpl.multiResolve(PhpReferenceImpl.java:98)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReferenceImpl.resolve(PhpReferenceImpl.java:85)
    at com.jetbrains.php.lang.inspections.PhpDeprecationInspection.check(PhpDeprecationInspection.java:59)
    at com.jetbrains.php.lang.inspections.PhpDeprecationInspection.access$000(PhpDeprecationInspection.java:16)
    at com.jetbrains.php.lang.inspections.PhpDeprecationInspection$1.visitPhpMethodReference(PhpDeprecationInspection.java:27)
    at com.jetbrains.php.lang.psi.elements.impl.MethodReferenceImpl.accept(MethodReferenceImpl.java:31)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.acceptElements(LocalInspectionsPass.java:412)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$300(LocalInspectionsPass.java:78)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$4.process(LocalInspectionsPass.java:388)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$4.process(LocalInspectionsPass.java:382)
    at com.intellij.concurrency.JobLauncherImpl$2$1.run(JobLauncherImpl.java:115)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:226)
    at com.intellij.concurrency.JobLauncherImpl$2.process(JobLauncherImpl.java:113)
    at com.intellij.concurrency.JobLauncherImpl$1.run(JobLauncherImpl.java:54)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
    at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1182)
    at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:97)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)

java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    at java.lang.String.charAt(String.java:658)
    at nette.FieldFinder.lcfirst(FieldFinder.java:33)
    at nette.FieldFinder.findMagicFields(FieldFinder.java:24)
    at nette.NetteObjectFieldsTypeProvider.getType(NetteObjectFieldsTypeProvider.java:20)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:46)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:41)
    at com.intellij.openapi.util.Computable$NotNullCachedComputable.compute(Computable.java:52)
    at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:110)
    at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo.getType(PhpTypeInfo.java:41)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getInferredType(PhpTypeInferenceUtil.java:208)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getType(PhpTypeInferenceUtil.java:198)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getType(PhpTypeInferenceUtil.java:189)
    at com.jetbrains.php.lang.psi.elements.impl.FieldReferenceImpl.getType(FieldReferenceImpl.java:116)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeAnalyserVisitor.visitPhpArrayAccessExpression(PhpTypeAnalyserVisitor.java:218)
    at com.jetbrains.php.lang.psi.elements.impl.ArrayAccessExpressionImpl.accept(ArrayAccessExpressionImpl.java:64)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:51)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:41)
    at com.intellij.openapi.util.Computable$NotNullCachedComputable.compute(Computable.java:52)
    at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:110)
    at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo.getType(PhpTypeInfo.java:41)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getInferredType(PhpTypeInferenceUtil.java:208)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getType(PhpTypeInferenceUtil.java:198)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getType(PhpTypeInferenceUtil.java:189)
    at com.jetbrains.php.lang.psi.elements.impl.ArrayAccessExpressionImpl.getType(ArrayAccessExpressionImpl.java:41)
    at com.jetbrains.php.lang.psi.resolve.types.PhpType.add(PhpType.java:152)
    at com.jetbrains.php.lang.psi.elements.impl.FunctionImpl$3.visitPhpReturn(FunctionImpl.java:225)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReturnImpl.accept(PhpReturnImpl.java:19)
    at com.jetbrains.php.lang.psi.visitors.PhpRecursiveElementVisitor.visitElement(PhpRecursiveElementVisitor.java:29)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpElement(PhpElementVisitor.java:20)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpIf(PhpElementVisitor.java:87)
    at com.jetbrains.php.lang.psi.elements.impl.IfImpl.accept(IfImpl.java:43)
    at com.jetbrains.php.lang.psi.visitors.PhpRecursiveElementVisitor.visitElement(PhpRecursiveElementVisitor.java:29)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpElement(PhpElementVisitor.java:20)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpGroupStatement(PhpElementVisitor.java:200)
    at com.jetbrains.php.lang.psi.elements.impl.GroupStatementImpl.accept(GroupStatementImpl.java:60)
    at com.jetbrains.php.lang.psi.visitors.PhpRecursiveElementVisitor.visitElement(PhpRecursiveElementVisitor.java:29)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpElement(PhpElementVisitor.java:20)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpMethod(PhpElementVisitor.java:28)
    at com.jetbrains.php.lang.psi.elements.impl.MethodImpl.accept(MethodImpl.java:97)
    at com.jetbrains.php.lang.psi.elements.impl.FunctionImpl.getLocalType(FunctionImpl.java:211)
    at com.jetbrains.php.lang.psi.stubs.PhpMethodElementType.createStub(PhpMethodElementType.java:30)
    at com.jetbrains.php.lang.psi.stubs.PhpMethodElementType.createStub(PhpMethodElementType.java:20)
    at com.intellij.psi.stubs.DefaultStubBuilder.buildStubTreeFor(DefaultStubBuilder.java:59)
    at com.intellij.psi.stubs.DefaultStubBuilder.buildStubTree(DefaultStubBuilder.java:37)
    at com.intellij.psi.impl.source.PsiFileImpl.calcStubTree(PsiFileImpl.java:966)
    at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:45)
    at com.intellij.psi.stubs.StubIndexImpl$1.perform(StubIndexImpl.java:229)
    at com.intellij.psi.stubs.StubIndexImpl$1.perform(StubIndexImpl.java:221)
    at com.intellij.util.indexing.ValueContainer.forEach(ValueContainer.java:60)
    at com.intellij.psi.stubs.StubIndexImpl.process(StubIndexImpl.java:221)
    at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:194)
    at com.jetbrains.php.PhpIndexImpl.getClassesByNameInScope(PhpIndexImpl.java:257)
    at com.jetbrains.php.PhpIndexImpl.getClassesByName(PhpIndexImpl.java:251)
    at com.jetbrains.php.PhpIndexImpl.getClassesByFQN(PhpIndexImpl.java:466)
    at com.jetbrains.php.PhpIndexImpl.getAnyByFQN(PhpIndexImpl.java:511)
    at com.jetbrains.php.lang.psi.elements.impl.MemberReferenceImpl.resolveGlobal(MemberReferenceImpl.java:136)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReferenceImpl$1.resolve(PhpReferenceImpl.java:106)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReferenceImpl$1.resolve(PhpReferenceImpl.java:103)
    at com.intellij.psi.impl.source.resolve.ResolveCache$2.compute(ResolveCache.java:107)
    at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:110)
    at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:104)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:132)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:124)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReferenceImpl.multiResolve(PhpReferenceImpl.java:98)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReferenceImpl.resolve(PhpReferenceImpl.java:85)
    at com.jetbrains.php.lang.inspections.PhpDeprecationInspection.check(PhpDeprecationInspection.java:59)
    at com.jetbrains.php.lang.inspections.PhpDeprecationInspection.access$000(PhpDeprecationInspection.java:16)
    at com.jetbrains.php.lang.inspections.PhpDeprecationInspection$1.visitPhpMethodReference(PhpDeprecationInspection.java:27)
    at com.jetbrains.php.lang.psi.elements.impl.MethodReferenceImpl.accept(MethodReferenceImpl.java:31)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.acceptElements(LocalInspectionsPass.java:412)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$300(LocalInspectionsPass.java:78)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$4.process(LocalInspectionsPass.java:388)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$4.process(LocalInspectionsPass.java:382)
    at com.intellij.concurrency.JobLauncherImpl$2$1.run(JobLauncherImpl.java:115)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:226)
    at com.intellij.concurrency.JobLauncherImpl$2.process(JobLauncherImpl.java:113)
    at com.intellij.concurrency.JobLauncherImpl$1.run(JobLauncherImpl.java:54)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
    at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1182)
    at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:97)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)

java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    at java.lang.String.charAt(String.java:658)
    at nette.FieldFinder.lcfirst(FieldFinder.java:33)
    at nette.FieldFinder.findMagicFields(FieldFinder.java:24)
    at nette.NetteObjectFieldsTypeProvider.getType(NetteObjectFieldsTypeProvider.java:20)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:46)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:41)
    at com.intellij.openapi.util.Computable$NotNullCachedComputable.compute(Computable.java:52)
    at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:110)
    at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo.getType(PhpTypeInfo.java:41)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getInferredType(PhpTypeInferenceUtil.java:208)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getType(PhpTypeInferenceUtil.java:198)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getType(PhpTypeInferenceUtil.java:189)
    at com.jetbrains.php.lang.psi.elements.impl.FieldReferenceImpl.getType(FieldReferenceImpl.java:116)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeAnalyserVisitor.visitPhpArrayAccessExpression(PhpTypeAnalyserVisitor.java:218)
    at com.jetbrains.php.lang.psi.elements.impl.ArrayAccessExpressionImpl.accept(ArrayAccessExpressionImpl.java:64)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:51)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo$1.internalCompute(PhpTypeInfo.java:41)
    at com.intellij.openapi.util.Computable$NotNullCachedComputable.compute(Computable.java:52)
    at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:110)
    at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:68)
    at com.jetbrains.php.lang.psi.resolve.types.PhpTypeInfo.getType(PhpTypeInfo.java:41)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getInferredType(PhpTypeInferenceUtil.java:208)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getType(PhpTypeInferenceUtil.java:198)
    at com.jetbrains.php.codeInsight.typeInference.PhpTypeInferenceUtil.getType(PhpTypeInferenceUtil.java:189)
    at com.jetbrains.php.lang.psi.elements.impl.ArrayAccessExpressionImpl.getType(ArrayAccessExpressionImpl.java:41)
    at com.jetbrains.php.lang.psi.resolve.types.PhpType.add(PhpType.java:152)
    at com.jetbrains.php.lang.psi.elements.impl.FunctionImpl$3.visitPhpReturn(FunctionImpl.java:225)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReturnImpl.accept(PhpReturnImpl.java:19)
    at com.jetbrains.php.lang.psi.visitors.PhpRecursiveElementVisitor.visitElement(PhpRecursiveElementVisitor.java:29)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpElement(PhpElementVisitor.java:20)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpIf(PhpElementVisitor.java:87)
    at com.jetbrains.php.lang.psi.elements.impl.IfImpl.accept(IfImpl.java:43)
    at com.jetbrains.php.lang.psi.visitors.PhpRecursiveElementVisitor.visitElement(PhpRecursiveElementVisitor.java:29)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpElement(PhpElementVisitor.java:20)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpGroupStatement(PhpElementVisitor.java:200)
    at com.jetbrains.php.lang.psi.elements.impl.GroupStatementImpl.accept(GroupStatementImpl.java:60)
    at com.jetbrains.php.lang.psi.visitors.PhpRecursiveElementVisitor.visitElement(PhpRecursiveElementVisitor.java:29)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpElement(PhpElementVisitor.java:20)
    at com.jetbrains.php.lang.psi.visitors.PhpElementVisitor.visitPhpMethod(PhpElementVisitor.java:28)
    at com.jetbrains.php.lang.psi.elements.impl.MethodImpl.accept(MethodImpl.java:97)
    at com.jetbrains.php.lang.psi.elements.impl.FunctionImpl.getLocalType(FunctionImpl.java:211)
    at com.jetbrains.php.lang.psi.stubs.PhpMethodElementType.createStub(PhpMethodElementType.java:30)
    at com.jetbrains.php.lang.psi.stubs.PhpMethodElementType.createStub(PhpMethodElementType.java:20)
    at com.intellij.psi.stubs.DefaultStubBuilder.buildStubTreeFor(DefaultStubBuilder.java:59)
    at com.intellij.psi.stubs.DefaultStubBuilder.buildStubTree(DefaultStubBuilder.java:37)
    at com.intellij.psi.impl.source.PsiFileImpl.calcStubTree(PsiFileImpl.java:966)
    at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:45)
    at com.intellij.psi.stubs.StubIndexImpl$1.perform(StubIndexImpl.java:229)
    at com.intellij.psi.stubs.StubIndexImpl$1.perform(StubIndexImpl.java:221)
    at com.intellij.util.indexing.ValueContainer.forEach(ValueContainer.java:60)
    at com.intellij.psi.stubs.StubIndexImpl.process(StubIndexImpl.java:221)
    at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:194)
    at com.jetbrains.php.PhpIndexImpl.getClassesByNameInScope(PhpIndexImpl.java:257)
    at com.jetbrains.php.PhpIndexImpl.getClassesByName(PhpIndexImpl.java:251)
    at com.jetbrains.php.PhpIndexImpl.getClassesByFQN(PhpIndexImpl.java:466)
    at com.jetbrains.php.PhpIndexImpl.getAnyByFQN(PhpIndexImpl.java:511)
    at com.jetbrains.php.lang.psi.elements.impl.MemberReferenceImpl.resolveGlobal(MemberReferenceImpl.java:136)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReferenceImpl$1.resolve(PhpReferenceImpl.java:106)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReferenceImpl$1.resolve(PhpReferenceImpl.java:103)
    at com.intellij.psi.impl.source.resolve.ResolveCache$2.compute(ResolveCache.java:107)
    at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:110)
    at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:104)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:132)
    at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:124)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReferenceImpl.multiResolve(PhpReferenceImpl.java:98)
    at com.jetbrains.php.lang.psi.elements.impl.PhpReferenceImpl.resolve(PhpReferenceImpl.java:85)
    at com.jetbrains.php.lang.inspections.PhpDeprecationInspection.check(PhpDeprecationInspection.java:59)
    at com.jetbrains.php.lang.inspections.PhpDeprecationInspection.access$000(PhpDeprecationInspection.java:16)
    at com.jetbrains.php.lang.inspections.PhpDeprecationInspection$1.visitPhpMethodReference(PhpDeprecationInspection.java:27)
    at com.jetbrains.php.lang.psi.elements.impl.MethodReferenceImpl.accept(MethodReferenceImpl.java:31)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.acceptElements(LocalInspectionsPass.java:412)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.access$300(LocalInspectionsPass.java:78)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$4.process(LocalInspectionsPass.java:388)
    at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass$4.process(LocalInspectionsPass.java:382)
    at com.intellij.concurrency.JobLauncherImpl$2$1.run(JobLauncherImpl.java:115)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:226)
    at com.intellij.concurrency.JobLauncherImpl$2.process(JobLauncherImpl.java:113)
    at com.intellij.concurrency.JobLauncherImpl$1.run(JobLauncherImpl.java:54)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
    at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1182)
    at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:97)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
juzna commented 11 years ago

Sample code on which it fails?

Majkl578 commented 11 years ago

I've a generic fix for this. But yes, example would be useful.

hrach commented 11 years ago

Unfortunatelly not. I just noticed this after some time with many opened files. But I will stick with this version a try it localize. :)

Majkl578 commented 11 years ago

Should be fixed in latest build.

hrach commented 11 years ago

Yes, I understood that, as I say, I will stick with this to provide real testcase for regression testing ;)