-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eval into self-started clojure CLI REPL fails #183
Comments
@seancorfield i'm unable to reproduce this. can you say what OS this is? I know you're a user of WSL and i'm wondering if its related to something funky here? can you also try ----CMD->
"(+ 1 1)\n"
<-RES----
"2\nbug=> " i suspect that the mechanism to separate out the new repl prompt from the result might be messing up. |
Per template:
It looks like some very simple forms will eval into a fresh REPL but it always fails eval'ing the
|
I tried a few more evals after that, plus one in the REPL window itself:
That last one ( |
ok i can reproduce. i'll start tracking down. In the meantime a workaround is to load the file |
That workaround did not work for me. It successfully loads the file and successfully switches to the Some experimentation suggests it is something to do with the docstrings. I can eval some forms, such as I can keep trying to narrow it down a bit on my side if you want? |
I worked my way up from the bottom of |
so to recap from discussions on slack, this seems to be a problem with |
Is there any sort of workaround for this? |
Expected behavior
Open a Clojure file, do
M-x inf-clojure
and provideclojure
as the startup command. You get a plain CLI REPL (and you can type into it just fine and it evaluates correctly). Switch back to the Clojure file, put the cursor after a form and eval itC-c C-e
. I expect the REPL to display the result of evaluating that form, and I expect to be able to type into the REPL as well, to evaluate new forms.Actual behavior
C-c C-e
causes the REPL to display a very long line of control g characters^G^G^G^G^G^G^G...
and the REPL then becomes unresponsive (you can still type into it, but nothing evaluates).Note: using a Socket REPL and
inf-clojure-connect
works correctly -- the problem only seems to happen for a self-start CLI REPL.Steps to reproduce the problem
See above.
Environment & Version information
inf-clojure version information
3.0.0
Lein/Boot version
n/a; using Clojure CLI 1.10.1.645 (installed via brew)
Emacs version
27.1 (from emacsforosx.com)
Operating system
macOS 10.12
The text was updated successfully, but these errors were encountered: