Hello Clojurians, I’ve read a few articles about Yada, also received a guidance and recommendations by Ray, but somehow I’m unable to follow the manual.
Details:
1 - cloned edge and ran boot dev (inside edge dir) and I receive the following error:
giga@ubuntu:~/edge/app$ boot dev
java.lang.Thread.run Thread.java: 748
java.util.concurrent.ThreadPoolExecutor$Worker.run ThreadPoolExecutor.java: 624
java.util.concurrent.ThreadPoolExecutor.runWorker ThreadPoolExecutor.java: 1149
java.util.concurrent.FutureTask.run FutureTask.java: 266
...
clojure.core/binding-conveyor-fn/fn core.clj: 2022
boot.core/boot/fn core.clj: 1032
...
boot.core/construct-tasks core.clj: 986
java.lang.IllegalArgumentException: No such task (dev)
clojure.lang.ExceptionInfo: No such task (dev)
line: 3
boot.properties:
#<http://boot-clj.com>
#Sun Aug 19 02:23:39 PDT 2018
BOOT_CLOJURE_NAME=org.clojure/clojure
BOOT_VERSION=2.7.2
BOOT_CLOJURE_VERSION=1.9.0
Tried on mac then tried on Ubuntu in VM, result is all the same.
Edge has moved to clj and deps.edn. Check the app/README.adoc file. Does that help?
Ouch, just a moment
I followed the manual.
All works now! But I have question regarding (reset) - why not instant reload on each save?
What’s the idea? It kind of takes away convenience of REPL at the first glance…
There is instant reload via save in some cases, such as sass/css and cljs. But reset has continually been considered a deliberate action, because you are often editing multiple files between resets. The original Stuart Sierra blog on reloaded workflow probably provides a better rationale for this. In practice it feels like the right balance, as long as you can make a reset easy to trigger via your dev environment.
All right, thanks Malcolm. Another question: what is a state of Yada Manual? How relevant is it to the latest releases?
It's pretty reliable and accurate for what is there.
The bit about Edge is out of date as you've seen.
Okay, thanks a lot! I’m building a trivial API with a few routes, and this is my first Clojure product ought to be deployed into production.
Good for you. Edge should prove a sound foundation.