clr

bobcalco 2023-01-31T18:36:42.353969Z

@dmiller is there a way to influence the code search path for ClojureCLR? Must it always run in the root of a namespace or can it be told where code/binaries are while staying in the "current directory" (asking for a friend who is building a tool that will need other artifacts relative to current directory)?

dmiller 2023-01-31T19:22:47.452039Z

Try environment variable CLOJURE_LOAD_PATH. Like any windows path, semicolon-separated list of directory names.

dmiller 2023-02-06T16:45:06.077909Z

Master branch has fix. I look for all three versions, in order.

bobcalco 2023-01-31T19:59:05.072019Z

ahhhh. Will give that a spin. thanks.

bobcalco 2023-01-31T20:00:33.611049Z

if that works I can undo something I was undoing that made me take lots of showers. not that showers are bad. just that one only needs so many in a day.

😆 2
bobcalco 2023-02-02T15:37:57.010569Z

works great - I compute it in cljr on startup based on any current value in that env var plus what I find in deps.edn, set it for the current process, and it works.

bobcalco 2023-02-02T15:38:42.835429Z

I did find one minor thing - the user.clj file can't be user.cljr or user.cljc so it seems that use case slipped through the cracks. It is desirable to support extensions consistently in that case too.

bobcalco 2023-02-01T17:46:33.855369Z

@dmiller will that also affect normal clj if I make it system wide?

dmiller 2023-02-01T18:01:08.757949Z

Yes. Load is given just the filename, not the extensions. It checks the standard places, then CLOJURE_LOAD_PATH. (should be the other way around?) Looks for cljr, cljc, clj i that order in each directory it touches.

bobcalco 2023-02-06T02:18:03.543229Z

@dmiller ping about the my last comment above in case you missed it

dmiller 2023-02-06T02:19:39.423719Z

I did miss it. I'll create an issue for it and get it fixed soon.

👍 1
dmiller 2023-02-06T02:21:18.136519Z

https://clojure.atlassian.net/browse/CLJCLR-138