GitHub - Dangercoder/potion: clojure clr tool

Potion - ARCHIVED use https://github.com/Dangercoder/Clojure.MSBuild instead

A clojure-clr tool for .NET 3.1+

Installation

dotnet tool install --global potion

dotnet add package clojure.tools.nrepl --version 0.1.0-alpha1 is needed because .NET tools does not include dependencies.

dotnet restore

Commands

Command Description
potion Starts a clojure repl with all assemblies loaded from the .csproj file
potion repl Starts a nrepl server on localhost:1667 with all assemblies loaded from the .csproj file
potion test Run tests located in the test directory

Visual Studio Code - Calva Setup

https://calva.io/

  1. run potion repl
  2. Calva: Connect to a Running Repl Server -> Generic -> localhost:1667

Creating a new project

 mkdir -p minimal-example && cd minimal-example && dotnet new console --framework net7.0 && dotnet add package clojure.tools.nrepl --version 0.1.0-alpha1 && rm Program.cs