Closed gerdint closed 5 months ago
@gerdint we fixed a bug where Eval last sexpr was not using the same context of other evals, could you try again with the latest plugin version? Also, if doesn't work, could you provide a sample repo project? usually I use https://github.com/ericdallo/clojure-sample to test things, there is even a shadow-cljs branch there
So now it seems like the expression is sent to the REPL, and I get a result as a tooltip in the editor which is the intented behaviour I guess, good!
@ericdallo Though the REPL window has black text och very dark grey background, any idea on how to tweak this? In the screenshots the text is light gray, no idea why it's black in my case.
The sample project only contains CLJ files it seems. When I create a "Clojure Local" run config and try to eval statements all I get are empty results in the tooltip, but that would be another issue so closing this one.
(shadow.cljs.devtools.api/repl :app)
in REPL(js/alert "Foo")
-> worksExpected result: inline result of evaluation (or expression sent and evaluated in REPL) Actual result: Tooltip with error:
=> Execution error (NullPointerException) at nrepl.middleware.interruptible-eval/evaluate$fn$fn (interruptible_eval.clj:87). Cannot invoke "clojure.lang.Namespace.getMapping(clojure.lang.Symbol)" because the return value of "clojure.lang.Compiler.currentNS()" is null
If it's relevant I also had another remote Clojure REPL connected to my backend NREPL server.