Skip to content

v0.7.0

Latest

Choose a tag to compare

@bhauman bhauman released this 03 Dec 16:44
· 1 commit to main since this release

Makes clojure_eval harder to wedge and easier to recover with: calls against an unresponsive nREPL now give up instead of hanging, and when no nREPL port is found the error lists the running servers and how to start this project's REPL. Also fixes an out-of-memory hang in clojure_edit_replace_sexp.

Added

  • Eval deadline: clojure_eval and clojure_inspect_project give up after their timeout plus a 60 s grace period and report that the REPL looks wedged. Before, an nREPL that accepted connections but never answered could block a call for hours. Contributed by @yqrashawn.
  • No-nREPL help: when clojure_eval resolves no port, the error lists the running nREPL servers (as list_nrepl_ports does) and the project's start command.
  • :start-repl-hint config key: a string or vector of strings naming how to start this project's REPL, shown in the no-nREPL error. See CONFIG.md.

Fixed

  • clojure_edit_replace_sexp with replace_all looped until OutOfMemoryError when the replacement still matched the pattern (the same form reflowed, or one that wraps the match) and the match was the last child of its parent (#167).
  • Tool calls that throw an Error now return an error result instead of leaving the request unanswered.
  • read_file on one- and two-line files (minified or one-line JSON/EDN) no longer cuts lines at 1000 characters; the limit is 20000 for such files (#58). Line truncation is no longer reported for lines that merely contain ....