Fork me on GitHub
#yada
<
2018-08-19
>
agigao12:08:24

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.

agigao12:08:29

1 - cloned edge and ran boot dev (inside edge dir) and I receive the following error:

[email protected]:~/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

agigao12:08:31

boot.properties:

#
#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

agigao12:08:20

Tried on mac then tried on Ubuntu in VM, result is all the same.

malcolmsparks12:08:56

Edge has moved to clj and deps.edn. Check the app/README.adoc file. Does that help?

agigao13:08:38

Ouch, just a moment

agigao13:08:42

I followed the manual.

agigao13:08:06

All works now! But I have question regarding (reset) - why not instant reload on each save?

agigao13:08:45

What’s the idea? It kind of takes away convenience of REPL at the first glance…

malcolmsparks13:08:52

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.

agigao15:08:13

All right, thanks Malcolm. Another question: what is a state of Yada Manual? How relevant is it to the latest releases?

malcolmsparks15:08:52

It's pretty reliable and accurate for what is there.

malcolmsparks15:08:51

The bit about Edge is out of date as you've seen.

agigao15:08:37

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.

malcolmsparks16:08:27

Good for you. Edge should prove a sound foundation.