Is there a way to make Calva: Load/Evaluate Current File and its Requires/Dependencies
use a relative path for ClojureScript instead of an absolute path?
I'm connecting to a docker container repl for development and the app is running at /app
inside the container. Loading the current file in Clojure works as expected and evaluating things that have already been loaded in ClojureScript works as expected. Loading the current file in ClojureScript fails because it uses the host machine's full path. I get the following error:
; ------ REPL Error while processing ---------------------------------------------
; (cljs.core/load-file "/home/bmaddy/.../model/user.cljc")
; FileNotFoundException: /home/bmaddy/.../model/user.cljc (No such file or directory)
The following all work in the cljs repl as expected:
;; absolute path inside the container
(cljs.core/load-file "/app/src/.../model/user.cljc")
[]
;; relative path from project folder
(cljs.core/load-file "./src/.../model/user.cljc")
[]
(cljs.core/load-file "src/.../model/user.cljc")
[]
I see there are JACK_IN_PROJECT_ROOT_PATH
and calva.replConnectSequences.projectRootPath
settings, but they don't seem to affect this.
Some version info:
Calva version used: v2.0.474
clojure-lsp version used: 2024.08.05-18.16.00
VSCode Version: 1.93.1
OS: Linux