clr

2024-05-12T05:35:58.825169Z

Hi, I am trying to get the clr version of clojure.core.async to load. But for some reason it fails on importing the clr analyzer. It fails with "Syntax error macroexpanding at (clojure.tools.analyzer.clr.clj:460:4)."

2024-05-12T05:36:39.018209Z

And as explaination of the failure that: "Unable to cast object of type 'clojure.lang.PersistentVector' to type 'clojure.lang.ISeq'."

2024-05-12T05:38:48.024479Z

I am using clojure 1.11 and the analyzer version 1.2.4

2024-05-12T05:42:01.402559Z

Any ideas?

2024-05-15T16:07:46.825139Z

More or less clean environment (I start prepl and interact through prepl) and then a (require 'clojure....analyzer.clr).

2024-05-15T16:08:43.743149Z

(First tries where to require core aync, but the error happens also by only requiring the analyzer and nothing else...)

dmiller 2024-05-15T16:21:17.535749Z

this is done in the scope of a C# console project?

2024-05-15T17:06:14.591339Z

No windows app. I am trying now with separat econsole app, but I am stuck on errors xxx.clj.dll not found. While nuget installs xxx.dll. So I am not even getting so far with the console app.

2024-05-15T17:09:17.461309Z

Btw, other nuget clojure pacakages do load fine (like core.alpha.spec and priority-map)

2024-05-15T17:39:41.317359Z

And .net is framework 4.7.2

jamesd3142 2024-05-13T10:23:26.080859Z

Hi! Where did you get your copy of tools analyzer? Are you working with a git checkout or from packaged clj files (nuget / maven / clojars) ?

2024-05-16T07:41:32.907029Z

I tried to make it reproducable. And was able to do so with: (a) download Clojure-1.11 zip for .net 4.62 (b) download the analyzer and it's dependencies as jar files from maven (c) unpack the jars and copy by hand the clojure directory to the unzip of (a). Start Main and do require of ananlyzer.clr. Get the error

2024-05-14T08:59:08.245219Z

I got it from nuget (it is an embedded clojure, so just using visual studio to add the prerequisite)

dmiller 2024-05-14T16:05:39.975259Z

I'll be able to take a look later today.

dmiller 2024-05-15T02:28:49.934249Z

Can you tell me what invocation caused the error?