You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think this is a Calva issue per se, but I'm not sure where in the stack the problem lies, so I'll start with an issue on Calva, and we can move to cider-nrepl, nrepl or Clojure Core as appropriate.
This is a continuation of #329 from two years back.
When I evaluate code in Calva, the line number is set correctly, but the filename has never been correct. I can re-create the isue with REPLs started with deps.edn and leiningen, and when starting the REPL on the terminal or with a Jack In command.
Here is an example.
; This file is /Users/marc/dev/marcomorain/advent-2021/src/core.clj; This is line 294, the `is` form is on line 295
(is (=01)) ; <- I eval this form
Note that the filename is NO_SOURCE_FILE, which is a special value from the Clojure compiler, maybe hereor here.
This is when the REPL is started with deps.edn. When I start the REPL with leiningen, the result is slightly different. The filename is set to something like form-init16875214884936877680.clj, while the line numbers are correct. This probably comes from here.
The REPL log shows that Calva is doing the right thing. The eval op has the :file parameter set correctly, but the result has the wrong filename.
I don't think this is a Calva issue per se, but I'm not sure where in the stack the problem lies, so I'll start with an issue on Calva, and we can move to
cider-nrepl
,nrepl
or Clojure Core as appropriate.This is a continuation of #329 from two years back.
When I evaluate code in Calva, the line number is set correctly, but the filename has never been correct. I can re-create the isue with REPLs started with
deps.edn
andleiningen
, and when starting the REPL on the terminal or with a Jack In command.Here is an example.
The result in the REPL window is this:
Note that the filename is
NO_SOURCE_FILE
, which is a special value from the Clojure compiler, maybe here or here.This is when the REPL is started with
deps.edn
. When I start the REPL withleiningen
, the result is slightly different. The filename is set to something likeform-init16875214884936877680.clj
, while the line numbers are correct. This probably comes from here.The REPL log shows that Calva is doing the right thing. The
eval
op has the:file
parameter set correctly, but the result has the wrong filename.The text was updated successfully, but these errors were encountered: