bhauman / rebel-readline

Terminal readline library for Clojure dialects
Eclipse Public License 1.0
684 stars 37 forks source link

Terminal Freezes on Error #197

Closed Outrovurt closed 5 years ago

Outrovurt commented 5 years ago

The rebel-readline terminal was working absolutely fine on a CLJS project I have been working on until a couple of days ago. Now what happens whenever I type something which results in an error (as opposed to a reader error) is that the error is reported, but then I can no longer get back to the terminal as it freezes. The only thing that does work is Ctrl-C which ends the whole session and I have to start the whole thing again.

Has anyone experienced anything like this, or have any idea how to diagnose or fix it?

Example:

`=> (assoc :a :b) Compile Warning line:1 column:1

Wrong number of args (2) passed to cljs.core/assoc

1 (assoc :a :b) ^---

object[Error Error: No protocol method IAssociative.-assoc defined for type cljs.core/Keyword: :a]

` And that's it: I can't do anything else at the terminal.

Outrovurt commented 5 years ago

Just found a similar post on

https://github.com/bhauman/figwheel-main/issues/161

and figured out a fix for it in the process.