mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fixes after review
This commit is contained in:
@@ -132,11 +132,11 @@ class DebugConsoleStdIn(BaseStdIn):
|
||||
try:
|
||||
cmd = self.debugger.cmd_factory.make_input_requested_message()
|
||||
self.debugger.writer.add_command(cmd)
|
||||
return self.original_stdin.readline(*args, **kwargs)
|
||||
except Exception:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
return '\n'
|
||||
return self.original_stdin.readline(*args, **kwargs)
|
||||
|
||||
|
||||
class CodeFragment:
|
||||
|
||||
@@ -89,9 +89,7 @@ public class PythonDebugConsoleCommunication extends AbstractConsoleCommunicatio
|
||||
if (processInput != null) {
|
||||
try {
|
||||
final Charset defaultCharset = EncodingProjectManager.getInstance(myDebugProcess.getProject()).getDefaultCharset();
|
||||
String text = code.getText();
|
||||
// we save previous command text!!!
|
||||
processInput.write((text + "\n").getBytes(defaultCharset));
|
||||
processInput.write((code.getText() + "\n").getBytes(defaultCharset));
|
||||
processInput.flush();
|
||||
}
|
||||
catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user