Cool. I'm just seeing this now. I actually spent some time a while back getting a very simple nleiningen working in ClojureCLR. I had nuget downloads working and also the ability to AOT compile namespaces and merge them into a single DLL. It's not fully ready for prime time yet though, in part because it depends on some custom modifications to the ClojureCLR compiler. In the long run, I'd like to work together on getting a full lein clr implementation working. I'd love to discuss further if you have time.
tools.logging and pinvoke (https://github.com/aaronc/ClojureClrEx) - logging is mostly ported but with only one backend working, pinvoke/dllimport works great, but no docsa nice interface to WPF (https://github.com/aaronc/ClojureWpf) - pretty stable, but again no docs yetnrepl (https://github.com/aaronc/tools.nrepl/tree/clr) - needs quite a bit more work
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
I had a quick look into nleiningen. I'm not able to bootstrap the build atm. Can't build the ClojureClrEx dep. What I basically did was:git clone https://github.com/aaronc/nleiningen.gitgit submodules initgit submodules updatenuget install Nuget.Core -o packages$env:CLOJURE_LOAD_PATH="./src;./ClojureClrEx/src/;./ClojureClrEx"created an init.clj with content and changed nleiningen.core/main to nleiningen.core/-maininit.clj:(assembly-load-from "packages/Nuget.Core.2.2.0/lib/net40-Client/NuGet.Core.dll")nleiningen.signing is missing from the sources. Just commented it out from nleiningen/core.clj
afterwards executed:Clojure.Main.exe -i .\init.clj -m nleiningen.core replMono.Cecil.dllLoaded #<RuntimeAssembly Mono.Cecil, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756>Mono.Cecil.Mdb.dllLoaded #<RuntimeAssembly Mono.Cecil.Mdb, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756>Mono.Cecil.Pdb.dllLoaded #<RuntimeAssembly Mono.Cecil.Pdb, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756>Mono.Cecil.Rocks.dllLoaded #<RuntimeAssembly Mono.Cecil.Rocks, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756>Trying to resolve ClojureClrExproject.clj not foundMono.Cecil.dllLoaded #<RuntimeAssembly Mono.Cecil, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756>Mono.Cecil.Mdb.dllLoaded #<RuntimeAssembly Mono.Cecil.Mdb, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756>Mono.Cecil.Pdb.dllLoaded #<RuntimeAssembly Mono.Cecil.Pdb, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756>Mono.Cecil.Rocks.dllLoaded #<RuntimeAssembly Mono.Cecil.Rocks, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756>Compile path: D:\Projects\Playground\clojure\test\clr\clode_org\nleiningen\binError loading ClojureClrEx : #<NullReferenceException System.NullReferenceException: Object reference not set to an instance of an object.at clojure.lang.CljCompiler.Ast.GenContext..ctor(String sourceName, String assyName, String extension, String directory, Boolean createDynInitHelper) in D:\work\clojure-clr-1.4.1-fix\Clojure\Clojure\CljCompiler\Ast\GenContext.cs:line 105at clojure.lang.CljCompiler.Ast.GenContext.CreateWithExternalAssembly(String sourceName, String assyName, String extension, Boolean createDynInitHelper) in D:\work\clojure-clr-1.4.1-fix\Clojure\Clojure\CljCompiler\Ast\GenContext.cs:line 86at clojure.lang.CljCompiler.Ast.GenContext.CreateWithExternalAssembly(String assyName, String extension, Boolean createDynInitHelper) in D:\work\clojure-clr-1.4.1-fix\Clojure\Clojure\CljCompiler\Ast\GenContext.cs:line 91at nleiningen/core$compile_project__1078.doInvoke(Object ) in eval:line 233at clojure.lang.RestFn.invoke() in D:\work\clojure-clr-1.4.1-fix\Clojure\Clojure\Lib\RestFn.cs:line 456at nleiningen/core$load_sub_project$fn__788__792.invoke() in eval:line 152at nleiningen/core$load_sub_project__795.invoke(Object ) in eval:line 144at nleiningen/core$bootstrap_project$fn__826__830.invoke() in eval:line 171>Clojure 1.4.1uncommented the local-dependencies in the project file, because ClojureClrEx doesn't have a project.clj, only a csproj. Therefore I added the ClojureClrEx to the load pathand now the repl works. but compile fails withCompile path: D:\Projects\Playground\clojure\test\clr\clode_org\nleiningen\binUnhandled Exception: System.MissingMethodException: Cannot find member Compile matching argsat CallSite.Target(Closure , CallSite , Object , Object , Object , Object , Object , Object )at CallSite.Target(Closure , CallSite , Object , Object , Object , Object , Object , Object )at nleiningen/core$compile_project$fn__959__963.__interop_Compile965(Object , Object __temp_1, Object __temp_2, Object __temp_3, Object __temp_4, Object __temp_5)at nleiningen/core$compile_project$fn__959__963.invoke() in eval:line 239at nleiningen/core$compile_project__1078.doInvoke(Object ) in eval:line 238at clojure.lang.RestFn.invoke() in D:\work\clojure-clr-1.4.1-fix\Clojure\Clojure\Lib\RestFn.cs:line 456at nleiningen/core$_main__1146.doInvoke(Object ) in eval:line 393at clojure.lang.RestFn.invoke(Object arg1) in D:\work\clojure-clr-1.4.1-fix\Clojure\Clojure\Lib\RestFn.cs:line 468at clojure.lang.Var.invoke(Object arg1) in D:\work\clojure-clr-1.4.1-fix\Clojure\Clojure\Lib\Var.cs:line 741at clojure.lang.AFn.ApplyToHelper(IFn fn, ISeq argList) in D:\work\clojure-clr-1.4.1-fix\Clojure\Clojure\Lib\AFn.cs:line 191at clojure.lang.Var.applyTo(ISeq arglist) in D:\work\clojure-clr-1.4.1-fix\Clojure\Clojure\Lib\Var.cs:line 874at clojure/core$apply__12458.invoke(Object , Object ) in core.clj:line 601at clojure/main$main_opt__263.invoke(Object , Object ) in eval:line 343at clojure/main$main__338.doInvoke(Object ) in eval:line 446at clojure.lang.RestFn.invoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) in D:\work\clojure-clr-1.4.1-fix\Clojure\Clojure\Lib\RestFn.cs:line 586at clojure.lang.Var.invoke(Object arg1, Object arg2, Object arg3, Object arg4, Object arg5) in D:\work\clojure-clr-1.4.1-fix\Clojure\Clojure\Lib\Var.cs:line 761at clojure.lang.AFn.ApplyToHelper(IFn fn, ISeq argList) in D:\work\clojure-clr-1.4.1-fix\Clojure\Clojure\Lib\AFn.cs:line 208at clojure.lang.Var.applyTo(ISeq arglist) in D:\work\clojure-clr-1.4.1-fix\Clojure\Clojure\Lib\Var.cs:line 874at Clojure.CljMain.Main(String[] args) in D:\work\clojure-clr-1.4.1-fix\Clojure\Clojure.Main\Main.cs:line 34and I didn't figure out yet what the issue is.
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "Clojure" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure/_7tqNWmQuGU/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
2. I assume, you created your a nuget and added it to a local repo. I don't have one and don't know what version you are using.3. I deleted the Clojure and Nuget.Core dependency. Using Stable Nuget.Core Version 2.2.0 but thats not an issue.
--