Fork me on GitHub
#clr
<
2023-05-12
>
dangercoder20:05:59

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))'

dangercoder20:05:08

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

dangercoder20:05:55

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

dangercoder20:05:54

Going to see if I failed to load nrepl deps^

dangercoder20:05:25

(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.

dangercoder20:05:32

(require 'clojure.tools.reader) works though

dangercoder14:05:28

@U45FQSBF1 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?

dmiller23:05:02

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

gratitude-thank-you 2
dangercoder19:05:01

(The link to the repo is in the post)

dmiller19:05:58

I'll get on it.

dmiller22:05:59

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

dmiller02:05:32

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