mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Change variable method is async now.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user