pbyrne84 / DynamicReturnTypePlugin

135 stars 7 forks source link

Plugin causes StackOverflowException and freezes PhpStorm #76

Open MaXal opened 4 years ago

MaXal commented 4 years ago
java.lang.StackOverflowError
    at java.base/java.io.FileOutputStream.writeBytes(Native Method)
    at java.base/java.io.FileOutputStream.write(FileOutputStream.java:354)
    at java.base/java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:81)
    at java.base/java.io.BufferedOutputStream.write(BufferedOutputStream.java:122)
    at java.base/java.io.PrintStream.write(PrintStream.java:559)
    at java.base/sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:233)
    at java.base/sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:312)
    at java.base/sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:316)
    at java.base/sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:153)
    at java.base/java.io.OutputStreamWriter.flush(OutputStreamWriter.java:254)
    at org.apache.log4j.helpers.QuietWriter.flush(QuietWriter.java:59)
    at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:324)
    at org.apache.log4j.WriterAppender.append(WriterAppender.java:162)
    at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
    at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
    at org.apache.log4j.Category.callAppenders(Category.java:206)
    at org.apache.log4j.Category.forcedLog(Category.java:391)
    at org.apache.log4j.Category.warn(Category.java:1060)
    at com.intellij.openapi.diagnostic.Log4jBasedLogger.warn(Log4jBasedLogger.java:78)
    at com.intellij.idea.IdeaLogger.warn(IdeaLogger.java:82)
    at com.intellij.openapi.diagnostic.Logger.warn(Logger.java:136)
    at com.jetbrains.php.PhpIndexImpl.getClasses(PhpIndexImpl.java:711)
    at com.jetbrains.php.PhpIndexImpl.getBySignatureInternal(PhpIndexImpl.java:617)
    at com.jetbrains.php.PhpIndexImpl.getBySignature(PhpIndexImpl.java:508)
    at com.jetbrains.php.PhpIndexImpl.getBySignature(PhpIndexImpl.java:496)
    at com.ptby.dynamicreturntypeplugin.signature_processingv2.SignatureToCallConverter.getCallFromSignature(SignatureToCallConverter.kt:23)
    at com.ptby.dynamicreturntypeplugin.signature_processingv2.SingleCallSignatureProcessor.processMethod(SingleCallSignatureProcessor.kt:36)
    at com.ptby.dynamicreturntypeplugin.signature_processingv2.SingleCallSignatureProcessor.getParameterFormatterForSignature(SingleCallSignatureProcessor.kt:25)
    at com.ptby.dynamicreturntypeplugin.signature_processingv2.ChainedSignatureProcessor.parseSignature(ChainedSignatureProcessor.kt:27)
    at com.ptby.dynamicreturntypeplugin.signature_processingv2.GetBySignature.getBySignature(GetBySignature.kt:23)
    at com.ptby.dynamicreturntypeplugin.DynamicReturnTypeProvider.getBySignature(DynamicReturnTypeProvider.kt:115)
    at com.jetbrains.php.PhpIndexImpl.getBySignatureInternal(PhpIndexImpl.java:650)
    at com.jetbrains.php.PhpIndexImpl.getBySignature(PhpIndexImpl.java:508)
    at com.jetbrains.php.PhpIndexImpl.completeType(PhpIndexImpl.java:142)
    at com.jetbrains.php.PhpIndexImpl.getClasses(PhpIndexImpl.java:708)
    at com.jetbrains.php.PhpIndexImpl.getBySignatureInternal(PhpIndexImpl.java:617)
    at com.jetbrains.php.PhpIndexImpl.getBySignature(PhpIndexImpl.java:508)
    at com.jetbrains.php.PhpIndexImpl.getBySignature(PhpIndexImpl.java:496)
    at com.ptby.dynamicreturntypeplugin.signature_processingv2.SignatureToCallConverter.getCallFromSignature(SignatureToCallConverter.kt:23)
    at com.ptby.dynamicreturntypeplugin.signature_processingv2.SingleCallSignatureProcessor.processMethod(SingleCallSignatureProcessor.kt:36)
    at com.ptby.dynamicreturntypeplugin.signature_processingv2.SingleCallSignatureProcessor.getParameterFormatterForSignature(SingleCallSignatureProcessor.kt:25)
    at com.ptby.dynamicreturntypeplugin.signature_processingv2.ChainedSignatureProcessor.parseSignature(ChainedSignatureProcessor.kt:27)
    at com.ptby.dynamicreturntypeplugin.signature_processingv2.GetBySignature.getBySignature(GetBySignature.kt:23)
    at com.ptby.dynamicreturntypeplugin.DynamicReturnTypeProvider.getBySignature(DynamicReturnTypeProvider.kt:115)
    at com.jetbrains.php.PhpIndexImpl.getBySignatureInternal(PhpIndexImpl.java:650)
    at com.jetbrains.php.PhpIndexImpl.getBySignature(PhpIndexImpl.java:508)
    at com.jetbrains.php.PhpIndexImpl.completeType(PhpIndexImpl.java:142)
    at com.jetbrains.php.PhpIndexImpl.getClasses(PhpIndexImpl.java:708)
    at com.jetbrains.php.PhpIndexImpl.getBySignatureInternal(PhpIndexImpl.java:617)
    at com.jetbrains.php.PhpIndexImpl.getBySignature(PhpIndexImpl.java:508)
    at com.jetbrains.php.PhpIndexImpl.getBySignature(PhpIndexImpl.java:496)