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

nrepl-server failed to evaluate multiple forms at once #603

Open
curist opened this issue Jan 10, 2025 · 0 comments
Open

nrepl-server failed to evaluate multiple forms at once #603

curist opened this issue Jan 10, 2025 · 0 comments

Comments

@curist
Copy link

curist commented Jan 10, 2025

version

Squint v0.8.132

problem

When sending multiple forms to squint nrepl-server, many of them are not evaluated.

repro

(ns eval)

(def a 1)
(println a)

(def b 2)
(println b)

everthing below (println a) doesn't get evaluated.

nrepl-server logs

request {:ns "eval", :file "/private/tmp/eval.cljs", :nrepl.middleware.print/print "cider.nrepl.pprint/pprint", :op "eval", :column 1, :line 1, :id "620a19ec-ef12-4c22-89c1-4958e979af3a", :code "(ns eval)\n\n(def a 1)\n(println a)\n\n(def b 2)\n(println b)", :nrepl.middleware.print/options {:associative 1, :length 500, :level 50, :right-margin 72}, :session "53c7fc54-e6e6-4172-bfb7-495005be64a3"}
:ns "eval"
About to eval:
(async function () {
var squint_core = await import('squint-cljs/core.js');
globalThis.eval = globalThis.eval || {};
globalThis.eval = globalThis.eval || {};
var a = 1;
globalThis.eval.a = a;
return squint_core.println(globalThis.eval.a);;
var b = 2;
globalThis.eval.b = b;
return squint_core.println(globalThis.eval.b);;
}) ()

expected behavior

all forms sent to nrepl get evaluated.

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