clr

dangercoder 2023-05-12T20:02:59.952619Z

Why won't this work on .NET 7 on Linux, I thought it was possible to use .NET standard 2.1 from .NET 7? Could not locate clojure/tools/nrepl with extensions .cljr, .cljc, .cljr, .cljr.dll, .cljc.dll, or .clj.dll on load path. I'm starting it via: Clojure.Main -e '(require (quote user))'

dangercoder 2023-05-12T20:04:08.296949Z

assembly-load-file is successful: #object[RuntimeAssembly 0x3afa51b clojure.tools.nrepl, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null]

dangercoder 2023-05-12T20:04:55.949269Z

I installed nrepl via standard tooling: dotnet add package clojure.tools.nrepl --version 0.1.0-alpha1

dangercoder 2023-05-12T20:19:54.632509Z

Going to see if I failed to load nrepl deps^

dangercoder 2023-05-12T20:25:25.341519Z

(println (assembly-load-file (format "%s/.nuget/packages/clojure.tools.reader/1.3.7/lib/netstandard2.1/clojure.tools.reader.dll" home-path))) added this before loading the nrepl dll - no success.

dangercoder 2023-05-12T20:27:32.854089Z

(require 'clojure.tools.reader) works though

dangercoder 2023-05-16T14:00:28.615549Z

@dmiller where should I post this issue? TLDR ☝️ is: Neither core.async or tools.nrepl .NET standard 2.1 works with Linux and .NET 7 I was thinking about ask.clojure with a small repo so it’s easy to re-produce?

dmiller 2023-05-16T23:03:02.507939Z

a small repo would be great. post to ask. if you could post a link on here, that would help . i see things more here

1
dangercoder 2023-05-22T19:06:23.401879Z

https://ask.clojure.org/index.php/12954/clojure-clr-nrepl-net-standard-2-1-does-not-work-with-net-7 @dmiller got some time to create a reproducible example. Thanks!

dangercoder 2023-05-22T19:07:01.406939Z

(The link to the repo is in the post)

dmiller 2023-05-22T19:52:58.221189Z

I'll get on it.

dmiller 2023-05-22T22:07:59.362519Z

The docker build step fails on my every time (doing the tool install for Clojure.Main).

dmiller 2023-05-23T02:14:32.573279Z

Thank you for the very clear example. It was easy to track down. When I added support for .cljr files, I missed a location -- that's what is failing here. (Embedded resource in loaded assembly.) https://clojure.atlassian.net/jira/software/c/projects/CLJCLR/issues/CLJCLR-155