use of org.erlide.runtime.rpc.RpcException in project erlide_eclipse by erlang.
the class ErlideDebug method setVariableValue.
@SuppressWarnings("boxing")
public static String setVariableValue(final IOtpRpc backend, final String name, final String value, final int stackFrameNo, final OtpErlangPid meta) {
try {
final OtpErlangObject res = backend.call(ErlideDebug.ERLIDE_DEBUG, "set_variable_value", "ssix", name, value, stackFrameNo + 1, meta);
try {
final OtpBindings bind = OtpErlang.match("{eval_rsp, {'EXIT', Val}}", res);
if (bind == null) {
return null;
}
final String err = bind.getAsString("Val");
return err;
} catch (final OtpParserException e1) {
}
return null;
} catch (final RpcException e) {
ErlLogger.warn(e);
}
return "error";
}
use of org.erlide.runtime.rpc.RpcException in project erlide_eclipse by erlang.
the class ErlideReshd method start.
@Override
public OtpErlangPid start(final IOtpNodeProxy runtime) {
try {
final OtpErlangObject r = runtime.getOtpRpc().call("erlide_shell", "start", "p", runtime.getEventPid());
final OtpErlangPid server = (OtpErlangPid) BackendUtils.ok(r);
return server;
} catch (final RpcException e) {
return null;
}
}
Aggregations