----------------------
- Plugin Name: EmmyLua
- Plugin Version: 1.3.4.157-IDEA202
- OS Name: Mac OS X
- Java Version: 11.0.8
- App Name: IDEA
- App Full Name: IntelliJ IDEA
- App Version name: IntelliJ IDEA
- Is EAP: false
- App Build: IU-202.6948.69
- App Version: 2020.2.1
- Last Action:
```
java.lang.ClassCastException: class com.tang.intellij.lua.ty.TyUnknown cannot be cast to class com.tang.intellij.lua.ty.ITyFunction (com.tang.intellij.lua.ty.TyUnknown and com.tang.intellij.lua.ty.ITyFunction are in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @70add6ae)
at com.tang.intellij.lua.editor.completion.LocalAndGlobalCompletionProvider.addCompletion(LocalAndGlobalCompletionProvider.kt:55)
at com.tang.intellij.lua.editor.completion.LocalAndGlobalCompletionProvider.access$addCompletion(LocalAndGlobalCompletionProvider.kt:33)
at com.tang.intellij.lua.editor.completion.LocalAndGlobalCompletionProvider$addCompletions$1.invoke(LocalAndGlobalCompletionProvider.kt:106)
at com.tang.intellij.lua.editor.completion.LocalAndGlobalCompletionProvider$addCompletions$1.invoke(LocalAndGlobalCompletionProvider.kt:33)
at com.tang.intellij.lua.psi.LuaDeclarationTree$walkUpLocal$1.invoke(LuaDeclarationTree.kt:71)
at com.tang.intellij.lua.psi.LuaDeclarationTree$walkUpLocal$1.invoke(LuaDeclarationTree.kt:26)
at com.tang.intellij.lua.psi.Scope.walkUp(LuaDeclarationTree.kt:173)
at com.tang.intellij.lua.psi.Scope.walkUp(LuaDeclarationTree.kt:179)
at com.tang.intellij.lua.psi.Scope.walkUp(LuaDeclarationTree.kt:179)
at com.tang.intellij.lua.psi.LuaDeclarationTreeBase$push$1.walkUp(LuaDeclarationTree.kt:225)
at com.tang.intellij.lua.psi.Scope.walkUp(LuaDeclarationTree.kt:179)
at com.tang.intellij.lua.psi.Scope.walkUp(LuaDeclarationTree.kt:179)
at com.tang.intellij.lua.psi.LuaDeclarationTreeBase.walkUp(LuaDeclarationTree.kt:289)
at com.tang.intellij.lua.psi.LuaDeclarationTree$DefaultImpls.walkUpLocal(LuaDeclarationTree.kt:69)
at com.tang.intellij.lua.psi.LuaDeclarationTreeBase.walkUpLocal(LuaDeclarationTree.kt:201)
at com.tang.intellij.lua.editor.completion.LocalAndGlobalCompletionProvider.addCompletions(LocalAndGlobalCompletionProvider.kt:99)
at com.tang.intellij.lua.editor.completion.LuaCompletionProvider.addCompletions(LuaCompletionProvider.kt:27)
at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:32)
at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:155)
at com.tang.intellij.lua.editor.completion.LuaCompletionContributor.fillCompletionVariants(LuaCompletionContributor.kt:80)
at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:76)
at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:154)
at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:146)
at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:142)
at com.intellij.codeInsight.template.impl.LiveTemplateCompletionContributor$1.addCompletions(LiveTemplateCompletionContributor.java:88)
at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:32)
at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:155)
at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:76)
at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:59)
at com.intellij.codeInsight.completion.CompletionService.performCompletion(CompletionService.java:132)
at com.intellij.codeInsight.completion.BaseCompletionService.performCompletion(BaseCompletionService.java:41)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.lambda$calculateItems$10(CompletionProgressIndicator.java:854)
at com.intellij.util.indexing.FileBasedIndex.lambda$ignoreDumbMode$0(FileBasedIndex.java:149)
at com.intellij.util.indexing.FileBasedIndexImpl.ignoreDumbMode(FileBasedIndexImpl.java:650)
at com.intellij.util.indexing.FileBasedIndex.ignoreDumbMode(FileBasedIndex.java:148)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.calculateItems(CompletionProgressIndicator.java:850)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.runContributors(CompletionProgressIndicator.java:838)
at com.intellij.codeInsight.completion.CodeCompletionHandlerBase.lambda$startContributorThread$6(CodeCompletionHandlerBase.java:352)
at com.intellij.codeInsight.completion.AsyncCompletion.lambda$tryReadOrCancel$5(CompletionThreading.java:172)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1110)
at com.intellij.codeInsight.completion.AsyncCompletion.tryReadOrCancel(CompletionThreading.java:170)
at com.intellij.codeInsight.completion.CodeCompletionHandlerBase.lambda$startContributorThread$7(CodeCompletionHandlerBase.java:344)
at com.intellij.codeInsight.completion.AsyncCompletion.lambda$startThread$0(CompletionThreading.java:95)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:629)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:581)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157)
at com.intellij.codeInsight.completion.AsyncCompletion.lambda$startThread$1(CompletionThreading.java:91)
at com.intellij.util.RunnableCallable.call(RunnableCallable.java:20)
at com.intellij.util.RunnableCallable.call(RunnableCallable.java:11)
at com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:268)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
at java.base/java.lang.Thread.run(Thread.java:834)
```