Skip to content
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

No user prompt #74

Open
danielsz opened this issue May 11, 2021 · 0 comments
Open

No user prompt #74

danielsz opened this issue May 11, 2021 · 0 comments

Comments

@danielsz
Copy link

danielsz commented May 11, 2021

Hi,

I'm following the instructions to get a REPL going.

$ clojure -X clojure.core.server/start-server :name '"server"' :port 6666 :accept clojure.core.server/repl :server-daemon false

Then with the client.

$ unravel --debug 127.0.0.1 6666
[:connect 32578]

But no prompt ensues.

I tried to start the REPL server with alternate invocations, but to no avail.

$ clojure -J-Dclojure.server.repl="{:port 6666,:accept clojure.core.server/repl,:server-daemon false}"

Telnetting to the assigned port (6666) on localhost shows the expected prompt.

Furthermore, here is an output that can be useful to debug this issue.

$ rlwrap cat resources/unrepl/blob.clj - | nc localhost 6666
nil
user=> nil
user=> [:unrepl/hello {:session :session830, :actions {:start-aux (unrepl.repl$nPaqzHkkPFtk9aFtDagvVGkQNUU/start-aux :session830), :log-eval (clojure.core/some-> :session830 unrepl.repl$nPaqzHkkPFtk9aFtDagvVGkQNUU/session :log-eval), :log-all (clojure.core/some-> :session830 unrepl.repl$nPaqzHkkPFtk9aFtDagvVGkQNUU/session :log-all), :print-limits (clojure.core/let [bak__748__auto__ {:unrepl.print/nesting-depth clojure.core/*print-level*, :unrepl.print/coll-length clojure.core/*print-length*, :unrepl.print/string-length unrepl.core/*string-length*}] (clojure.core/some->> #unrepl/param :unrepl.print/string-length (set! unrepl.core/*string-length*)) (clojure.core/some->> #unrepl/param :unrepl.print/coll-length (set! clojure.core/*print-length*)) (clojure.core/some->> #unrepl/param :unrepl.print/nesting-depth (set! clojure.core/*print-level*)) bak__748__auto__), :set-source (unrepl.repl$nPaqzHkkPFtk9aFtDagvVGkQNUU/set-file-line-col :session830 #unrepl/param :unrepl/sourcename #unrepl/param :unrepl/line #unrepl/param :unrepl/column), :unrepl.jvm/start-side-loader (unrepl.repl$nPaqzHkkPFtk9aFtDagvVGkQNUU/attach-sideloader! :session830)}}]
[:prompt {:file "unrepl-reader-831", :line 1, :column 1, :offset 0, clojure.core/*ns* #unrepl/browsable [#unrepl/ns user #unrepl/... {:get (unrepl.repl$nPaqzHkkPFtk9aFtDagvVGkQNUU/fetch :G__832)}], clojure.core/*warn-on-reflection* false} 1]
[:prompt {:file "unrepl-reader-831", :line 2, :column 1, :offset 1, clojure.core/*ns* #unrepl/browsable [#unrepl/ns user #unrepl/... {:get (unrepl.repl$nPaqzHkkPFtk9aFtDagvVGkQNUU/fetch :G__833)}], clojure.core/*warn-on-reflection* false} 2]
(+ 33 3)
[:read {:file "unrepl-reader-831", :from [2 1], :to [2 9], :offset 1, :len 8} 2]
[:started-eval {:actions {:interrupt (unrepl.repl$nPaqzHkkPFtk9aFtDagvVGkQNUU/interrupt! :session830 2), :background (unrepl.repl$nPaqzHkkPFtk9aFtDagvVGkQNUU/background! :session830 2)}} 2]
[:eval 36 2]
[:prompt {:file "unrepl-reader-831", :line 2, :column 9, :offset 9, clojure.core/*ns* #unrepl/browsable [#unrepl/ns user #unrepl/... {:get (unrepl.repl$nPaqzHkkPFtk9aFtDagvVGkQNUU/fetch :G__836)}], clojure.core/*warn-on-reflection* false} 3]
[:prompt {:file "unrepl-reader-831", :line 3, :column 1, :offset 10, clojure.core/*ns* #unrepl/browsable [#unrepl/ns user #unrepl/... {:get (unrepl.repl$nPaqzHkkPFtk9aFtDagvVGkQNUU/fetch :G__837)}], clojure.core/*warn-on-reflection* false} 4]

Thank you in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant