aaronc / nleiningen

Build tool for ClojureCLR
12 stars 4 forks source link

How does one use nleiningen? #1

Open vgrigoriu opened 11 years ago

vgrigoriu commented 11 years ago

Hi,

I forked this project, cloned it and compiled Bootstrap.sln. How ever, I cannot figure out how to run the available tasks (repl, compile). Can you give me a hint on how to start?

Also, I couldn't find the nuget package Clojure version 1.5.0-ARC3 ( I used 1.4.0.5 instead). Is this a version you have published locally?

Thanks, Victor

aaronc commented 11 years ago

First of all, you can use my personal MyGet package stream to get that nuget package: https://www.myget.org/F/c117365d79124441bc375bd11aba45a3/

You'll need to add a Package Source in the NuGet settings from Visual Studio for this to work.

I'm using a few custom mods to get this to work. These are just temporary workarounds of course.

vgrigoriu commented 11 years ago

Thank you for the stream link. However, I'm still not able to run NLeiningen. I tried Clojure.Main.exe nleiningen\main.clj and got this stacktrace. I tried running Bootstrap.exe and nothing seemed to happen, regardless of the arguments I passed it. Any hint would be appreciated :)

aaronc commented 11 years ago

Hi Victor,

A couple of things:

1) Did you initialize submodules? 2) Try opening a command line in the main nlein dir, after building the Boostrap project and run script\repl.bat 3) Here's a sample repl session that builds nlein.exe itself:

c:\dev\nleiningen>Bootstrap\Bootstrap\bin\Debug\Bootstrap.exe Clojure 1.5.0-master-SNAPSHOT user=> (use '[nleiningen core main]) nil user=> (binding project-root "c:/dev/nleiningen") Unable to find package Mono.Cecil in repository: http://www.myget.org/F/clojure-clr/ Found package Mono.Cecil 0.9.5.4 in repository: http://packages.nuget.org/v1/FeedService.svc/ Unable to find package NuGet.Core in repository: http://www.myget.org/F/clojure-clr/ Found package NuGet.Core 2.5.0 in repository: http://packages.nuget.org/v1/FeedService.svc/ Loaded #<RuntimeAssembly Mono.Cecil, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756> Loaded #<RuntimeAssembly Mono.Cecil.Mdb, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756> Loaded #<RuntimeAssembly Mono.Cecil.Pdb, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756> Loaded #<RuntimeAssembly Mono.Cecil.Rocks, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756> Loaded #<RuntimeAssembly Mono.Cecil, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756> Loaded #<RuntimeAssembly Mono.Cecil.Rocks, Version=0.9.5.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756> Loaded #<RuntimeAssembly NuGet.Core, Version=2.3.40210.45, Culture=neutral, PublicKeyToken=null> Trying to resolve ClojureClrEx Loading c:/dev/nleiningen\bin\ClojureClrEx.dll Compile path: c:/dev/nleiningen\bin Compiled bultitude.core Compiled nleiningen.core Compiled nleiningen.main Compiled nleiningen.nuspec Compiled nleiningen.signing Saving nlein.exe Copied Mono.Cecil.Pdb, Mono.Cecil, Microsoft.Scripting, Clojure, Microsoft.Scripting, Mono.Cecil.Rocks, Microsoft.Dynamic, NuGet.Core, Mono.Cecil.Mdb, Mono.Cecil, NuGet.Core to output directory 0 user=>

Please note: there is a known bug in ClojureCLR with that may prevent the generated nlein.exe from working. Also, this is really just a prototype proof of concept - it should be a good starting point to work from.

Let me know if this works or if you have any other questions.

Aaron

On Fri, Aug 2, 2013 at 5:22 AM, Victor Grigoriu notifications@github.comwrote:

Thank you for the stream link. However, I'm still not able to run NLeiningen. I tried Clojure.Main.exe nleiningen\main.clj and got thishttps://gist.github.com/vgrigoriu/6138553stacktrace. I tried running Bootstrap.exe and nothing seemed to happen, regardless of the arguments I passed it. Any hint would be appreciated :)

— Reply to this email directly or view it on GitHubhttps://github.com/aaronc/nleiningen/issues/1#issuecomment-21995080 .