Repository navigation
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_evalandclojure_inspect_projectgive 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_evalresolves no port, the error lists the running nREPL servers (aslist_nrepl_portsdoes) and the project's start command. :start-repl-hintconfig 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_sexpwithreplace_alllooped untilOutOfMemoryErrorwhen 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
Errornow return an error result instead of leaving the request unanswered. read_fileon 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....