Code autocomplition error

Hey, guys!

I was in the middle of defining python class, actually I was defining a method and when I tried to autocomplete "self" as a parameter of this method the following error occured:

-------------------------------------------

com.jetbrains.python.psi.impl.PyStringLiteralExpressionImpl cannot be cast to com.jetbrains.python.psi.PyReferenceExpression: com.jetbrains.python.psi.impl.PyStringLiteralExpressionImpl cannot be cast to com.jetbrains.python.psi.PyReferenceExpression

java.lang.ClassCastException: com.jetbrains.python.psi.impl.PyStringLiteralExpressionImpl cannot be cast to com.jetbrains.python.psi.PyReferenceExpression

at com.jetbrains.appengine.util.PythonUtil.getConstructorClass(PythonUtil.java:47)

at com.jetbrains.appengine.model.ModelAttributeCompletionContributor$1.addCompletions(ModelAttributeCompletionContributor.java:30)

at com.intellij.codeInsight.completion.CompletionProvider$1.run(CompletionProvider.java:42)

at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:695)

at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:40)

at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:156)

at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:86)

at com.intellij.codeInsight.completion.CompletionService.performCompletion(CompletionService.java:141)

at com.intellij.codeInsight.completion.CodeCompletionHandlerBase$4$1.run(CodeCompletionHandlerBase.java:208)

at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:197)

at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:222)

at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:188)

at com.intellij.codeInsight.completion.CodeCompletionHandlerBase$4.run(CodeCompletionHandlerBase.java:204)

at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:329)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:619)

at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:125)

-------------------------------------------

P.S.

Not sure if I post this in the right place, so correct me if I'm wrong. Thanks!

Alexander

1 comment
Comment actions Permalink

Hi Alexander,

Thanks for reporting this, I've submitted an issue: http://youtrack.jetbrains.net/issue/PY-768

Feel free to submit it next time by yourself at: http://youtrack.jetbrains.net/issues/PY

Regards,

Oleg

0

Please sign in to leave a comment.