From de5c809891117d3a49dc2fc8bb3ea431ea194f4e Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 8 Oct 2013 17:55:56 +0200 Subject: [PATCH 1/4] numpy no longer exists as a separate plugin --- python/build/python-plugin-dependencies.xml | 1 - 1 file changed, 1 deletion(-) diff --git a/python/build/python-plugin-dependencies.xml b/python/build/python-plugin-dependencies.xml index dc16aedd5e50..b0aa43dad084 100644 --- a/python/build/python-plugin-dependencies.xml +++ b/python/build/python-plugin-dependencies.xml @@ -10,6 +10,5 @@ com.jetbrains.plugins.webDeployment org.jetbrains.plugins.remote-run - From e181a0254b0a39e07b7ad1f48d3d89c5d2d21200 Mon Sep 17 00:00:00 2001 From: Dmitry Trofimov Date: Tue, 8 Oct 2013 18:22:53 +0200 Subject: [PATCH 2/4] Add browse history button. --- .../com/jetbrains/python/console/PydevConsoleRunner.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python/src/com/jetbrains/python/console/PydevConsoleRunner.java b/python/src/com/jetbrains/python/console/PydevConsoleRunner.java index 1c50c67b4768..b716ba8a958b 100644 --- a/python/src/com/jetbrains/python/console/PydevConsoleRunner.java +++ b/python/src/com/jetbrains/python/console/PydevConsoleRunner.java @@ -94,6 +94,7 @@ public class PydevConsoleRunner extends AbstractConsoleRunnerWithHistory myEnvironmentVariables; private String myCommandLine; private String[] myStatementsToExecute = ArrayUtil.EMPTY_STRING_ARRAY; + private ConsoleHistoryController myHistoryController; public static Key CONSOLE_KEY = new Key("PYDEV_CONSOLE_KEY"); @@ -144,6 +145,7 @@ public class PydevConsoleRunner extends AbstractConsoleRunnerWithHistory Date: Wed, 9 Oct 2013 01:21:12 +0200 Subject: [PATCH 3/4] index function throws ValueError not KeyError --- python/helpers/pydev/pydev_monkey.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/helpers/pydev/pydev_monkey.py b/python/helpers/pydev/pydev_monkey.py index 4770f10939eb..07c7e2b93929 100644 --- a/python/helpers/pydev/pydev_monkey.py +++ b/python/helpers/pydev/pydev_monkey.py @@ -29,7 +29,7 @@ def patch_args(args): if is_python(args[0]): try: indC = args.index('-c') - except KeyError: + except ValueError: indC = -1 if indC != -1: From 6ecf618431ececf1b01ffe4ade906694c2fd8915 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Tue, 8 Oct 2013 17:47:18 +0400 Subject: [PATCH 4/4] moved method to core --- .../codeInsight/completion/PythonCompletionWeigher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/src/com/jetbrains/python/codeInsight/completion/PythonCompletionWeigher.java b/python/src/com/jetbrains/python/codeInsight/completion/PythonCompletionWeigher.java index cb6f6404c4e3..f2ada070279a 100644 --- a/python/src/com/jetbrains/python/codeInsight/completion/PythonCompletionWeigher.java +++ b/python/src/com/jetbrains/python/codeInsight/completion/PythonCompletionWeigher.java @@ -4,7 +4,7 @@ import com.intellij.codeInsight.completion.CompletionLocation; import com.intellij.codeInsight.completion.CompletionWeigher; import com.intellij.codeInsight.lookup.LookupElement; import com.intellij.codeInsight.lookup.LookupElementPresentation; -import com.intellij.psi.util.PsiUtilBase; +import com.intellij.psi.util.PsiUtilCore; import com.jetbrains.python.PythonLanguage; import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; @@ -20,7 +20,7 @@ public class PythonCompletionWeigher extends CompletionWeigher { @Override public Comparable weigh(@NotNull final LookupElement element, @NotNull final CompletionLocation location) { - if (!PsiUtilBase.findLanguageFromElement(location.getCompletionParameters().getPosition()).isKindOf(PythonLanguage.getInstance())) { + if (!PsiUtilCore.findLanguageFromElement(location.getCompletionParameters().getPosition()).isKindOf(PythonLanguage.getInstance())) { return 0; }