Change variable method is async now.

This commit is contained in:
Dmitry Trofimov
2014-11-13 21:39:51 +01:00
parent 06a510d456
commit d1b0d062b2
2 changed files with 5 additions and 2 deletions
@@ -532,6 +532,8 @@ public class PydevConsoleCommunication extends AbstractConsoleCommunication impl
public void changeVariable(PyDebugValue variable, String value) throws PyDebuggerException {
if (myClient != null) {
try {
// NOTE: The actual change is being scheduled in the exec_queue in main thread
// This method is async now
Object ret = myClient.execute(CHANGE_VARIABLE, new Object[]{variable.getEvaluationExpression(), value});
checkError(ret);
}
@@ -122,8 +122,9 @@ public class PythonConsoleTest extends PyEnvTestCase {
setValue("x", "2");
assertTrue("Variable has wrong value",
hasValue("x", "2"));
exec("print(x)");
waitForOutput("2");
}
});
}