nrepl / piggieback

nREPL support for ClojureScript REPLs
480 stars 48 forks source link

Not respecting eval message :flie when evaluating a form #126

Open jpmonettas opened 1 year ago

jpmonettas commented 1 year ago

Currently if you evaluate any ClojureScript form via piggieback the :file field in the message will be ignored, and "cljs-repl" will be used as a file. When defining a var, this will affect the var metadata :file field which is used for example for finding sources via clojure.repl/source.

I think when :file is present (when using cider to eval for example) it should be used instead of "cljs-repl".

One way of testing this with Cider is :