Package clojure.tools.nrepl.Connection

Examples of clojure.tools.nrepl.Connection.Response.values()


  }

  @SuppressWarnings("unchecked")
    private Map<String, List<String>> getRemoteNsTree (SafeConnection repl) throws Exception {
      Response res = repl.send(10000, "op", "eval", "code", "(ccw.debug.serverrepl/namespaces-info)");
        List<Object> values = res.values();
        if (values.isEmpty()) {
          return null;
        } else {
          return (Map<String, List<String>>)values.get(0);
        }
View Full Code Here


//                System.out.println("compiling:'" + maybeLibName + "'");
                String compileLibCommand = CompileLibAction.compileLibCommand(maybeLibName);
//                System.out.println("Sending command: '" + compileLibCommand + "'");
              Response res = c.send("op", "eval", "code", compileLibCommand);
//              System.out.println("compilation response: '" + res + "'");
              if (res.values().isEmpty()) {
//                System.out.println(("oops, weird error when compiling '" + maybeLibName + "'"));
              } else {
                  Object result = res.values().get(0);
//                  System.out.println("ClojureVisitor: " + result);
                          if (result instanceof Map) {
View Full Code Here

              Response res = c.send("op", "eval", "code", compileLibCommand);
//              System.out.println("compilation response: '" + res + "'");
              if (res.values().isEmpty()) {
//                System.out.println(("oops, weird error when compiling '" + maybeLibName + "'"));
              } else {
                  Object result = res.values().get(0);
//                  System.out.println("ClojureVisitor: " + result);
                          if (result instanceof Map) {
                            Map resultMap = (Map) result;
                              Collection<Map> response = (Collection<Map>)resultMap.get("response");
                              if (response != null) {
View Full Code Here

            String lib = editor.findDeclaringNamespace();
            REPLView replView = editor.getCorrespondingREPL();
            SafeConnection replConnection = replView.getSafeToolingConnection();
            Response compilationResult = replConnection.send(15000, "op", "eval", "code", CompileLibAction.compileLibCommand(lib));
            refreshCompilationResults();
            if (new Long(0).equals(((Map)compilationResult.values().get(0)).get("response-type"))) {
                runTests(lib, replConnection);
            } else {
                editor.setStatusLineErrorMessage(ClojureEditorMessages.Compilation_failed);
                setReplBackgroundColor(colorRegistry.get(FAILED_TESTS_COLOR_KEY));
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.