Skip to content

Commit

Permalink
When the REPL is closed, the code completion (hippie) now woks
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentpetit committed Oct 21, 2012
1 parent 7115b8f commit e50d6df
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,14 @@
(defn send-message
"Send the command over the nrepl connection."
[connection command]
(-> (.client connection)
(repl/message {"op" "eval"
"code" command})
repl/response-values))
(try
(-> (.client connection)
(repl/message {"op" "eval"
"code" command})
repl/response-values)
(catch Exception e
(ccw.CCWPlugin/logError (str "exception while sending command " command " to connection " connection) e)
nil)))

(defn find-var-metadata
[current-namespace editor var]
Expand Down

0 comments on commit e50d6df

Please sign in to comment.