Posts

Showing posts with the label Cursive

HPS (Hierarchy Property Service): Initial Setup

First steps for HPS (Hierarchy Property Service) Ok, after the first problems I was able to start coding. Because I want TDD I was really missing lein-test-refresh, but after some research I found  Kaocha Kaocha Basically is a full fledged tool for Testing.  There are some steps to do to just have an initial setup: Add a dependency on your deps.edn :aliases {:test {:extra-paths ["src/test/clojure"] :extra-deps {lambdaisland/kaocha {:mvn/version "1.0.641"}} Do your setup of kaocha, basically create a script at ~/bin/kaocha and chmod +x it, inside write: clojure -A:test -m kaocha.runner "$@" Create a tests.edn in your foolder, (this step is needed if you don't have your tests in a test folder on the root of your project): #kaocha/v1 {:tests [{:id :unit                  :test-paths ["src/test/clojure"]}]} #kaocha/v1 is a default configuration for kaocha, while the other one set the tests path for my project.  now run in a ter...

Restarting Clojure, my choices, my problems, my solutions!

How can you start working with Clojure in 2020? Since 2017, the only difference on my environment will be Deps adoption instead of Leinengen, and I will use Intellij with Cursive (mostly because I use this environment for work) Started Intellij, installed Cursive with a Opensource license, started a new Project with deps. Issue:  Cannot execute: Clojure command not configured: Cannot execute: Clojure command not configured Solution:  Install Clojure with Brew in Mac:  brew install clojure/tools/clojure Setup Clojure Deps in Intellij | Preferences | Build, Execution, Deployment | Build Tools | Clojure Deps using the path:  /usr/local/Cellar/clojure/1.10.1.561/bin/clojure Ok now I want to start a Repl, unfortunately I don't have a fast selection from Tools in Intellij, so I had to create a new configuration: Clojure Repl, save it. Try to run and.... Issue:  Error: Could not find or load main class clojure.main Caused by: java.lang.ClassNotFoundException: clojure.m...