Sanjay Malakar

- Total activity 44
- Last activity
- Member since
- Following 0 users
- Followed by 0 users
- Votes 5
- Subscriptions 11
-
Edited PsiInvalidElementAccessException because different providers
AnsweredCan anyone explain why this exception occurs? com.intellij.diagnostic.PluginException: Element: class com.jetbrains.python.psi.impl.PyReferenceExpressionImpl #Python because: different providers: ... -
Created Python control flow bug.
Planneddef foo(a, b): try: while a > 0 and b > 0: print(a % 10 + b % 10) a //= 10 b //= 10 finally: print("Hello") print("End")foo(5, 5) The print... -
Created PyCharm can't find caller of subclass's method that is not implemented in supeclass
Plannedclass A: def bar(self): pass def foo(self): self.bar() self.buzz()class B(A): def bar(self): pass def buzz(self): pass For method, B::bar it finds t... -
Edited Reading PSI from other than UI thread
AnsweredHello, As we know reading the PSI outside of a read lock throws the following exception. java.lang.Throwable: Read access is allowed from event dispatch thread or inside read-action only (see com.i... -
Edited Call hierarchy for Python
AnsweredI am using com.jetbrains.python.hierarchy.call.PyStaticCallHierarchyUtil#getCallees method to get the callees of a function. However, I'm getting some weird results. For this code snippet: class A:... -
Created Documentation on com.intellij.codeInsight.controlflow.Instruction's implemented classes.
AnsweredHello, I was exploring python's control flow provider (PyControlFlowProvier). Then I came across com.intellij.codeInsight.controlflow.Instruction interface. The elements of control flow are impleme... -
Created Python control flow granularity.
AnsweredHello, I was exploring PyControlFlowProvider class to generate control flow. The generated control flow seems too detailed for me. I would like to have a less detailed control flow (like without ... -
Edited Python expression evaluator.
AnsweredIs there any way I can evaluate an expression like this? size = 5str = "a" * size The str variable holds aaaaa. Is there any API that could give me the value str holds? I saw the PyAnyExpressionEva... -
Created RenameProcessor works on tests but not on project.
AnsweredI want to rename a parameter's name. This is my code: PyNamedParameter firstParameter = parameters[0].getAsNamed();RenameProcessor renameProcessor = new RenameProcessor(getVPG().getProject(), first... -
Created Python type inference not working.
AnsweredAfter loading a project, I'm visiting every PsiFile using `PsiRecursiveVisitor`.I would like to infer the type of expression / function return type.For even a simple python file containing a single...