nrepl

Mikko Harju 2022-10-06T12:24:19.881449Z

Hi! I embedded a repl with TTY-transport to my production app that I can access via VPN – if I typo something (for instance forget a closing paren) the connection cuts off and I must redo everything – could not find with a simple search how to handle that situation? 🙂

2022-10-06T17:36:01.706769Z

what do you mean the connection cuts off?

Mikko Harju 2022-10-07T08:03:12.879379Z

user=> ())

<disconnected>
On the server it crashes with:
2022-10-07T07:57:30.247 app[57874099] fra [info] ERROR:

2022-10-07T07:57:30.247 app[57874099] fra [info] java.lang.RuntimeException: EOF while reading

2022-10-07T07:57:30.247 app[57874099] fra [info] at clojure.lang.Util.runtimeException(Util.java:221)
....
2022-10-07T08:01:53.561 app[57874099] fra [info] ERROR:

2022-10-07T08:01:53.561 app[57874099] fra [info] java.lang.RuntimeException: Unmatched delimiter: )

2022-10-07T08:01:53.561 app[57874099] fra [info] at clojure.lang.Util.runtimeException(Util.java:221)

2022-10-07T08:01:53.561 app[57874099] fra [info] at clojure.lang.LispReader$UnmatchedDelimiterReader.invoke(LispReader.java:1373)
....
`